Page MenuHomePhabricator

More metadata in Parsoid output
Closed, ResolvedPublic

Description

It would be good to have access to more page-wide metadata so the Mobile-Content-Service doesn't have to make extra mobileview/ MW API requests, in order of importance:

  • Page id
  • languagecount
  • protection
  • isMainpage
  • thumbnail image URL
  • Wikidata description

Event Timeline

bearND raised the priority of this task from to Needs Triage.
bearND updated the task description. (Show Details)
bearND moved this task to Needs Triage on the Parsoid board.
bearND subscribed.
Arlolra triaged this task as High priority.Jan 19 2016, 8:29 PM
Arlolra subscribed.

The only other piece of info Parsoid fetches that we could add is page id and whether it is the main page.

protection, languagecount is not provided in the revisions endpoint and we would have to make additional API calls to add them. As for thumbnail image URL, what is that, as in, is that something the API provides or is that some inferred / heuristic value set by looking at the page output?

Change 307880 had a related patch set uploaded (by Subramanya Sastry):
WIP: T119265: Add more page-level metadata required by MCS

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

The thumbnail image URL is the information about the lead image for the page. It's provided by the mobileview action.

If you don't get all the values I'd say it's probably not worth for Parsoid to make additional calls. Similarly for MCS, we may not want to change what we're doing if we still need to make additional requests.

We're also interested in Wikibase_item ID and isDisambiguation.

Change 307880 merged by jenkins-bot:
T119265: Add more page-level metadata that MCS can use

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

We're also interested in Wikibase_item ID and isDisambiguation.

This information is also not available without making additional requests.

If you don't get all the values I'd say it's probably not worth for Parsoid to make additional calls. Similarly for MCS, we may not want to change what we're doing if we still need to make additional requests.

Based on this, I am going to close this ticket. Please reopen / create a fresh ticket, if anything changes here.