-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Make share results distinguishable if there are more than one with the same display name #24407
Comments
I'll write up some summary and try to add some mockups for better visualization of the various cases this should cover. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The general problem is that the display name of a user is sometimes not enough to uniquely identify a person especially on context of larger organizations where there might be multiple people with the same name. For that reason we would need some additional unique label being added to the displayname where this is relevant. For most cases the email addres should be a good unique identifier for this. For cases where there is no email address is set we would fall back to the user id, but that one might of course be rather cryptic e.g. in LDAP setups. We basically have two options on when we want to show this:
For now #23017 basically implements the second one, if neede we can still decide later on if we always want to show it. The following mock ups should make it a bit clearer: Keeping current behavior if display names are differentAll matching users from the search have a unique display name so we don't show the unique label Duplicate display namesTHere are 4 users with the same display name, therefore we show the unique label. The first two have an email set, for the other two users there is no email so we fallback to the uid. Share listingWe adapt the same behaviour to the share listing. The unique label is only shown for users where there are more entries with the same display name APIWith #23017 the unique label is returned as an extra field For the sharee search an extra attribute is exposed for each user result as Determining if the label should be shown or not is up to the clients. Feedback is welcome, especially from @jancborchardt 😉 |
This comment has been minimized.
This comment has been minimized.
Great proposal @juliushaertl, have nothing more to add. @er-vin @tobiasKaminsky @marinofaggiana is this also feasible on mobile or do you see any issues? |
@juliushaertl can you summarize how and what you do?
Is this all possible via
ocs/v2.php/apps/files_sharing/api/v1/sharees
?The text was updated successfully, but these errors were encountered: