Nothing Special   »   [go: up one dir, main page]

Page MenuHomePhabricator

[Spike] Do people use the search within page button
Closed, ResolvedPublic1 Estimated Story Points

Description

Background

  • As we're considering changes to the search bar on mobile, we'd like to know how the current functionality is being used

User story

  • As a product team, we want to know how often people use the search within page functionality, so we can make a decision on whether to keep it or not

Requirements

  • Check if the search within pages button is instrumented
  • If so, how often is it used?

BDD

  • For QA engineer to fill out

Test Steps

  • For QA engineer to fill out

Design

  • Add mockups and design requirements

Acceptance criteria

  • Add acceptance criteria

Communication criteria - does this need an announcement or discussion?

  • Add communication criteria

Rollback plan

  • What is the rollback plan in production for this task if something goes wrong?

This task was created by Version 1.2.0 of the Web team task template using phabulous

Event Timeline

NBaca-WMF renamed this task from Do people use the search within page button to [Spike] Do people use the search within page button.Oct 24 2024, 4:41 PM

here is a preliminary design from awhile ago that I did for this feature to help with scoping. Actual designs are still TBD

image.png (1×2 px, 1 MB)

ovasileva raised the priority of this task from Medium to High.Thu, Nov 7, 8:58 AM

Is this question for mobile or desktop? It doesn't look like it's instrumented so I think we've need add instrumentation (possibly for both?)

If we don't want to write any code, it's possible just looking at access logs with fulltext parameter and Special:Search page would be a good proxy for this information
e.g. https://en.wikipedia.org/w/index.php?title=Special%3ASearch&fulltext=1&search=ss

NBaca-WMF set the point value for this task to 1.Wed, Nov 13, 5:50 PM

Focus for now on data we have already - create followup if instrumentation is necessary!

Just noting that this does the same thing as "search pages containing" on mobile

Jdlrobson added subscribers: KSarabia-WMF, jwang.

As a proxy for search within pages we can look at uri_query in the webrequest table for a given hour using https://superset.wikimedia.org/sqllab.
The queries constructed on mobile and desktop are slightly different. Mobile URLs will always begin "?fulltext=search" and desktop "?fulltext=1"
To avoid timeout issues I've limited results to a single hour. on a single day on en.wikipedia.org but I am currently getting server errors so can't get these queries to complete. @jwang / @KSarabia-WMF any chance these queries work for you?

Mobile:
select count(*) from webrequest WHERE year = 2024 AND month = 10 AND day = 31 AND hour = 1 AND webrequest_source = 'text' AND uri_host = 'en.m.wikipedia.org' AND "uri_query" LIKE '?fulltext=search&search=%'

Desktop:
select count(*) from webrequest WHERE year = 2024 AND month = 10 AND day = 31 AND hour = 1 AND webrequest_source = 'text' AND uri_host = 'en.wikipedia.org' AND content_type = 'text/html' AND "uri_query" LIKE '?fulltext=1&search=%'

Ok modified the query and managed to run in on the latest snapshot

For mobile:
select count(*) from wmf.webrequest WHERE year = 2024 AND month = 11 AND day = 22 AND hour = 15 AND webrequest_source = 'text' AND uri_host = 'en.m.wikipedia.org' AND "uri_query" LIKE '?fulltext=search&search=%'

417

For desktop:
select count(*) from wmf.webrequest WHERE year = 2024 AND month = 11 AND day = 22 AND hour = 15 AND webrequest_source = 'text' AND uri_host = 'en.wikipedia.org' AND "uri_query" LIKE '?fulltext=1&search=%'

2403

So traffic seems pretty low to me.

Also ran the following query (fulltext searches across all projects) regardless of platform or entry point, so that we include subsequent searches:
select count(*) from wmf.webrequest WHERE year = 2024 AND month = 11 AND day = 22 AND hour = 15 AND webrequest_source = 'text' AND "uri_query" LIKE '%fulltext=%'

147783

@ovasileva does that give you the answers you needed or do you need me to probe some more, and/or have any follow up questions?

ovasileva closed this task as Resolved.EditedTue, Nov 26, 4:15 PM

Ok modified the query and managed to run in on the latest snapshot

For mobile:
select count(*) from wmf.webrequest WHERE year = 2024 AND month = 11 AND day = 22 AND hour = 15 AND webrequest_source = 'text' AND uri_host = 'en.m.wikipedia.org' AND "uri_query" LIKE '?fulltext=search&search=%'

417

For desktop:
select count(*) from wmf.webrequest WHERE year = 2024 AND month = 11 AND day = 22 AND hour = 15 AND webrequest_source = 'text' AND uri_host = 'en.wikipedia.org' AND "uri_query" LIKE '?fulltext=1&search=%'

2403

So traffic seems pretty low to me.

Also ran the following query (fulltext searches across all projects) regardless of platform or entry point, so that we include subsequent searches:
select count(*) from wmf.webrequest WHERE year = 2024 AND month = 11 AND day = 22 AND hour = 15 AND webrequest_source = 'text' AND "uri_query" LIKE '%fulltext=%'

147783

@ovasileva does that give you the answers you needed or do you need me to probe some more, and/or have any follow up questions?

This looks good to me, thanks @Jdlrobson! cc @JScherer-WMF - seems usage is low enough to where I wouldn't be concerned if we were to remove this temporarily or permanently.