Repository navigation
Webinterface use sharee API - #21349
Conversation
|
By analyzing the blame information on this pull request, we identified @blizzz, @tomneedham and @PVince81 to be potential reviewers |
883640f to
4b250ef
Compare
4b250ef to
49031e0
Compare
|
Ok tests added. Lets get this in :) |
|
Do we need to do all this post processing of the results to take out owner and current User on the client side? I've seen this on the desktop client as well. Feels somewhat error prone to me, too much code duplication, too much error prone? |
True story. I would like to have this filtered on the server side. |
Yeah we would have liked that as well, but together with the requirement of pagination, that is sadly not possible. Also note, that the API doesn't really know shares, it just knows item types. So we would have sent a list of names to filter out, but then if you are on page 2, you can't know if you need to start on 202 (author and owner were on page 1), 201 (author or owner were on page 1) or 200 (neither author nor owner were on page 1). So that is even more messy and in order to have a clean API, it is like this. |
|
Works, thanks for taking over 👍 |
|
PS: do we delete the old endpoint, or you want to keep it for calendar + contacts for now? |
|
Tested and works 👍 |
We should move that over to the calendar and contacts app I think eventually. |
|
As @nickvergessen pointed out server side has several issues.
So yeah it is not ideal. But it is the only thing we could come up with that kind of scaled. Since the clients have the list of sharees already anyway. |
Webinterface use sharee API
Replaces #18236
Use the sharee endpoint for getting the list of people to share with.
CC: @owncloud/javascript @nickvergessen