-
Notifications
You must be signed in to change notification settings - Fork 32
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
feat(nextcloud)!: deserialize webdav date fields #1850
Conversation
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.
Cool stuff!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1850 +/- ##
==========================================
- Coverage 44.67% 44.63% -0.05%
==========================================
Files 114 114
Lines 3805 3802 -3
==========================================
- Hits 1700 1697 -3
Misses 2105 2105
|
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.
Wait you also changed the int/bool fields?
yep. Why? |
But will it serialize correctly? Because the server might not accept a |
You're right. |
According to https://www.w3.org/TR/xmlschema-2/#boolean it should work because all those representations are possible. If this turns out to be true then the server docs should be changed to clearly state that the values are not integers but actually booleans. |
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.
oc:favorite should also be bool.
At least the favorites prop handles all representations correctly: https://github.com/nextcloud/server/blob/c0d21b44437d6ff0ef4ffa08096f18c1e4870fcc/apps/dav/lib/Connector/Sabre/TagsPlugin.php#L285
Ok I had a look at all the boolean fields except for oc:favorite they are all dead props meaning the client can't update them. oc:favorite has the correct handling, so everything looks good! |
I already had the changes for oc:favorite for local testing, so I just pushed them. Please squash and rebase and then we are good to go. |
Signed-off-by: Nikolas Rimikis <[email protected]>
Signed-off-by: Nikolas Rimikis <[email protected]>
Signed-off-by: Nikolas Rimikis <[email protected]>
585161c
to
d10b22a
Compare
Thanks for taking a look |
No description provided.