Page MenuHomePhabricator

Use the new language Item search profile in new-lexeme-special-page.git
Closed, ResolvedPublic5 Estimated Story Points

Description

As part of T307869 a new search profile for language Items was created and a new optional profile parameter was added to the wbsearchentities API endpoint.

For the users of Special:NewLexemeAlpha to actually benefit from these improved results, we need to make use of that new parameter in our API call.

Acceptance criteria

  • The search API call for Items in the LanguageInput uses the new profile=language parameter
  • The submodule-commit in WikibaseLexeme.git as bumped to include this functionality
  • This is available on beta Wikidata and does not cause errors there

Event Timeline

Task Breakdown Notes:

  • The language search profile is not supported on the default Wikibase (only on Beta and Test), therefore difficult to test locally.
  • We should only add the profile=language API parameter if the wiki supports it.
  • The $wgWBRepoSettings['searchProfiles'] setting lists available profiles.
  • We should clean up the API so that the profile parameter itself is always available, even when only one profile is configured. Subtask to be created by @Lucas_Werkmeister_WMDE
  • We should clean up the API so that the profile parameter itself is always available, even when only one profile is configured. Subtask to be created by @Lucas_Werkmeister_WMDE

T317317: Always make wbsearchentities profile parameter available

Change 831064 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/WikibaseLexeme@master] Make search profiles available to app

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

Change 831099 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/WikibaseLexeme@master] Bump SNL to make use of search profiles

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

Change 831064 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Make search profiles available to app

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

Change 831099 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Bump SNL to make use of search profiles

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