Page MenuHomePhabricator

Remove duplicate suggestions for Collections
Closed, ResolvedPublic

Description

If an article needing translation falls under multiple collections, the RecAPI should only return 1 article suggestion, which can then be shown to the user.

Screenshot 2024-12-09 at 07.33.19.png (2,560×1,600 px, 569 KB)

Examples:

HIV/AIDS article appears in 3 collections > Vital articles, Women's Health & List of articles every Wikipedia should have

Bread article appears in 3 collections > Vital articles, Wiki99 & List of articles every Wikipedia should have

Dentistry article appears in 2 collections > List of articles every Wikipedia should have & Vital articles

QA Results - Test Mobile ContentTranslation

ACStatusDetails
1⬜ T381777#10414679

Event Timeline

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

[research/recommendation-api@master] collections: add recommendation to the list only if not already present

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

Change #1101569 merged by jenkins-bot:

[research/recommendation-api@master] collections: add recommendation to the list only if not already present

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

Change #1102845 had a related patch set uploaded (by KartikMistry; author: KartikMistry):

[operations/deployment-charts@master] Update recommendation-api to 2024-12-12-085930-production

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

Change #1102845 merged by jenkins-bot:

[operations/deployment-charts@master] Update recommendation-api to 2024-12-12-085930-production

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

@ngkountas @PWaigi-WMF How would I be able to test this since I can't pick like the example you have with "Dentistry" from Suggestions?

@ngkountas @PWaigi-WMF It seems like this one is hard to test & replicate now since they've fixed it, and Vital Articles is removed since it was similar to the Essential list. I tried to do some blind refreshing for a bit and did not find any duplicates. After discussing it with you, I will move this to Prod sign-off, thanks!

GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF moved this task from Needs QA to Design Signoff on the LPL Hypothesis board.