Page MenuHomePhabricator

AdvancedSearch does not offer nor describe “incoming_links_desc” sort
Open, Needs TriagePublic

Description

As a Wikidata editor, when I search for entities in order of most incoming links (as proposed in T194144#5617244), then I want to see AdvancedSearch describe this sort instead of falling back to “Sort by ⧼advancedsearch-sort-unknown⧽”. I would also like to be able to select this sort in the “sorting order” field instead of having to manipulate the URL.

Problem:
AdvancedSearch doesn’t seem to know the incoming_links_desc sort option.

Example:
https://www.wikidata.org/w/index.php?search=-haslabel%3Aen&sort=incoming_links_desc

Screenshots/mockups:

Screenshot_2019-10-30 Search results for -haslabel en - Wikidata.png (137×714 px, 11 KB)

BDD
GIVEN
AND
WHEN
AND
THEN
AND

Acceptance criteria:

Open questions:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 626272 had a related patch set uploaded (by Thiemo Kreuz (WMDE); owner: Thiemo Kreuz (WMDE)):
[mediawiki/extensions/AdvancedSearch@master] Make sure special sort methods don't "disappear"

https://gerrit.wikimedia.org/r/626272

Change 626272 merged by jenkins-bot:
[mediawiki/extensions/AdvancedSearch@master] Make sure special sort methods don't "disappear"

https://gerrit.wikimedia.org/r/626272