Page MenuHomePhabricator

Only display "Remember selection for future searches" when user is logged in
Closed, ResolvedPublic1 Estimated Story Points

Description

Wit the AC from T181638: "Remember selection for future searches" feature for AdvancedSearch, the checkbox for storing the current namespace selection is always present. However, the namespace selection can only be stored when the user is logged in, otherwise, the checkbox will be ignored. This will be confusing for non-logged in users when AdvancedSearch comes out of beta and is available for all users.

Acceptance criteria:

  • The checkbox "Remember selection for future searches" is only shown to non-anonymous users.

Tip for fixing:

Make advancedSearch depend on mw.user and check mw.user.isAnon()

Event Timeline

gabriel-wmde created this task.
gabriel-wmde changed the point value for this task from 2 to 1.Mar 12 2018, 3:26 PM

Change 437244 had a related patch set uploaded (by Tim Eulitz; owner: Tim Eulitz):
[mediawiki/extensions/AdvancedSearch@master] Hide "Remember selection" from anon users

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

Tim_WMDE moved this task from Doing to Review on the WMDE-FUN-Sprint-2018-05-28 board.
Tim_WMDE subscribed.
Tim_WMDE moved this task from Doing to Review on the WMDE-FUN-Sprint-2018-05-28 board.

Change 437244 merged by Tonina Zhelyazkova:
[mediawiki/extensions/AdvancedSearch@master] Hide "Remember selection" from anon users

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

@Tonina_Zhelyazkova_WMDE I just realised, I can't really test that because advanced search is a beta feature that only logged in users can use.

Is there a way for me to circumvent it or can I assume that if the old advanced search interface is missing the checkbox then the new one will aswell?

@Charlie_WMDE No, there is actually no way to currently test this properly. You can assume it works correctly if the previous behavior for logged-in users still functions normally.

Change 921472 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/AdvancedSearch@master] Adjust check for anon users to exclude "named"

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

Change 921472 merged by jenkins-bot:

[mediawiki/extensions/AdvancedSearch@master] Adjust check for registered users

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