Skip to content

Webinterface use sharee API - #21349

Merged
DeepDiver1975 merged 4 commits into
masterfrom
web_use_sharee
Jan 6, 2016
Merged

DeepDiver1975 merged 4 commits into
masterfrom
web_use_sharee

Conversation

@rullzer

@rullzer rullzer commented Dec 23, 2015

Copy link
Copy Markdown
Contributor

Replaces #18236

Use the sharee endpoint for getting the list of people to share with.

  • Use sharee API
  • Filter sharees already shared with
  • Filter current user
  • Filter shared by (if this file/folder is shared with you)
  • More unit tests

CC: @owncloud/javascript @nickvergessen

@mention-bot

Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @blizzz, @tomneedham and @PVince81 to be potential reviewers

@rullzer

rullzer commented Dec 30, 2015

Copy link
Copy Markdown
Contributor Author

Ok tests added. Lets get this in :)

@blizzz

blizzz commented Jan 4, 2016

Copy link
Copy Markdown
Contributor

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?

@MorrisJobke

Copy link
Copy Markdown
Contributor

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.

@nickvergessen

Copy link
Copy Markdown
Contributor

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.

@nickvergessen

Copy link
Copy Markdown
Contributor

Works, thanks for taking over 👍

@nickvergessen

Copy link
Copy Markdown
Contributor

PS: do we delete the old endpoint, or you want to keep it for calendar + contacts for now?

@MorrisJobke

Copy link
Copy Markdown
Contributor

Tested and works 👍

@rullzer

rullzer commented Jan 4, 2016

Copy link
Copy Markdown
Contributor Author

PS: do we delete the old endpoint, or you want to keep it for calendar + contacts for now?

We should move that over to the calendar and contacts app I think eventually.

@rullzer

rullzer commented Jan 4, 2016

Copy link
Copy Markdown
Contributor Author

As @nickvergessen pointed out server side has several issues.

  • Either the clients send a list of stuff to filter out (which is problematic as described)
  • You send a list of share ids (same problem)
  • You tell the sharee API which file/folder you want to have completion for. This is very bad performance wise since it leads to a significant amount of queries for each sharee lookup.

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.

DeepDiver1975 added a commit that referenced this pull request Jan 6, 2016
@DeepDiver1975
DeepDiver1975 merged commit b8ecf19 into master Jan 6, 2016
@DeepDiver1975
DeepDiver1975 deleted the web_use_sharee branch January 6, 2016 16:24
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants