Repository navigation
[stable10] Fixup preview issues with trashbin/versions - #34533
Merged
Merged
Conversation
…nst non-existing route
4 of 10 tasks
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.
|
This was referenced Apr 15, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #34283
Description
uidis always known - pass it within theversion_deletehook infooriginal_paththat contains a path to the versioned fileand
deleted_revision- versionId for the deleted versionversionIdto 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: