Page MenuHomePhabricator

Hydrate mobile-html response with Topics metadata
Open, HighPublic1 Estimated Story Points

Description

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.

Details

Event Timeline

Change #1303555 had a related patch set uploaded (by Dbrant; author: Dbrant):

[mediawiki/services/mobileapps@master] [WIP] Add Topics metadata to mobile-html response.

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

Seddon changed the point value for this task from 5 to 3.Jun 23 2026, 4:43 PM
Seddon set Final Story Points to 5.

@BWojtowicz-WMF , should this be using the new Linked Artifacts Cache topics endpoint?

@BWojtowicz-WMF , should this be using the new Linked Artifacts Cache topics endpoint?

Just confirming what was said on slack - we should totally be using the LAC endpoint here :)

Change #1303555 merged by jenkins-bot:

[mediawiki/services/mobileapps@master] Add Topics metadata to mobile-html response.

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

From staging:

image.png (1,986×156 px, 78 KB)

Also using curl:

curl -k -s https://localhost:4102/en.wikipedia.org/v1/page/mobile-html/Dog | htmlq 'meta[property="pcs:topics"]'
<meta content="[{&quot;topic&quot;:&quot;STEM.STEM*&quot;,&quot;score&quot;:0.9905974268913269},{&quot;topic&quot;:&quot;STEM.Biology&quot;,&quot;score&quot;:0.983095109462738}]" property="pcs:topics">