-
Notifications
You must be signed in to change notification settings - Fork 4
[PB-5458] feature(versioning): delete versions when file is permanently deleted #804
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
[PB-5458] feature(versioning): delete versions when file is permanently deleted #804
Conversation
|
912a006 to
02d0fa7
Compare
|
@douglas-xt This might not be required if we already added the background-task to remove all the versions of a file marked as DELETED. fyi @sg-gs |
|
Part of the retention policy seems to be needed @apsantiso. The removal part does not @douglas-xt |
1140257 to
c32a61a
Compare
2d2fb76 to
257dfe9
Compare
|
This PR only handles deleting versions when the user permanently deletes files. The retention policy is applied on the file when the user does a replace (in replaceFile), and the proactive cleanup on plan downgrade is implemented in PR #818. Closing this PR. |



This PR implements automatic deletion of file versions when their parent file is permanently deleted.
When a user permanently deletes a file, all its previous versions are also deleted.
When multiple files are removed (e.g., emptying workspace trash), their versions are deleted as well.