-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Make Backbone PROPPATCH work with options.wait mode #28767
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
Conversation
f810792 to
2b6fa66
Compare
core/js/oc-backbone-webdav.js
Outdated
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.
It makes me wonder if this has ever worked... Does this link with the davSync method below? If so, any reason to move the JSON.stringify up here?
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.
We have some custom calls (ex: comments app) where it does a plain POST with JSON on the collection. Later on we decided that we didn't want POST any more with Webdav so we're now using other methods. The reason I moved this down is because the stringification is only needed for this one code path.
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.
Ok, fair enough.
|
Need to check the failing tests. |
|
At the moment: |
2b6fa66 to
29554a4
Compare
|
rebased. now that the other fix is in I expect all will pass |
In options.wait mode, no model.changes are available as they haven't been set yet. So in this mode we simply get all properties and send these with PROPPATCH.
29554a4 to
f819148
Compare
|
stable10: #28791 |
|
Regression: #28826 |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
In options.wait mode, no model.changes are available as they haven't
been set yet. So in this mode we simply get all properties and send
these with PROPPATCH.
Related Issue
Fixes owncloud/customgroups#87
Motivation and Context
Better compatibility with backbone options.
How Has This Been Tested?
Manual testing with customgroups ticket and JS unit test.
Screenshots (if appropriate):
Types of changes
Checklist: