What's requested:
Review the MediaSearch API before we make the switch in VE
Why it's requested:
The SD team will be integrating its new MediaSearch API into Visual Editor (see T259896), and we want to make sure the Editing team has a chance to take a look before we do.
Deadline for request:
We were originally hoping to integrate with VE by the end of this quarter (Q2 2020-2021, so realistically that's by the end of November 2020). However, we will probably wait until instrumentation is complete, which will likely end up being sometime (hopefully early) in Q3 2020-2021.
Other helpful information:
The code is here: https://github.com/wikimedia/mediawiki-extensions-WikibaseMediaInfo/tree/master/src/Search
MediaQueryBuilder.php is the main one to look at. Note that it's the same as the existing search API with the same response format, but better search results. Nothing will have to change on the VE end. Currently we use a parameter (?mediasearch=1) to get the new search results from the API on Commons, but once we remove the need for the parameter, VE will automatically get the new results.
@matthiasmullie can help with any questions.