ApiComparePages: Update for MCR
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 26 Jul 2018 21:24:59 +0000 (17:24 -0400)
committerGergő Tisza <gtisza@wikimedia.org>
Thu, 23 Aug 2018 14:56:10 +0000 (14:56 +0000)
commit1ab2f7a56ba5d1e4b613107d3e2991bbc36ba68e
treef27a2a5ceb8016077feeb6ac84688457be40d4ca
parentc6205149049a9cb40c4c2d11ef610b6bdca5a606
ApiComparePages: Update for MCR

The main external change here is that it can now return diffs per slot,
and the various parameters for providing text are deprecated in favor of
templated per-slot versions.

Also, this deprecates the 'fromsection' and 'tosection' behavior
introduced for T183823 (extracting a section's content for the diff) in
favor of the more logical behavior requested in T185723 (expanding
'fromtext-{slot}'/'totext-{slot}' as if for a section edit).

Bug: T200569
Bug: T183823
Bug: T185723
Change-Id: I700edfa766bbc320887f2e0b7507fcdb11e72cdc
RELEASE-NOTES-1.32
includes/api/ApiComparePages.php
includes/api/i18n/en.json
includes/api/i18n/qqq.json
includes/diff/DifferenceEngine.php
tests/phpunit/includes/api/ApiComparePagesTest.php