Repository navigation
Add pagination/search through REPORT - #27
Conversation
6e6e790 to
58f7ef4
Compare
|
Do we agree on the general approach so I can solidify this with unit tests ? |
There was a problem hiding this comment.
that lower function is strictly needed?. Although it might not be risky, the behaviour isn't optional and isn't documented.
There was a problem hiding this comment.
That's how we did search in the default group backend. I think it makes sense to keep it.
There was a problem hiding this comment.
I'm not sure if we can switch the roleFilter and search parameters at this point. I've seen too much getUserMembership(uid, null, search). A getUserMembership(uid, search) with the roleFilter as null by default looks better.
There was a problem hiding this comment.
I also hesitated to maybe put the role filter as a member of the Search class, what do you think ?
|
The approach looks good to me. |
|
@jvillafanez thanks a lot for your feedback ! I have the feeling that having a |
|
|
|
Ok, I'll try adding |
e31f275 to
7ddc303
Compare
|
This is ready for review now |
|
Unit tests added + a few tweaks |
There was a problem hiding this comment.
uh oh... why didn't the tests explode... I'll recheck
7ddc303 to
fdab5a5
Compare
|
@jvillafanez fixed now... The reason why tests passed is because the expectation was also wrong... |
|
👍 |
|
and now Travis is imitating Jenkins it seems. It's been an hour and I still can't see any results (loading forever) |
|
|
Going to merge this anyway now and resolve conflicts and integration tests as part of #26 |
Fixes #16
Example report:
You can apply this to the following URLs:
curl -i --data-binary "@report-customgroups.xml" -X REPORT -H "Content-Type: text/xml" http://admin:admin@localhost/owncloud/remote.php/dav/customgroups/groupscurl -i --data-binary "@report-customgroups.xml" -X REPORT -H "Content-Type: text/xml" http://admin:admin@localhost/owncloud/remote.php/dav/customgroups/groups/group1curl -i --data-binary "@report-customgroups.xml" -X REPORT -H "Content-Type: text/xml" http://admin:admin@localhost/owncloud/remote.php/dav/customgroups/users/user1/@DeepDiver1975 @jvillafanez please review.
If the implementation style is ok I'll add matching unit tests.