#7980 closed defect (bug) (fixed)
Group member admin autocomplete does not fail gracefully on "large network"
Reported by: | boonebgorges | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Groups | Keywords: | has-patch needs-testing 2nd-opinion |
Cc: |
Description
The Dashboard group admin panel includes an interface for adding users to groups. This interface is a text entry field that expects a comma-separated list of user_logins. The field has autocomplete support; the server-side handler is https://buddypress.trac.wordpress.org/browser/tags/3.2.0/src/bp-groups/bp-groups-admin.php#L1236
If you are running a large multisite network, the UI behavior is poor:
- When you start typing, a spinner gif appears, and an AJAX request is sent. But the AJAX request fails with
-1
https://buddypress.trac.wordpress.org/browser/tags/3.2.0/src/bp-groups/bp-groups-admin.php?marks=1244-1246#L1236. So you don't get any autocomplete results, and the spinner never stops. - Since you can't select autocomplete results, you've got to enter a user_login (or comma-separated list of user_logins). But there's no way to know this by looking at the interface - I only knew because I wrote this interface originally, and even I had to open the codebase to figure it out :)
I'll post a patch for what is, I think, a minimal fix.
Attachments (3)
Change History (8)
#1
@
6 years ago
- Keywords has-patch needs-testing 2nd-opinion added
7980.diff does the following when wp_is_large_network( 'users' )
:
- Removes the placeholder text
- Adds a gloss (instead of a placeholder) describing what kind of input is expected
- Removes the autocomplete functionality
See screenshots.
I'd welcome a second set of eyes on the patch, as well as a second opinion on the UX change.
wp_is_large_network( 'users' ) === true