-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Author's Username is missing from Author dropdown. #17364
Comments
The REST API response to cc @spacedmonkey do you have any ideas here other than just adding a new field in the response with the |
There's a new design by @javierarce for the Author dropdown in #41430 (comment). Perhaps we could include username in the line underneath the display name alongside the user's role? It's worth noting is that users are able to select how they want their name to appear in profile settings. This should be respected. |
Hello! I am having the same issue with truncated response from the API - would there be a way to search by username only rather than including user's email in the search as well? |
My previous comment is actually wrong. It appears that the endpoint is ready to return Currently the post authhor component in editor:
The context on request has to be view so that the list of authors can be retrieved even if the logged in user does not have edit context caps. @swissspidy @TimothyBJacobs could you shed some light why on the user schema I remember seeing people wanting to hide usernames for security reasons so I will assume the solution here is to:
|
Yeah, the So I'm not sure what the right solve here is, or if there even is a solve. We could have a larger conversation around introducing a context like |
Maybe then only users who can request the |
Yeah I think that would be where I lean to for a practical solve. The client can know whether the user has edit permissions, and can alter it's request appropriately. |
I was thinking about whether there should be an autocomplete feature to select authors. It could be very useful, especially if there are a lot of authors on a site. Although there are many plugins available to handle this, such as Co-Author Plus, having an autocomplete feature to list authors would make sense. |
Describe the bug
In the classic editor, the author drop down included their name followed by their username in parentheses. This is needed when there are two or more people with the same name, or one user that has different kinds of access for testing things. Gutenberg however only shows the author's name.
To reproduce
Steps to reproduce the behavior:
Expected behavior
I'd see users in this format: Name (username)
Screenshots
![Gutenberg](https://user-images.githubusercontent.com/46997/64461068-bf676280-d0c1-11e9-9214-844bd4c307d7.png)
![Classic Editor](https://user-images.githubusercontent.com/46997/64461081-ca21f780-d0c1-11e9-9e02-803c4fe97514.png)
![Quick Edit Post](https://user-images.githubusercontent.com/46997/64461089-d1e19c00-d0c1-11e9-902e-aecf28b85242.png)
Desktop (please complete the following information):
Additional context
I marked this as a bug because the author drop down is consistent across the backend, except for in Gutenberg. If you were to quick edit a post or page, the format would match what I'm expecting. Gutenberg seems to be breaking the consistency.
Additionally my client has nearly 150 users so what we have today in Gutenberg doesn't scale well if we just assume there will never be two users with the same name.
I've also dug for hooks or filters to try and customize what appears in the author drop down but have had no luck.
The text was updated successfully, but these errors were encountered: