Page MenuHomePhabricator

Unblock Analytics Team: Drop MobileWebSearch schema
Closed, ResolvedPublic3 Estimated Story Points

Description

Following a conversation between @ovasileva @mpopov @Jdlrobson @Ottomata and @MNeisler to save analytics the effort of migrating the MobileWebSearch to the new EventLogging platform, given we are not using the data, we will remove the code. This will save the analytics team from wasting unnecessary time migrating this schema.

TODO

  • Disable search schema via a config change to MFSchemaSearchSampleRate from hooks and JSON
  • Remove all traces of MFSchemaSearchSampleRate from our codebase
  • Remove src/mobile.init/eventLogging/schemaMobileWebSearch.js
  • Remove src/mobile.startup/search/MobileWebSearchLogger.js and associated test
  • Remove wire up code in src/mobile.init/mobile.init.js
  • Remove "MobileWebSearch": 12054448 from extension.json

Sign off steps

  • Make sure a task exists about using the new wvui search widget on mobile and noting that doing this will allow us to instrument the search again.

QA Results - Beta

ACStatusDetails
1T282167#7168433

QA Results - Prod

ACStatusDetails
1T282167#7224358

Event Timeline

ovasileva triaged this task as Medium priority.May 6 2021, 4:58 PM
Jdlrobson renamed this task from Drop MobileWebSearch schema to Unblock Analytics Team: Drop MobileWebSearch schema.May 25 2021, 7:19 PM
Jdlrobson updated the task description. (Show Details)
Jdlrobson raised the priority of this task from Medium to High.May 26 2021, 5:32 PM

Change 698651 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[mediawiki/extensions/MobileFrontend@master] Remove MobileWebSearch schema

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

Change 699310 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[mediawiki/skins/MinervaNeue@master] Remove SearchLogger

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

cjming moved this task from Doing to Code Review on the Web-Team-Backlog (Kanbanana-FY-2020-21) board.
cjming subscribed.

Change 699310 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Remove SearchLogger

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

Change 698651 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] Remove MobileWebSearch schema

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

@cjming I think we can remove the events emitted by the SearchOverlay e.g. search-show, search-results, search-start, search-click as well.

Change 699465 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[mediawiki/extensions/MobileFrontend@master] Remove emitted events from SearchOverlay

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

Change 699465 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] Remove emitted events from SearchOverlay

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

Edtadros subscribed.

@Jdlrobson I'm not sure what is intended to be testable here. The signoff steps call out that a task should exist, but I couldn't find one other than this one. I went through some of the gerrit links and saw that some of the items in "ToDo" were removed, but I'm not convinced that is comprehensive enough for validating that all traces are removed. That's better performed as a unit test by someone familiar with the codebase. Let me know your thoughts on how you would like me to proceed.

@Edtadros could you do a smoke test of the search feature on mobile, and just confirm you can use it's basic features and that no JavaScript errors show up in the developer console while using the feature ? e.g. search within page, click search result, cancel search

Test Result - Beta

Status: ✅ Pass
Environment: beta
OS: macOS Big Sur
Browser: Chrome
Device: MBP
Emulated Device: NA

Test Artifact(s):

QA Steps

✅ AC1: Smoke test search feature in mobile.
Functionally the following work, so this is passed: Searching, Search within Pages, clicking a search item, Cancelling Search, Clearing search.

Screen Recording 2021-06-21 at 7.27.49 PM.mov.gif (902×762 px, 1 MB)

@Jdlrobson There are three behaviors I want to bring to your attention. If you are okay with these then I'll pass it./
1) When you X out of the search, not to clear the search, and don't navigate away, if you click back in the search, your previous search string is still displayed. I suspect this is as designed but I wanted to be sure.//
Screen Recording 2021-06-21 at 7.36.34 PM.mov.gif (902×762 px, 1 MB)

2) When you click on the search icon to the left of the "Search within pages", it will momentarily display the page you were on and then navigate to the search page. Clicking on "Search within pages" does not do that, it goes straight to search as expected.

Screen Recording 2021-06-21 at 7.32.14 PM.mov.gif (902×762 px, 853 KB)

3) When you click on a watch star, some text is displayed, if you click on multiple watch stars the text remains displayed as shown below:

Screen Recording 2021-06-21 at 7.30.57 PM.mov.gif (902×762 px, 634 KB)

Screen Recording 2021-06-21 at 8.06.00 PM.mov.gif (902×762 px, 846 KB)

The watchstar is unrelated so this can be considered a pass. We're looking to get rid of that code at some point, so I won't raise a new issue.

Test Result - Prod

Status: ✅ Pass
Environment: enwiki
OS: macOS Big Sur
Browser: Chrome
Device: MBP
Emulated Device: NA

Test Artifact(s):

QA Steps

✅ AC1: Smoke test search feature in mobile.
Functionally the following work, so this is passed:
Searching, Search within Pages, clicking a search item, Canceling Search, Clearing search.

Screen Recording 2021-07-20 at 6.00.06 AM.mov.gif (1×988 px, 3 MB)

Edtadros updated the task description. (Show Details)