-
Notifications
You must be signed in to change notification settings - Fork 94
Prevent Unnecessary UpdateShareRemoteOperation Calls #1722
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
Prevent Unnecessary UpdateShareRemoteOperation Calls #1722
Conversation
ZetaTom
left a comment
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.
Please consider using com.nextcloud.common.JSONRequestBody. Other than this everything looks good and works.
5045717 to
dcca584
Compare
6d07229 to
d2f0864
Compare
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:
|
60d608f to
d3ad338
Compare
|
This note dates from before my time. I see nothing in the controller code indicating such a limitation 🤷 |
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
b55a094 to
37d4709
Compare
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.