Page MenuHomePhabricator

Recommendation api should remove untagged page collections
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

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

  • Create a list of articles and add the <page-collection /> marker to it
  • Notice that it gets picked up by the recommendation api and displayed on the CX unified dashboard
  • Remove the <page-collection /> marker from the article list

What happens?:

  • It remains displayed as an available collection but contains no pages and give no recommendations when selected

What should have happened instead?:

  • It should be removed from the list of page collections after the next update cycle

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

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

Derived Requirement
Ensure that when the <page-collection /> marker is removed from an article list, the Recommendation API automatically removes the corresponding page collection from the CX unified dashboard during the next update cycle, preventing display of empty or invalid collections.

Test Case 1: Verify page collection removal after marker deletion

  1. On the test wiki, create a new list of articles (e.g., “User:Test/PageCollection”).
  2. Add the <page-collection /> marker to the list and save.
  3. Open the CX unified dashboard and confirm the new page collection appears in the available collections list.
  4. Edit the same article list and remove the <page-collection /> marker.
  5. Wait for or trigger the next Recommendation API update cycle (if manual trigger available).
  6. Refresh the CX unified dashboard.
  7. ✅❌❓⬜ AC1: Confirm that the page collection is no longer displayed on the dashboard after the update cycle.

QA Results - TestWiki

ACStatusDetails
1T407894#11368299

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:30 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

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

@SBisson Page Collection tag has been removed from "Wikimedia Awareness in Akwa Ibom State University" and is not being shown in the CX, as seen in the screenshots. 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 142
Device: MBA
Emulated Device: N/A

Test Artifact(s):

  • Screenshot of CX unified dashboard before and after removal of <page-collection />.
  • Log or API response showing collection state post-update cycle.

Test Case 1: Verify page collection removal after marker deletion

  1. On the test wiki, create a new list of articles (e.g., “User:Test/PageCollection”).
  2. Add the <page-collection /> marker to the list and save.
  3. Open the CX unified dashboard and confirm the new page collection appears in the available collections list.
  4. Edit the same article list and remove the <page-collection /> marker.
  5. Wait for or trigger the next Recommendation API update cycle (if manual trigger available).
  6. Refresh the CX unified dashboard.
  7. AC1: Confirm that the page collection is no longer displayed on the dashboard after the update cycle.
Wikimedia Awareness in Akwa Ibom State UniversityCX
2025-11-12_11-39-08.png (843×1 px, 105 KB)
2025-11-12_11-39-51.png (1×1 px, 282 KB)
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF moved this task from Needs QA to Design Signoff on the LPL Hypothesis board.