Page MenuHomePhabricator

Unified Dashboard: Suggestions for "All collections" filter are fetched, even when a single collection filter is selected
Closed, ResolvedPublicBUG REPORT

Description

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

  1. Visit the Unified Dashboard.
  2. Open the filters dialog, select a single collection filter, and click on "Done" button to apply it.

What happens?:
Suggestions for "All collections" are fetched from the Recommendation API.

What should have happened instead?:
The seed URL parameter should be filled with the selected collection name inside the request URL to the Recommendation API, and suggestions only for that specific collections should be fetched.

Screencast:

Derived Requirement

Ensure that when a single collection filter is selected in the Unified Dashboard, the seed URL parameter in the Recommendation API request is populated with the selected collection name, and suggestions are fetched only for that specific collection.

Test Steps

Test Case 1: Ensure Selected Collection Filter is Applied to the Recommendation API Request

  1. Visit the Unified Dashboard.
  2. Open the filters dialog and select a single collection filter.
  3. Click the "Done" button to apply the selected filter.
  4. ✅❓❌⬜ AC1: Verify that the request URL to the Recommendation API contains the seed parameter populated with the selected collection name.

QA Results - Test Mobile ContentTranslation

ACStatusDetails
1T381124#10405053

Event Timeline

ngkountas triaged this task as High priority.
ngkountas moved this task from Prioritized to In-progress on the LPL Hypothesis board.

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

[mediawiki/extensions/ContentTranslation@master] Fetch suggestions specific to a single collection when selected as filter

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

Change #1099044 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Fetch suggestions specific to a single collection when selected as filter

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

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

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20241202

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

Change #1099753 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20241202

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

GMikesell-WMF updated Other Assignee, added: GMikesell-WMF.
GMikesell-WMF subscribed.

@ngkountas The seed URL parameter should be filled with the selected collection name inside the request URL to the Recommendation API, and suggestions only for that specific collections should be fetched as seen in the gif. I will move this to Done. Thanks for all your work!

Test Result - Test Wikipedia Translate

Status: ✅ PASS
Environment: Test Wikipedia Translate
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device: NA

Test Artifact(s):

https://test.m.wikipedia.org/w/index.php?title=Special:ContentTranslation&active-list=suggestions&from=en&to=el&filter-type=collections&filter-id=Women%27s%20Health

Test Steps

Test Case 1: Ensure Selected Collection Filter is Applied to the Recommendation API Request

  1. Visit the Unified Dashboard.
  2. Open the filters dialog and select a single collection filter.
  3. Click the "Done" button to apply the selected filter.
  4. AC1: Verify that the request URL to the Recommendation API contains the seed parameter populated with the selected collection name.

2024-12-15_19-01-10.mp4.gif (992×1 px, 3 MB)

GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF moved this task from Needs QA to Design Signoff on the LPL Hypothesis board.