Page MenuHomePhabricator

Over represent nominated collection in 'all collections' suggestions
Open, In Progress, HighPublic4 Estimated Story Points

Description

When there is a nominated collection for the target language and the current filter is 'all collections', try to include up to 50% of suggestions from the nominated collection and the rest from other collections at random.

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


Derived Requirement

Ensure that when a nominated collection exists for the target language and the active filter is set to 'all collections', up to 50% of the suggested results are sourced from the nominated collection, with the remaining suggestions sourced randomly from other available collections. When no nominated collection exists for the target language, suggestions under the 'all collections' filter must behave identically to the current implementation.

Test Steps

Test Case 1: Over-represent Nominated Collection When 'All Collections' Filter Is Applied

  1. Ensure a nominated collection exists for the target language and that multiple other collections are also available.
  2. Open Wikipedia using the Minerva skin.
  3. Navigate to the feature where collection-based suggestions are displayed.
  4. Set the collection filter to 'all collections'.
  5. Observe the generated list of suggestions.
  6. ✅❓❌⬜ AC1: Confirm that no more than 50% of the suggestions are sourced from the nominated collection.

QA Results - TestWiki

ACStatusDetails
1T409332#11487642

Event Timeline

SBisson moved this task from Backlog to Incoming on the LPL Hypothesis board.
SBisson triaged this task as High priority.Nov 6 2025, 2:44 PM
SBisson moved this task from Incoming to Prioritized on the LPL Hypothesis board.
ngkountas set the point value for this task to 4.Nov 10 2025, 2:16 PM
ngkountas changed the task status from Open to In Progress.Nov 10 2025, 5:23 PM
ngkountas moved this task from Prioritized to In-progress on the LPL Hypothesis board.
ngkountas moved this task from In-progress to Prioritized on the LPL Hypothesis board.

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

[mediawiki/extensions/ContentTranslation@master] CX: Over represent featured collection in "all collections" filter

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

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

[research/recommendation-api@master] add support for featured collection in "all collections" filter

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

Change #1215159 merged by jenkins-bot:

[research/recommendation-api@master] add support for featured collection in "all collections" filter

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

Change #1207000 abandoned by Nik Gkountas:

[mediawiki/extensions/ContentTranslation@master] CX: Over represent featured collection in "all collections" filter

Reason:

This is abandoned as the functionality is moved to the Recommendation API side: Ie15734ce7015058fe5424bf3035eb69d588d49c5

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

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

[mediawiki/extensions/ContentTranslation@master] CX: Over represent featured collection in "all collections" filter

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

Change #1215235 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX: Over represent featured collection in "all collections" filter

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

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 Confirmed over represent nominated collection in 'all collections' suggestions, as seen in the videos below. I will move this to Sign-off. Thanks for all your work!

Test Result - Test Wiki

Status: ✅ PASS
Environment: Test Wiki
OS: macOS Tahoe 26.1
Browser: Chrome 143
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Steps

Test Case 1: Over-represent Nominated Collection When 'All Collections' Filter Is Applied

  1. Ensure a nominated collection exists for the target language and that multiple other collections are also available.
  2. Open Wikipedia using the Minerva skin.
  3. Navigate to the feature where collection-based suggestions are displayed.
  4. Set the collection filter to 'all collections'.
  5. Observe the generated list of suggestions.
  6. AC1: Confirm that no more than 50% of the suggestions are sourced from the nominated collection.
DesktopMobileiPad
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF moved this task from Needs QA to Design Signoff on the LPL Hypothesis board.