Now that article topics are available via API at scale (T392833), let's integrate them into our mobile-html payload, by way of including them in a <meta> tag.
Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| Add Topics metadata to mobile-html response. | Dbrant | mediawiki/services/mobileapps | master | +3 K -2 K |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T427425 [Epic] Apps Year in Review 2026 (V4) | |||
| In Progress | Dbrant | T429634 Implement Topics for articles in reading history for Year in Review | |||
| Open | Dbrant | T429540 Hydrate mobile-html response with Topics metadata |
Event Timeline
Comment Actions
Change #1303555 had a related patch set uploaded (by Dbrant; author: Dbrant):
[mediawiki/services/mobileapps@master] [WIP] Add Topics metadata to mobile-html response.
Comment Actions
@BWojtowicz-WMF , should this be using the new Linked Artifacts Cache topics endpoint?
Comment Actions
Just confirming what was said on slack - we should totally be using the LAC endpoint here :)
Comment Actions
Change #1303555 merged by jenkins-bot:
[mediawiki/services/mobileapps@master] Add Topics metadata to mobile-html response.
Comment Actions
From staging:
Also using curl:
curl -k -s https://localhost:4102/en.wikipedia.org/v1/page/mobile-html/Dog | htmlq 'meta[property="pcs:topics"]'
<meta content="[{"topic":"STEM.STEM*","score":0.9905974268913269},{"topic":"STEM.Biology","score":0.983095109462738}]" property="pcs:topics">