-
Notifications
You must be signed in to change notification settings - Fork 349
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: return PROPFIND properties indexed by status #1519
feat: return PROPFIND properties indexed by status #1519
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1519 +/- ##
=========================================
Coverage 97.22% 97.22%
- Complexity 2831 2834 +3
=========================================
Files 175 175
Lines 9010 9018 +8
=========================================
+ Hits 8760 8768 +8
Misses 250 250 ☔ View full report in Codecov by Sentry. |
This works fine for the ocis-php-sdk, see owncloud/ocis-php-sdk#117 |
@individual-it then are you happy that we can go with this data structure being returned? |
This returns all the properties received in the server response, even for resources that have a status that is not 200 (success).
1eb5cf2
to
add4a14
Compare
@phil-davis yes, if this can be merged and release it will help me a lot |
@staabm please review again |
This is on top of PR #1518
See the latest commit - it returns the PROPFIND data keyed by status. All the items with status
200
are in an array with key200
, all the items with status400
are in an array with key400
.That simplifies the code a bit, and avoids having the keywords "properties" and "status'.
I'm not sure if this is a better way or not.