Page MenuHomePhabricator

Add missing response properties for REST API page history endpoint
Closed, ResolvedPublic

Description

In the OpenAPI spec for the MediaWiki REST API, the GET /page/{title}/history endpoint is missing two response properties:

  • older (optional, string): If available, URL to get the prior revision segment
  • newer (optional, string): If available, URL to get the following revision segment

Resources:

Event Timeline

Change #1196685 had a related patch set uploaded (by Atieno; author: Atieno):

[mediawiki/core@master] Add missing response properties for REST API page history endpoint

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

Change #1196685 merged by jenkins-bot:

[mediawiki/core@master] Add missing response properties for REST API page history endpoint

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

  • If available, URL to get the prior revision segment
  • If available, URL to get the following revision segment

To which thing do the words "prior" and "following" refer: to the revision or to the segment? This makes the translation different in some languages.

BPirkle subscribed.

Adding to sprint. Merged patch has added the missing strings, but as Amir points out the wording could be improved to help with translation.

Change #1198172 had a related patch set uploaded (by BPirkle; author: BPirkle):

[mediawiki/core@master] Clarify strings in page history response schema property descriptions

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

Change #1198172 merged by jenkins-bot:

[mediawiki/core@master] Clarify strings in page history response schema property descriptions

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