Page MenuHomePhabricator

Switching tabs in MediaSearch does not re-query the search
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:

  • You get "We didn't find any results Try more general terms or check your spelling"
  • No API calls are being made when switching the tab

What should have happened instead?:
Upon clicking a new tab, MediaSearch should query the search and display the result.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
Firefox 93 in private browsing mode (aka logged out), Wikimedia Commons

Search results in a different tab appear only after reloading the page, or when changing a filter/sort. The bug only happens when you search from the search bar from outside of Special:MediaSearch, repeating the query inside Special:MediaSearch does not produce this bug.

Event Timeline

Actually going on the reported url https://commons.wikimedia.org/w/index.php?search=Domaine+Solvay&title=Special:MediaSearch&go=Go&type=page manually returns results.

Clicking on "Categories and Pages" (which yields that url) returns an empty list with the message "We didn't find any results Try more general terms or check your spelling"

Dylsss renamed this task from Search by category is broken, requires many steps and howto to Switching tabs in MediaSearch does not re-query the search.Oct 17 2021, 11:23 AM
Dylsss edited projects, added SDAW-MediaSearch; removed Advanced-Search.
Dylsss updated the task description. (Show Details)

I've updated the task description to better describe the bug, which is not specifically to do with categories and more to do with the fact that switching to any different tab does not re-query the search in that tab. Hope that is ok.

I've updated the task description to better describe the bug, which is not specifically to do with categories and more to do with the fact that switching to any different tab does not re-query the search in that tab. Hope that is ok.

Yes, thank you @Dylsss

The issue seem to be correlated to the following change https://phabricator.wikimedia.org/T291622, that is preventing the system to sent new API request.

Change 731785 had a related patch set uploaded (by Seddon; author: Seddon):

[mediawiki/extensions/MediaSearch@master] Revert 727328

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

Change 731808 had a related patch set uploaded (by Urbanecm; author: Seddon):

[mediawiki/extensions/MediaSearch@wmf/1.38.0-wmf.4] Revert 727328

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

Change 731785 merged by jenkins-bot:

[mediawiki/extensions/MediaSearch@master] Revert 727328

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

Change 731808 merged by jenkins-bot:

[mediawiki/extensions/MediaSearch@wmf/1.38.0-wmf.4] Revert 727328

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

Mentioned in SAL (#wikimedia-operations) [2021-10-18T19:29:34Z] <urbanecm@deploy1002> Synchronized php-1.38.0-wmf.4/extensions/MediaSearch/resources/store/state.js: ac7b4fc2ccc69589e00a42f49d18a8f6d71777f2: Revert 727328 (T293554) (duration: 00m 56s)

Change 730208 had a related patch set uploaded (by Seddon; author: Simone Cuomo):

[mediawiki/extensions/MediaSearch@master] Refactor the URI.query

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

Change 730208 merged by jenkins-bot:

[mediawiki/extensions/MediaSearch@master] Refactor the URI.query

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

Change 731961 had a related patch set uploaded (by Urbanecm; author: Simone Cuomo):

[mediawiki/extensions/MediaSearch@wmf/1.38.0-wmf.4] Refactor the URI.query

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

Change 731962 had a related patch set uploaded (by Urbanecm; author: Simone Cuomo):

[mediawiki/extensions/MediaSearch@wmf/1.38.0-wmf.5] Refactor the URI.query

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

Change 731961 merged by jenkins-bot:

[mediawiki/extensions/MediaSearch@wmf/1.38.0-wmf.4] Refactor the URI.query

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

Change 731962 merged by jenkins-bot:

[mediawiki/extensions/MediaSearch@wmf/1.38.0-wmf.5] Refactor the URI.query

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

Mentioned in SAL (#wikimedia-operations) [2021-10-19T18:45:27Z] <urbanecm@deploy1002> Synchronized php-1.38.0-wmf.4/extensions/MediaSearch/: 694580a: c02e301: MediaSearch backports(T291392, T293335, T291392, T291622, T293554) (duration: 01m 03s)

Mentioned in SAL (#wikimedia-operations) [2021-10-19T18:46:30Z] <urbanecm@deploy1002> Synchronized php-1.38.0-wmf.5/extensions/MediaSearch/: a84a675: 3231578: MediaSearch backports (T291392, T293335, T291392, T291622, T293554) (duration: 01m 03s)

Etonkovidova subscribed.

Checked after deployment to commons wmf.4 - the fix seems to be in place.

Thank you for the fast and effective fix!