#33185 closed defect (bug) (fixed)
Site search in "Network Admin" returns less results than expected; frequently none
Reported by: | tthorp | Owned by: | jeremyfelt |
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Networks and Sites | Keywords: | has-patch needs-unit-tests needs-testing |
Focuses: | administration, multisite | Cc: |
Description
In a multi-site Network, a search of "users" or "sites" requires a perfect match of certain fields in order to return result. Typically, for the way I am using it, the result is "No users found."
It seems that the search works fine if the search string is equal to a field value such as "username" or "path", but it does not search last name for matches. Additionally, it would be preferable to users like me if the search string was loosely matched or surrounded with wildcards.
I run a university blog service and we have hundreds of sites and thousands of users, so my use cases that are failing to work are as follows.
1) "FIND USERS BY LAST NAME": navigate to Network Admin > Users and search for a user by typing their last name in the search field in the upper right and pressing search. Currently this search will only find complete and exact matches of usernames. To use an example, Josiah Carberry's username is jcarberr9. I can find him if I search jcarberr9, but not if I search for carberry or Carberry.
2) "FIND SITES BY PORTION OF PATH": navigate to Network Admin > Sites and search for a site by typing a portion of the sitename in the search field in the upper right and pressing search. In my case, it would be useful use a portion of a course code in the search, so if I wanted to see all blogs for the Psychology department, I could just search for PSY.
Attachments (2)
Change History (23)
This ticket was mentioned in Slack in #core by obenland. View the logs.
9 years ago
#3
@
9 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 4.4
- Owner set to johnbillion
- Status changed from new to accepted
#5
@
9 years ago
Thanks John. We really appreciate your work on this!
I may have adequately described this in the original ticket but in case it helps to clarify, the issue also has to do with network admin site search regarding portions of the url or path.
If a site's url is, say http://toppings.pizza.net/pepperoni/ it would be useful (to me) to be able to search "pepper" and have the site returned.
#6
@
9 years ago
- Focuses administration added
Here is a first pass : 33185.patch make use of wildcards by default when looking at a site path. The behavior for the site's url http://toppings.pizza.net/pepperoni/ is the following :
- before the patch :
- pepper does not match
- pepper* matches
- *peroni does not match
- pepp*ni does not match
- after the patch :
- pepper matches
- peroni matches
- adding * anywhere in the search term has no effect : it still matches
Is it acceptable ?
#7
in reply to:
↑ description
@
9 years ago
- Keywords has-patch dev-feedback added; needs-patch removed
Replying to tthorp:
1) "FIND USERS BY LAST NAME": navigate to Network Admin > Users and search for a user by typing their last name in the search field in the upper right and pressing search.
I think this have performance concerns and should be discussed in #27304.
2) "FIND SITES BY PORTION OF PATH": navigate to Network Admin > Sites and search for a site by typing a portion of the sitename in the search field in the upper right and pressing search.
This one is addressed by 33185.patch.
#8
@
9 years ago
Is this patch (33185) in 4.4 v2? I have installed the Beta 4.4 v2 in our QA environment.
The network user search is perfect. Great results there.
Network site search is still returning less results than expected. Your description of the patch sounds great.
Many thanks,
Tim
#9
@
9 years ago
- Keywords dev-feedback removed
Thanks for your feedback. This patch is not in 4.4 beta2, but you can test it to see if it really solves the issue you reported. You can do this by following the method explained in the handbook (using grunt,Tortoise SVN or the command line).
For the command-line, the commands are :
$>wget https://core.trac.wordpress.org/raw-attachment/ticket/33185/33185.patch ... $>patch -p2 < 33185.patch patching file wp-admin/includes/class-wp-ms-sites-list-table.php
#10
@
9 years ago
Thank you Fab1en. I have tested this patch and it is very effective! Many thanks. -Tim
#11
@
9 years ago
- Keywords needs-unit-tests needs-testing added
- Milestone changed from 4.4 to Future Release
- Summary changed from user and site search in "Network Admin" returns less results than expected; frequently none to Site search in "Network Admin" returns less results than expected; frequently none
Turns out this is a little more complicated than it looks due to the ability to search by site ID, etc. I've started on some unit tests but they need more work.
#12
@
9 years ago
I truly appreciate the work that has been done on this issue since reported. The fact that is could not be incorporated in the 4.4 release is completely understandable but the patches produced to date worked in my testing so I am hoping that the remaining work involved is not of a large magnitude.
In large network administration, the search issue is paramount.
I want to mention that I don't really understand the process here but am asking if we could tag this as a milestone for a specific future release; either 4.5 or 4.6.
Thank you,
Tim
#13
@
9 years ago
I think it's up to the release lead to decide if this should go into the next version or not. For 4.5, Mike Schroder (@mikeschroder) has this role (info is on Make Core blog). Mike, could you give us your opinion about this patch please ?
@tthorp : if you want to push for a particular ticket to be included on the next release, you can attend a "bug scrub" meeting that is held each friday on slack (see for example this post that list the tickets covered during the 2/5/2016 bug scrub). You can also follow the make/core blog and add a comment to the "call for tickets" post (when there is one) with the ID of the ticket you want to enlight.
For info, the patch 33185.patch still applies on the latest trunk.
#14
@
9 years ago
Hey there! The suggestion to bring it up in a bug scrub is a good one. We're still in beta and haven't reached RC, so from my perspective, patches from bugs can still land.
Usually the call as to whether a particular patch is suitable for core lands on the Component Maintainer(s) and Committers that review it.
In this case, it looks like @johnbillion noted that more tests are needed before it can land in core.
@johnbillion @jeremyfelt @DrewAPicture, have any insight as to what's left here?
#16
@
9 years ago
- Milestone changed from Future Release to 4.6
I have a feeling #35791 will help solve a few tickets like this, so I'm leaving a note for later.
This ticket was mentioned in Slack in #core-multisite by jeremyfelt. View the logs.
8 years ago
#18
@
8 years ago
- Owner changed from johnbillion to jeremyfelt
- Status changed from accepted to assigned
Thanks for the report, tthorp.
Searching users in the network admin was fixed in #32913, which will ship with WordPress 4.4. I'm going to look at improving the results when searching sites too.