Page MenuHomePhabricator

Page metadata endpoint missing some useful tidbits
Closed, DeclinedPublic

Description

We are currently using the mobile-sections-lead endpoint, which contains some vitally useful metadata (in addition to the actual lead section) that we use in various ways.

If we're going to need to switch away from mobile-sections-lead, then we will need to get the same metadata from another source, and the page/metadata endpoint seems like a logical candidate. Here are the bits that we need:

  • ns -- the namespace of the article.
  • titles -- the canonical / normalized / display titles of the article.
  • wikibase_item -- the Q-number of the article on Wikidata.
  • lastmodified -- the last-modified timestamp of the article.
  • editable -- whether the article is editable, given the current logged-in user's permission levels.

And now I suddenly realize that all of these items are available in the page/summary endpoint, so I'm wondering, should we perhaps merge the summary and metadata endpoints into one?

Event Timeline

Jhernandez subscribed.

page/summary is also consumed on web on every link preview so the output needs to be kept small if possible.

I think @JoeWalsh mentioned he discussed this with you and that you would use page/summary for now?

Please re-open if I'm confused and we need more discussion on this.