Page MenuHomePhabricator

xLab: Update instrument's Sampling configuration section
Closed, ResolvedPublic1 Estimated Story Points

Description

Problem

We've been making an effort to reduce the amount of technical jargon used in xLab's instrument and experiment configuration forms in order to make them more accessible for PMs. This has caused the UI copy to divert from the terminology used in the code.

We recently recognized that the target users of the instrument configuration form will mainly be engineers. The fact that the connection between the form's UI and the code is lost could now instead hinder their workflow.

Suggested solution

We should revert some of the changes applied to the copy of the 'Traffic' (fka 'Sampling') section of the Instrument configuration form to make sure it's aligned with the terminology used in Metrics platform's technical documentation and code.

Screenshot 2025-06-05 at 20.20.14.png (1,078×711 px, 94 KB)

  1. 'Traffic' section: This section's title should be reverted to 'Sampling'
  2. 'Sample unit' field: 2.1. The field's description should be updated for accuracy to 'Defines the scope of the user activity to be tracked, and how it’s grouped for analysis. Learn more'. 2.2. The 'Learn more' link's URL should be replaced by https://wikitech.wikimedia.org/wiki/Metrics_Platform/Analytics_sampling#Sample_unit.
  3. 'User traffic per wiki' field: 3.1. This field's title is updated to 'Sample rate per wiki'. 3.2. The description changes to: 'Define the sample rate that should be applied to each relevant wiki. Traffic from both desktop and mobile webs will be included by default. Learn more'. 3.3. The URL of the description's 'Learn more' link should be https://wikitech.wikimedia.org/wiki/Metrics_Platform/Analytics_sampling#Sample_rate. 3.4. The label of the 'Traffic (%)' field is changed back to 'Sample rate'. 3.5. The input to this field is expressed by decimal numbers between 0 and 1. 3.6. We adjust the copy of the validation messages as needed.
Acceptance criteria
  • We update the Sampling section in the instrument configuration form to align it with code terminology

Details

Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Updated sampling configuration section for instrumentsrepos/data-engineering/test-kitchen!256sfaciT396141-update-sampling-configurationmain
Customize query in GitLab

Event Timeline

JVanderhoop-WMF moved this task from READY TO GROOM to Backlog on the Test Kitchen board.
Milimetric set the point value for this task to 3.Jun 16 2025, 3:52 PM
Milimetric raised the priority of this task from Low to Medium.Sep 25 2025, 6:21 PM
Milimetric changed the point value for this task from 3 to 1.

Change #1193136 had a related patch set uploaded (by Santiago Faci; author: Santiago Faci):

[operations/deployment-charts@master] xLab: Deploying v1.0.6 release to staging

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

Change #1193136 merged by jenkins-bot:

[operations/deployment-charts@master] xLab: Deploying v1.0.6 release to staging

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

Change #1193878 had a related patch set uploaded (by Santiago Faci; author: Santiago Faci):

[operations/deployment-charts@master] xLab: Deploying v1.0.6 release to production

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

Change #1193878 merged by jenkins-bot:

[operations/deployment-charts@master] xLab: Deploying v1.0.6 release to production

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