Prevent Unnecessary UpdateShareRemoteOperation Calls#1722
Merged
alperozturk96 merged 7 commits intomasterfrom Jun 10, 2025
Merged
Prevent Unnecessary UpdateShareRemoteOperation Calls#1722alperozturk96 merged 7 commits intomasterfrom
alperozturk96 merged 7 commits intomasterfrom
Conversation
Contributor
ZetaTom
reviewed
May 12, 2025
Contributor
ZetaTom
left a comment
There was a problem hiding this comment.
Please consider using com.nextcloud.common.JSONRequestBody. Other than this everything looks good and works.
5045717 to
dcca584
Compare
Contributor
Contributor
6d07229 to
d2f0864
Compare
Contributor
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1722 +/- ##
=========================================
Coverage 43.06% 43.07%
Complexity 988 988
=========================================
Files 235 235
Lines 8568 8562 -6
Branches 1123 1119 -4
=========================================
- Hits 3690 3688 -2
+ Misses 4364 4359 -5
- Partials 514 515 +1
🚀 New features to boost your workflow:
|
ZetaTom
previously approved these changes
May 30, 2025
Contributor
60d608f to
d3ad338
Compare
Contributor
Contributor
|
This note dates from before my time. I see nothing in the controller code indicating such a limitation 🤷 |
ZetaTom
previously approved these changes
Jun 4, 2025
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
b55a094 to
37d4709
Compare
Contributor
ZetaTom
approved these changes
Jun 10, 2025
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.
Instead of executing the PUT method for each parameter update using client.executeMethod(put) inside the loop, we can first build all the parameters in the loop and then execute the PUT method only once.
To observe this behavior, open the Android Files app, update any share, and check the log or place a debugger in the UpdateShareRemoteOperation class.