Page MenuHomePhabricator

CX instrumentation: Fix ambiguous event_source for "For you" vs "Recently edited by you" suggestions
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

The dashboard_translation_start event is currently logged with the suggestion_recent_edit event source, when a suggestion both A. from the "For you" filter and B. the "Recently edited by you" list in search page, is selected to be translated.

However we have two different event sources available: suggestion_recent_edit and suggestion_previous_edits, and both should be used to differentiate these two cases.

From my side I feel that suggestion_recent_edit source may be more suitable for case B., judging from the list title. On the other hand, I mean not sure how would a change like this in the instrumentation of the most prominent (until now) filter, would impact the analysis process, and whether it would break some existing code and introduce more technical debt.

To be determined:
Which event source should be used for which case.

Here is the refined output aligned strictly with your QA guidelines:


Derived Requirement

Ensure that when a user starts a translation from dashboard suggestions:

  • If the suggestion is selected from the "For you" filter, the dashboard_translation_start event is logged with the suggestion_previous_edits event source.
  • If the suggestion is selected from the "Recently edited by you" list in the search view, the dashboard_translation_start event is logged with the suggestion_recent_edit event source.
  • The event source value accurately reflects the user-visible origin of the suggestion and differentiates the two cases in analytics.
Test Steps

Preconditions:

  • User is logged in.
  • At least one suggestion is available in the "For you" filter.
  • At least one suggestion is available in the "Recently edited by you" list in the search view.
  • Developer tools are open to inspect network requests or event logging.

Test Case 1: Ensure correct event source for "For you" filter

  1. Open the dashboard.
  2. Select the "For you" filter.
  3. Click on a suggestion to start translation.
  4. Inspect the emitted dashboard_translation_start event in the network payload or logging stream.
  5. ✅❓❌⬜ AC1: The event includes event_source set to suggestion_previous_edits.

Test Case 2: Ensure correct event source for "Recently edited by you" list

  1. Open the search view containing the "Recently edited by you" list.
  2. Click on a suggestion to start translation.
  3. Inspect the emitted dashboard_translation_start event in the network payload or logging stream.
  4. ✅❓❌⬜ AC2: The event includes event_source set to suggestion_recent_edit.

QA Results - TestWiki

ACStatusDetails
1❌T414327#11630460
2❓T414327#11630460

Event Timeline

Change #1225630 had a related patch set uploaded (by Akaza24; author: Akaza24):

[mediawiki/extensions/ContentTranslation@master] CX instrumentation: disambiguate previous edits source

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

Change #1225630 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX instrumentation: disambiguate previous edits source

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

Akaza24 moved this task from Incoming to Completed on the RoadToWiki board.
Akaza24 moved this task from Completed to Incoming on the RoadToWiki board.

Change #1233234 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20260112

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

Change #1233234 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20260112

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

@Akaza24 Please review AC1 and AC2, thanks!

Test Result - TestWiki

Status: ❓ Need More Info / ❌ FAIL
Environment: TestWiki
OS: macOS Tahoe 26.3
Browser: Chrome 143
Device: MBA
Emulated Device: NA

Test Artifact(s): Network event payload (dashboard_translation_start), browser console logs

Test Steps

Preconditions:

  • User is logged in.
  • At least one suggestion is available in the "For you" filter.
  • At least one suggestion is available in the "Recently edited by you" list in the search view.
  • Developer tools are open to inspect network requests or event logging.

Test Case 1: Ensure correct event source for "For you" filter

  1. Open the dashboard.
  2. Select the "For you" filter.
  3. Click on a suggestion to start translation.
  4. Inspect the emitted dashboard_translation_start event in the network payload or logging stream.
  5. ❌ AC1: The event includes event_source set to suggestion_previous_edits.

I don't get those in the event source. Is this how you are supposed to do this to get that event?

Desktop- New SectionMobile- New Section

Test Case 2: Ensure correct event source for "Recently edited by you" list

  1. Open the search view containing the "Recently edited by you" list.
  2. Click on a suggestion to start translation.
  3. Inspect the emitted dashboard_translation_start event in the network payload or logging stream.
  4. ❓AC2: The event includes event_source set to suggestion_recent_edit.

How else am I supposed to get suggestion_recent_edit?

GMikesell-WMF changed the task status from Open to In Progress.Feb 19 2026, 1:09 AM
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF moved this task from Needs QA to In-progress on the LPL Hypothesis board.
Nikerabbit moved this task from In-progress to Product Signoff on the LPL Hypothesis board.
Nikerabbit subscribed.

Current behavior is good enough for now.