Skip to content
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

Merged
merged 9 commits into from
Dec 11, 2023

Conversation

phil-davis
Copy link
Contributor

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 key 200, all the items with status 400 are in an array with key 400.

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.

Copy link

codecov bot commented Nov 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (081dbf9) 97.22% compared to head (c08f202) 97.22%.

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.
📢 Have feedback on the report? Share it here.

@individual-it
Copy link

This works fine for the ocis-php-sdk, see owncloud/ocis-php-sdk#117

@phil-davis
Copy link
Contributor Author

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?

@phil-davis phil-davis marked this pull request as ready for review December 11, 2023 06:11
@individual-it
Copy link

@phil-davis yes, if this can be merged and release it will help me a lot

lib/DAV/Client.php Outdated Show resolved Hide resolved
lib/DAV/Client.php Outdated Show resolved Hide resolved
lib/DAV/Client.php Outdated Show resolved Hide resolved
lib/DAV/Client.php Outdated Show resolved Hide resolved
lib/DAV/Client.php Outdated Show resolved Hide resolved
@phil-davis
Copy link
Contributor Author

@staabm please review again

@phil-davis phil-davis merged commit 357ffa1 into sabre-io:master Dec 11, 2023
9 checks passed
@phil-davis phil-davis deleted the issue-1041-alternate-a branch December 11, 2023 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants