Page MenuHomePhabricator

Recommendation api should not show page collections with no articles
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

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

  • Create a page collection with no valid interwiki links

What happens?:

  • It is displayed on the CX dashboard but gives no recommendations when selected

What should have happened instead?:

  • It should not be displayed on the CX dashboard

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):


Derived Requirement
Ensure that the Recommendation API excludes page collections containing no valid articles or interwiki links from being displayed on the Content Translation (CX) unified dashboard.

Test Case 1: Verify page collections with no valid articles are not displayed

  1. On the test wiki, create a new page collection (e.g., “User:Test/EmptyCollection”).
  2. Ensure the collection contains no valid interwiki links or articles.
  3. Allow or trigger the next Recommendation API update cycle.
  4. Open the CX unified dashboard.
  5. ✅❌❓⬜ AC1: Confirm that the empty page collection does not appear in the list of available collections.

QA Results - TestWiki

ACStatusDetails
1T407895#11368326

Event Timeline

SBisson changed the task status from Open to In Progress.Oct 21 2025, 8:31 PM
SBisson claimed this task.
SBisson triaged this task as High priority.
SBisson moved this task from Backlog to In-progress on the LPL Hypothesis board.

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

[research/recommendation-api@master] Exclude collections with no articles from cache

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

Change #1197712 merged by jenkins-bot:

[research/recommendation-api@master] Exclude collections with no articles from cache

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

ngkountas set the point value for this task to 2.Oct 23 2025, 8:28 AM

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

[operations/deployment-charts@master] Update Recommendation API to 2025-10-22-134201-production

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

Change #1198319 merged by jenkins-bot:

[operations/deployment-charts@master] Update Recommendation API to 2025-10-22-134201-production

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

Mentioned in SAL (#wikimedia-operations) [2025-10-23T13:00:11Z] <kart_> Update Recommendation API to 2025-10-22-134201-production (T407895, T407894)

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

@SBisson Write for African Women in Tanzania 2025 has been updated with interwikilinks, not external links. There are no collections with invalid links to test. Moving to Sign-off. Thanks for all your work

Test Result - Test Wiki

Status: ✅ PASS
Environment: Test Wiki
OS: macOS Tahoe 26.1
Browser: Chrome 142
Device: MBA
Emulated Device: N/A

Test Artifact(s):

  • Screenshot of CX unified dashboard before and after validation of page collection.
  • API response confirming absence of empty collection data.

Test Case 1: Verify page collections with no valid articles are not displayed

  1. On the test wiki, create a new page collection (e.g., “User:Test/EmptyCollection”).
  2. Ensure the collection contains no valid interwiki links or articles.
  3. Allow or trigger the next Recommendation API update cycle.
  4. Open the CX unified dashboard.
  5. AC1: Confirm that the empty page collection does not appear in the list of available collections.
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF moved this task from Needs QA to Design Signoff on the LPL Hypothesis board.