-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[stable10] Fixup preview issues with trashbin/versions #34533
Conversation
…nst non-existing route
Codecov Report
@@ Coverage Diff @@
## stable10 #34533 +/- ##
==============================================
+ Coverage 63.89% 63.94% +0.04%
- Complexity 19133 19146 +13
==============================================
Files 1268 1269 +1
Lines 75519 75582 +63
Branches 1293 1293
==============================================
+ Hits 48256 48328 +72
+ Misses 26882 26873 -9
Partials 381 381
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Backport of #34283
Description
uid
is always known - pass it within theversion_delete
hook infooriginal_path
that contains a path to the versioned fileand
deleted_revision
- versionId for the deleted versionversionId
to deleteAllPreviews when we need to remove prievews for the specific version onlyRelated Issue
https://github.com/owncloud/enterprise/issues/2904
Motivation and Context
How Has This Been Tested?
Case 1
Expected result
version previews for cleaned up versions are deleted
No errors
Actual result
version previews for cleaned up versions are NOT deleted
Case 2
Expected result
Only file previews are deleted
Actual result
File previews and all versions previews are deleted
Case 3
delete a directory with a file and browse to the file in the trashbin
Expected result
File in deleted directory has a prievew
Actual result
No file preview
Types of changes
Checklist: