Page MenuHomePhabricator

Search auto-complete does not work for global user pages on local wikis
Open, LowestPublic

Description

If I go to a random wiki and type a username in the search field, and that user migrated his user page to a global user page on Meta-wiki, I'll not be able to go directly to this page on the local wiki, because there will be no suggestion in the list.

As an example, I tried this on https://es.wikipedia.org, where my global user page is loaded (so, links to it appears in blue color, including the one in the personal portlet). The only item which appeared was "containing... user:he7d3r", but there should be a bold entry linking directly to it.

Event Timeline

He7d3r raised the priority of this task from to Needs Triage.
He7d3r updated the task description. (Show Details)
He7d3r subscribed.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
jayvdb subscribed.

Note that typing "user:<username>" into the search box still takes the reader to the user page.

The MediaWiki-Action-API search results do not include GUP either. IMO the page doesnt exist, and so it shouldnt be in search results by default. Special:Search is find page, not find user. There are separate special pages & api modules for finding a user. They need to be exposed more, and possibly used by the JavaScript search box widget should smartly use both search and user query APIs when the user is searching "user:foo".

If someone decides to fix this task so that GUP appear in special:search, please add an API parameter before automatically adding them to the api:search results, so illogical results are not included by default in API results (which would cause bugs like T119316).

The "user migrated his user page to a global user page on Meta-wiki" implies they (or an admin) deleted the user page. The person migrating to GUP probably didnt consider the GUP wont show in search results, so I've mentioned this task on https://www.mediawiki.org/wiki/Help:Extension:GlobalUserPage .

Deskana lowered the priority of this task from Low to Lowest.Dec 10 2015, 12:24 AM
Deskana subscribed.

I agree that it is confusing that global user pages are not listed in search results. The page has content in it when you read it, so it's odd that you can't find it using search. I also agree with @jayvdb that it would be confusing to include these pages in search results. The pages have no content in edit mode, and otherwise don't really exist on the wiki in question.

Discovery-ARCHIVED won't be working on this any time soon, as the effort of figuring this out is not worth the rewards for us.