Page MenuHomePhabricator

Modify Special:MediaSearch to use the MediaQueryBuilder
Closed, DeclinedPublic

Description

ATM Special:MediaSearch uses an api that wraps the search api

When https://phabricator.wikimedia.org/T252685 is merged we need to change Special:MediaSearch to use the new backend. ATM the new backend will only be activated if mediasearch=1 is in the request url, and the search is in the File namespace

Acceptance criteria:

  • Special:MediaSearch uses MediaQueryBuilder (possibly via the search api) instead of making multiple calls to the search api using haswbstatement etc

This is not something that can be QAd, except for to make sure nothing has broken

Event Timeline

Change 610281 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/extensions/WikibaseMediaInfo@master] Pass mediasearch API requests along to plain old search (with mediasearch profile)

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

I've rewritten the existing API to proxy to the search API because it'd break the frontend rewrite.
Once that is complete, we can transition away from the old API endpoint altogether.

CBogen subscribed.

Nothing that this can be merged independently of the MediaSearch vue.js port (T251940).

This has taken too long to land & we no longer need this intermediate step because the Vue work has already been merged.
I've worked around the blocker for T258063, which makes this ticket obsolete.

Change 610281 abandoned by Matthias Mullie:
[mediawiki/extensions/WikibaseMediaInfo@master] Pass mediasearch API requests along to plain old search (with mediasearch profile)

Reason:
Superseded by https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikibaseMediaInfo/ /625892/

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