Page MenuHomePhabricator

Include nominated collection suggestions for topic filter
Open, In Progress, HighPublic4 Estimated Story Points

Description

When there is a nominated collection for the target language and the current filter is a topic, try to include up to 50% of suggestions from the nominated collection that match the topic and the rest from the articletopic search.

When there is no nominated collection, nothing different from the current state.

Recommended approach is the use the search API combining articletopic with pageid with the ID of the pages in the collection in the source wiki.


Derived Requirement

Ensure that when a nominated collection exists for the target language and a topic filter is applied, up to 50% of the suggested results are sourced from the nominated collection pages that match the selected topic, with the remaining results sourced from the articletopic search API. When no nominated collection exists for the target language, topic-filtered suggestions must behave identically to the current implementation.

Test Steps

Test Case 1: Include Nominated Collection Suggestions When Topic Filter Is Applied

  1. Ensure a nominated collection exists for the target language with multiple pages mapped to a known topic.
  2. Open Wikipedia using the Minerva skin.
  3. Navigate to the feature where article suggestions are generated.
  4. Apply a topic filter that matches pages within the nominated collection.
  5. Observe the list of generated suggestions.
  6. ✅❓❌⬜ AC1: Confirm that no more than 50% of the suggestions are sourced from the nominated collection pages that match the selected topic.

QA Results - TestWiki

ACStatusDetails
1Pass per T409338#11491732

Event Timeline

Nikerabbit moved this task from Needs Triage to Dashboard on the ContentTranslation board.
SBisson raised the priority of this task from Medium to High.Nov 13 2025, 1:34 PM
SBisson updated the task description. (Show Details)
SBisson moved this task from Incoming to Prioritized on the LPL Hypothesis board.
ngkountas set the point value for this task to 4.Nov 19 2025, 1:16 PM
ngkountas changed the task status from Open to In Progress.Nov 20 2025, 12:36 PM
ngkountas claimed this task.
ngkountas moved this task from Prioritized to In-progress on the LPL Hypothesis board.

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

[research/recommendation-api@master] add support for combining single page collection with topic filter

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

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

[research/recommendation-api@master] cache collection article page ids

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

Change #1207918 merged by jenkins-bot:

[research/recommendation-api@master] add support for combining single page collection with topic filter

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

Change #1211182 merged by jenkins-bot:

[research/recommendation-api@master] cache collection article page ids

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

@ngkountas it looks like this task is still missing a patch from the CX side to utilize the new rec-api capabilities?

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

[research/recommendation-api@master] featured collection search recommender: fix typo

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

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

[mediawiki/extensions/ContentTranslation@master] CX: Include featured suggestions in topic recommendations

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

Change #1215587 merged by jenkins-bot:

[research/recommendation-api@master] featured collection search recommender: fix typo

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

Change #1215588 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX: Include featured suggestions in topic recommendations

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

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

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

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

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

[mediawiki/extensions/ContentTranslation@wmf/1.46.0-wmf.5] CX3 Build 1.0.0+20251209

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

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

[operations/deployment-charts@master] Update Recommendation API to 2025-12-09-164214-production

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

Change #1217182 merged by jenkins-bot:

[operations/deployment-charts@master] Update Recommendation API to 2025-12-09-164214-production

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

Change #1216835 merged by jenkins-bot:

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

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

Change #1217181 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@wmf/1.46.0-wmf.5] CX3 Build 1.0.0+20251209

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

Mentioned in SAL (#wikimedia-operations) [2025-12-10T14:07:02Z] <sbisson@deploy2002> sbisson: Backport for [[gerrit:1217181|CX3 Build 1.0.0+20251209 (T384485 T408845 T409332 T409337 T409338 T411779)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-12-10T14:13:57Z] <sbisson@deploy2002> Finished scap sync-world: Backport for [[gerrit:1217181|CX3 Build 1.0.0+20251209 (T384485 T408845 T409332 T409337 T409338 T411779)]] (duration: 09m 01s)

@ngkountas Can you please review AC1? I know not all topics will have Community priority but I just came across "Music" and "TV and film", as seen in the video. Is that ok?

Test Result - Test Wiki

Status: ❓Need More Info
Environment: Test Wiki
OS: macOS Tahoe 26.1
Browser: Chrome 143
Device: MBA
Emulated Device: NA

Test Artifact(s):

https://test.wikipedia.org/w/index.php?title=Special:ContentTranslation&active-list=suggestions&filter-id=music&filter-type=topic&from=en&to=ha#/

Test Steps

Test Case 1: Include Nominated Collection Suggestions When Topic Filter Is Applied

  1. Ensure a nominated collection exists for the target language with multiple pages mapped to a known topic.
  2. Open Wikipedia using the Minerva skin.
  3. Navigate to the feature where article suggestions are generated.
  4. Apply a topic filter that matches pages within the nominated collection.
  5. Observe the list of generated suggestions.
  6. AC1: Confirm that no more than 50% of the suggestions are sourced from the nominated collection pages that match the selected topic.

Only "Music" and "TV and film" Topic showed Community priority

@GMikesell-WMF I think it's perfectly ok that for some (or even most) topics there are no "featured" suggestions. It also makes sense to me that the TV and film topic has featured suggestions for the African Film and Cinema collection. From my side, I think that this task/feature is completed.

Ok, sounds good, I will move it to Sign-off. Thanks for all your work!

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