Skip to content

Conversation

@douglas-xt
Copy link
Contributor

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.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 2, 2025

@douglas-xt douglas-xt changed the title delete versions when file is permanently deleted [PB-5458] feature(versioning): delete versions when file is permanently deleted Dec 2, 2025
@douglas-xt douglas-xt force-pushed the feature/fv-versions-usage branch from 912a006 to 02d0fa7 Compare December 16, 2025 11:36
@apsantiso
Copy link
Contributor

@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

@sg-gs
Copy link
Member

sg-gs commented Dec 26, 2025

Part of the retention policy seems to be needed @apsantiso. The removal part does not @douglas-xt

@douglas-xt douglas-xt force-pushed the feature/fv-versions-usage branch from 1140257 to c32a61a Compare December 30, 2025 08:45
@douglas-xt douglas-xt force-pushed the feature/fv-versions-usage branch 2 times, most recently from 2d2fb76 to 257dfe9 Compare December 31, 2025 08:17
@douglas-xt
Copy link
Contributor Author

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.

@douglas-xt douglas-xt closed this Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants