-
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
allow storages to explicitly opt-out of uploading .part files #37062
allow storages to explicitly opt-out of uploading .part files #37062
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
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.
Generally speaking this looks good - THX
I left a few minor comments
Codecov Report
@@ Coverage Diff @@
## master #37062 +/- ##
============================================
- Coverage 64.68% 64.67% -0.01%
- Complexity 19331 19340 +9
============================================
Files 1277 1279 +2
Lines 75506 75578 +72
Branches 1331 1331
============================================
+ Hits 48838 48879 +41
- Misses 26276 26307 +31
Partials 392 392
Continue to review full report at Codecov.
|
@DeepDiver1975 prior revision requests should be resolved and this is ready for another review |
@DeepDiver1975 @jvillafanez bump for this PR. Would be great to either:
|
Changes look good to me. Maybe @micbar can move this forward. |
Adding @micbar and @phil-davis to reviewers. |
@micbar I am not really qualified to approve this. The code looks reasonable to me. Can you decide what happens next? |
Technically the problem is solved with b14e8e4 , but this is a better option and we should use something like this. |
What about reverting b14e8e4 and use this PR instead? |
Merging this PR will overwrite that piece, so there is no need to revert anything |
IMO review comments have been addressed
The PR can also help to resolve #35660 . Disabling part file usage in webdav external storage should be enough with this pr. We can open a new pr for it after merging this one. |
@curiousercreative This looks good to me. I would like to have more technical info in the changelog item, as this not only affects gdrive but external storages in general |
Is it possible to cover that by a unit test? |
I've not written any unit tests for PHP code let alone whatever test runner and/or framework ownCloud is using (PHP Unit?). I did some digging and see two potential directions for adding the test:
If adding to the first file, I was thinking to add a test function named
For further discussion, what is the history of this system setting? Is it in any way affected by this pull request (obsoleted perhaps)? |
@micbar updated changelog. LMK if you're still missing any particular detail. See above comment re: unit tests. |
@phil-davis can you restart drone, stuck on connecting to github... |
Any update? |
@karakayasemi could you support for tests? |
@curiousercreative Thank you for contribution! I cherry-picked your commit and completed rest of the things in #37755. Now, it is merged. Closing this one. |
Description
Allow for storage classes to decide whether to use .part files. Default to using part files to preserve previous behavior.
Related Issue
Motivation and Context
Google Drive external storage (and others?) should not create a duplicate file with the same name every time a file is changed.
How Has This Been Tested?
Types of changes
Checklist: