Page MenuHomePhabricator

Rec APi not picking up new collection Wiki99/LGBT+
Closed, ResolvedPublic

Description

<page-collection> tag was added to the Wiki99/LGBT+ page but the recommendation API has not picked it up.

In production, it looks like some servers have tried to pick it up but failed and are returning no collections at all from the page-collections endpoint while other servers are still returning the other collections. Which leads to the Collections filters being unavailable for some users.

Got it. Here's the corrected output with the complete Status line included as per the formatting guidelines.


Derived Requirement

Ensure that the Recommendation API reliably detects and returns the '#Wiki99/LGBT+' collection from the <page-collection> tag so that it appears in the Collections filter for all users across all servers.

Test Steps

Test Case 1: Ensure '#Wiki99/LGBT+' collection is returned by Recommendation API

  1. Open the Wiki99/LGBT+ page and verify that it includes a valid <page-collection> tag with '#Wiki99/LGBT+'.
  2. Call the Recommendation API page-collections endpoint for the Wiki99/LGBT+ page.
  3. ✅❓❌⬜ AC1: Verify that the API response includes the '#Wiki99/LGBT+' collection.

QA Results - Meta

ACStatusDetails
1T395026#10868991

Event Timeline

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

[research/recommendation-api@master] Fully encode URLs for GET requests

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

Change #1149449 merged by jenkins-bot:

[research/recommendation-api@master] Fully encode URLs for GET requests

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

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

[operations/deployment-charts@master] Update recommendation-api to 2025-05-26-081343-production

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

Change #1150664 merged by jenkins-bot:

[operations/deployment-charts@master] Update recommendation-api to 2025-05-26-081343-production

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

@SBisson Verified that the API response includes the '#Wiki99/LGBT+' collection as seen in the screenshots. I will move this to Sign-off. Thanks for all your work!

Test Result - Meta

Status: ✅ PASS
Environment: Meta
OS: macOS Sequoia 15.6
Browser: Chrome 136
Device: MBA
Emulated Device: NA

Test Artifact(s):
https://meta.wikimedia.org/w/index.php?title=Wiki99%2FLGBT%2B&diff=28761976&oldid=28479302
https://api.wikimedia.org/service/lw/recommendation/api/v1/translation/page-collections

Test Steps

Test Case 1: Ensure '#Wiki99/LGBT+' collection is returned by Recommendation API

  1. Open the Wiki99/LGBT+ page and verify that it includes a valid <page-collection> tag with '#Wiki99/LGBT+'.
  2. Call the Recommendation API page-collections endpoint for the Wiki99/LGBT+ page.
  3. AC1: Verify that the API response includes the '#Wiki99/LGBT+' collection.
Page CollectionAPI Result
2025-05-29_12-40-29.png (828×1 px, 230 KB)
2025-05-29_12-41-19.png (615×1 px, 290 KB)
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF moved this task from Needs QA to Design Signoff on the LPL Hypothesis board.
PWaigi-WMF subscribed.

The issue is now sorted. (steps taken)

  • A different variation of the page collection tag was added to the Wiki99/LGBT+ meta page.
  • The meta page was also marked for translation