You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Label is the human readable display name.
shareType identifies the type (user, group, email, remote)
shareWith is the identifier to be use on the sharing api call
Performant (not collecting all users from the backend)
Pagination (allowing to paginate through pages)
Easy2User (sending a list of users/groups that should be ignored, instead of doing that later in the client)
I can only get it to work with two of them. Since the client needs to collect the IDs anyway and most-likely displays the existing shares already, I'd say that's the easiest one to neglect?
Yeah filtering is not going to work in the current situation. Only if the user and group managers search function would allow passing a list of id's to filter out.
The reason to have to filtering was to limit the number of requests to the server. But I'm wondering how many shares of an item there are in practise on average.
@SergioBertolinSG nope. You can search for federated id in your address book. And we don't know what fancy types we might have in the future of course :)
Activity
rullzer commentedon Aug 7, 2015
If we want to add pagination we have to make sure we add proper header support to the OCS response stuff. Else it becomes impossible to unit test.
rullzer commentedon Aug 7, 2015
Why do we need to itemtype?
DeepDiver1975 commentedon Aug 7, 2015
Sharing with remote users (federated sharing) is only allowed on files and folders
rullzer commentedon Aug 7, 2015
Maybe it would be a good idea to (optinally) accept a list of share id's as well. That way the API can filter out already shared users/groups.
rullzer commentedon Aug 7, 2015
But we could keep the API simple and just leave it to the clients to filter this properly
DeepDiver1975 commentedon Aug 7, 2015
#18118
nickvergessen commentedon Aug 12, 2015
Adding a share ID is insufficient. There can be 0 to unlimited shares for the same item.
So this must take a list of share IDs at least.
DeepDiver1975 commentedon Aug 12, 2015
let it be a list then
nickvergessen commentedon Aug 25, 2015
I can't get this to work properly:
I can only get it to work with two of them. Since the client needs to collect the IDs anyway and most-likely displays the existing shares already, I'd say that's the easiest one to neglect?
nickvergessen commentedon Aug 26, 2015
The result now looks as follows:
rullzer commentedon Aug 28, 2015
Yeah filtering is not going to work in the current situation. Only if the user and group managers search function would allow passing a list of id's to filter out.
The reason to have to filtering was to limit the number of requests to the server. But I'm wondering how many shares of an item there are in practise on average.
SergioBertolinSG commentedon Sep 7, 2015
According to documentation there is no 4 shareType but 3.
shareType - (int) 0 = user; 1 = group; 3 = public link; 6 = federated cloud share
SergioBertolinSG commentedon Sep 7, 2015
@rullzer
I think making requests using shareType different than 0 (users) or 1 (groups) is useless, because it will be empty always isn't?
rullzer commentedon Sep 9, 2015
@SergioBertolinSG nope. You can search for federated id in your address book. And we don't know what fancy types we might have in the future of course :)
SergioBertolinSG commentedon Sep 9, 2015
@DeepDiver1975 @nickvergessen perPage parameter is called limit.
Changing name is ok?
nickvergessen commentedon Sep 11, 2015
@SergioBertolinSG should be a bug, please create a new issue
nickvergessen commentedon Sep 14, 2015
Reported here: #19007