-
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
Post author dropdown missing users when number of users exceeds 100 #4622
Comments
@TKES A couple follow-up questions to clarify:
Thanks! |
|
Thanks @TKES — appreciated. |
There is a hard limit here: https://github.com/WordPress/gutenberg/blob/master/editor/components/post-author/index.js#L88 |
@spencerfinnell Correct.
|
@danielbachhuber The only acceptable solution is 1. Similar code will be required anyway to fix #4632, #4623 and more issues like missing tag entries, missing custom taxonomy entries, etc. And the hardcoded |
Another idea would be to load the initial set of users when Gutenberg loads, and then progressively load all remaining users when the UI element is focused. |
@danielbachhuber "Another idea" would fail. If real author is not in initial set of users, saving the post without focusing UI element would still unintentionally change its author. |
What about adding a (debounced) search feature here so you could start typing the username and drill down to the correct user? |
Some other things to note:
|
So is the need here to add some sort of pagination/traverse options to withAPIData? |
As an alternative, could the query params include |
This ticket was mentioned in Slack in #core-editor by jeffpaul. View the logs. |
2.4.0: I just attempted monkey-patching the query to test for |
Pushed a proposed fix that changes the selector into a searchable dropdown in #5921. Worth noting the existing classic editor selector dropdown also has some scalability issues, especially when you get to thousands of users which isn't at all uncommon for WordPress sites. This trac ticket covers the discussion which includes mention of a search picker like the one included on the PR: |
Issue Overview
Author dropdown does not show all users.
Steps to Reproduce (for bugs)
Expected Behavior
List of 120 users
Current Behavior Gutenberg
List of 100 users
Current Behavior Classic Editor
List of 120 users
Possible Solution
Use X-WP-TotalPages and/or X-WP-Total headers in REST API response to get missing users.
The text was updated successfully, but these errors were encountered: