-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not retrieve disabled versions #1351
Do not retrieve disabled versions #1351
Conversation
@filipegiusti We need to ensure that files are never orphaned. The current implementation of conditional versions is more about the save process and less about URL fetching, where versions are processed conditionally at that time. At a later time, this condition may be different but the file may still be on disk. |
I understand what you're saying. We can comply to both, on removal we can try to destroy all versions if it doesn't exist it will silently fail and we won't have orphans, and on retrieval we only get the ones that the conditional succeeds. Wdyt? |
@bensie I've update the code to comply with your requirements, I don't see any downside in merging it as is. |
Anyone listening? ⏰ |
@filipegiusti Sorry it's been so long! Would you mind rebasing off master so we can merge? |
I'll do that next week! |
I went ahead and got it merged, thanks! |
Awesome, thanks! |
Fixes #1350 (copy from it's content below)
The code speaks for itself