Page MenuHomePhabricator

CX event logging: event_source not logged for "suggestion_filters_single_select_confirm" event
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  1. Visit CX dashboard.
  2. Open the suggestion filters dialog
  3. Select any filter you prefer and click on the "Done" buttom at the top-right corner

What happens?:
The suggestion_filters_single_select_confirm event is logged, but the event_source field is missing.

What should have happened instead?:
The event_source field should be properly filled, depending on the selected filter.


Derived Requirement

Ensure that the suggestion_filters_single_select_confirm event in the Content Translation (CX) dashboard logs the event_source field correctly, corresponding to the filter selected by the user during suggestion filter confirmation.

Test Result - Beta|Prod

Status: ✅ PASS / ❓Need More Info / ❌ FAIL
Environment: beta/xyzwiki
OS: macOS Sequoia 15.5
Browser: Chrome 138
Device: MBA
Emulated Device: NA

Test Artifact(s):
https://test.m.wikipedia.org/w/index.php?title=Special:ContentTranslation&active-list=suggestions&filter-id=sports&filter-type=topic&from=en&to=te#/

Test Steps

Test Case 1: Verify event\_source is logged on single filter confirmation

  1. Log in to the beta wiki with Content Translation enabled.
  2. Navigate to Special:ContentTranslation dashboard.
  3. Open the suggestion filters dialog.
  4. Select any one suggestion filter (e.g., "Sports").
  5. Click the Done button at the top-right corner of the dialog.
  6. Open browser developer tools → Network tab → Filter by event or inspect eventlogging POST requests.
  7. ✅❓❌⬜ AC1: Confirm that the suggestion_filters_single_select_confirm event is logged and that the value of event_source corresponds to the selected suggestion filter (e.g., "suggestion_filter_topic_area").

QA Results - TestWiki

ACStatusDetails
1T397296#11045096

Event Timeline

ngkountas triaged this task as Medium priority.Jun 18 2025, 10:01 AM
ngkountas moved this task from Needs Triage to Dashboard on the ContentTranslation board.

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

[mediawiki/extensions/ContentTranslation@master] CX custom filters: Add "event_source" for confirm selection event

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

Change #1167541 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX custom filters: Add "event_source" for confirm selection event

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

Change #1169199 had a related patch set uploaded (by Sbisson; author: Sbisson):

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

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

Change #1169199 merged by jenkins-bot:

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

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

@ngkountas Confirmed that the suggestion_filters_single_select_confirm event is logged and that the value of event_source corresponds to the selected suggestion filter (e.g., "suggestion_filter_topic_area") as seen from the screenshot. I will move this to Sign-off. Thanks for all your work!

Test Result - TestWiki

Status: ✅ PASS
Environment: TestWiki
OS: macOS Sequoia 15.5
Browser: Chrome 138
Device: MBA
Emulated Device: NA

Test Artifact(s):
https://test.m.wikipedia.org/w/index.php?title=Special:ContentTranslation&active-list=suggestions&filter-id=sports&filter-type=topic&from=en&to=te#/

Test Steps

Test Case 1: Verify event\_source is logged on single filter confirmation

  1. Log in to the beta wiki with Content Translation enabled.
  2. Navigate to Special:ContentTranslation dashboard.
  3. Open the suggestion filters dialog.
  4. Select any one suggestion filter (e.g., "Sports").
  5. Click the Done button at the top-right corner of the dialog.
  6. Open browser developer tools → Network tab → Filter by event or inspect eventlogging POST requests.
  7. AC1: Confirm that the suggestion_filters_single_select_confirm event is logged and that the value of event_source corresponds to the selected suggestion filter (e.g., "suggestion_filter_topic_area").

2025-07-29_12-42-47.png (863×2 px, 341 KB)

GMikesell-WMF updated Other Assignee, added: GMikesell-WMF.
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF moved this task from Needs QA to Design Signoff on the LPL Hypothesis board.
Nikerabbit changed the task status from Open to In Progress.Aug 12 2025, 7:20 AM
Nikerabbit set the point value for this task to 1.