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

Provide avatar URL on share information #11406

Closed
tobiasKaminsky opened this issue Sep 27, 2018 · 7 comments
Closed

Provide avatar URL on share information #11406

tobiasKaminsky opened this issue Sep 27, 2018 · 7 comments
Labels
1. to develop Accepted and waiting to be taken care of enhancement

Comments

@tobiasKaminsky
Copy link
Member

tobiasKaminsky commented Sep 27, 2018

Currently we "only" get infos on user who shared with "me" separate, via
http://localhost/nc/ocs/v2.php/apps/files_sharing/api/v1/shares?path=/123&reshares=true&subfiles=true&shared_with_me=true

…
<uid_owner>test</uid_owner>
<displayname_owner>test</displayname_owner>
…

Every client now has to build the avatar url by its own.

As discussed with @schiessle, this should be simplified, so that the avatar url is generated on server side and clients can directly retrieve them.

Please with eTags 👍
And, if possible, for all users listed in the response (sharee and share owner)

(planned for NC15)

@tobiasKaminsky tobiasKaminsky added this to the Nextcloud 15 milestone Sep 27, 2018
@tobiasKaminsky tobiasKaminsky changed the title Provide atavar URL on share information Provide avatar URL on share information Sep 27, 2018
@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #9182 (Just a question // Feature request // Pretty Share URL), #4334 (Improve sharing email information), #6881 ([Suggestion] Nice urls: make share links becoming nice), #2658 (Sharing and permissions), and #1575 ([Feature Request] Add configuration for "Sharing URL").

@schiessle
Copy link
Member

cc @rullzer maybe also something for you if you have some time. It is probably not that hard, someone "just" need to find the time to do it 😉

@rullzer
Copy link
Member

rullzer commented Oct 9, 2018

Adding the URL there should not be that hard. But adding the etag is a bit hard and a bit weird. It requires a lot of additonal logic with no real point imo.

I'd vote to just add the link to the avatar.
Then you can do the logic you want yourself. You can show the cached avatar and try to fetch a new one in the back etc.

@tobiasKaminsky
Copy link
Member Author

The idea with eTag was that clients then do not have to query the avatar url as they directly know if an avatar is out of date.
But if eTags are too hard, then we can remove it.
(eTag on avatar is already in place, but only when calling/downloading it and we use it there already)

@rullzer rullzer removed this from the Nextcloud 15 milestone Nov 5, 2018
@tobiasKaminsky tobiasKaminsky added this to the Nextcloud 17 milestone Apr 12, 2019
@tobiasKaminsky
Copy link
Member Author

Can we have this for NC17? Please :-)

@skjnldsv skjnldsv added the 1. to develop Accepted and waiting to be taken care of label Jun 17, 2019
@rullzer rullzer modified the milestones: Nextcloud 17.0.4, Nextcloud 17.0.5 Mar 11, 2020
@rullzer rullzer modified the milestones: Nextcloud 17.0.5, Nextcloud 17.0.6 Mar 23, 2020
@skjnldsv skjnldsv removed this from the Nextcloud 17.0.7 milestone Apr 27, 2020
@skjnldsv
Copy link
Member

Is this still needed?
You have the owner uid, you shouldn't need anything else, no?
We don't use it for the server sidebar, so I guess it's fine now?

@tobiasKaminsky
Copy link
Member Author

True, this is already done via nc:sharees.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of enhancement
Projects
None yet
Development

No branches or pull requests

5 participants