API: Update query modules for MCR
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 16 Feb 2018 18:23:45 +0000 (13:23 -0500)
committerCicalese <ccicalese@wikimedia.org>
Fri, 27 Jul 2018 23:33:45 +0000 (23:33 +0000)
commit07842be379ca3d4d0bc0608c217dd0e8cd7cbe4b
tree22ba3c83164136d9a8d7b2945730b98656a77905
parent7a90cdd12a29633232e81c13c6003b9d8cb168b8
API: Update query modules for MCR

MCR deprecated the Revision class in favor of the broadly similar
RevisionRecord, and more interestingly added the concept of multiple
content "slots" to revisions.

Thus, prop=revisions, prop=deletedrevisions, and so on gain a parameter
to specify which slots are wanted. When this new parameter is not
specified (and any content-related props are specified), a warning about
the legacy format will be issued.

The rest of the modules just needed to call methods or use constants on
RevisionRecord instead of Revision. ApiQueryDeletedrevs wasn't touched,
since it has been deprecated since 1.25 anyway.

This also updates a few non-query modules that don't depend on details
of editing, diffing, or viewing MCR revisions that haven't been figured
out yet.

Bug: T200568
Change-Id: I1327d1784f5cedb006cd74df834cf9a560a77a5d
21 files changed:
RELEASE-NOTES-1.32
includes/Storage/RevisionRecord.php
includes/api/ApiExpandTemplates.php
includes/api/ApiFeedContributions.php
includes/api/ApiPatrol.php
includes/api/ApiQueryAllDeletedRevisions.php
includes/api/ApiQueryAllRevisions.php
includes/api/ApiQueryContributors.php
includes/api/ApiQueryDeletedRevisions.php
includes/api/ApiQueryFilearchive.php
includes/api/ApiQueryRecentChanges.php
includes/api/ApiQueryRevisions.php
includes/api/ApiQueryRevisionsBase.php
includes/api/ApiQueryUserContribs.php
includes/api/ApiQueryWatchlist.php
includes/api/ApiRevisionDelete.php
includes/api/ApiSetNotificationTimestamp.php
includes/api/ApiTag.php
includes/api/i18n/en.json
includes/api/i18n/qqq.json
tests/phpunit/includes/api/query/ApiQueryRevisionsTest.php