[MCR] Move getSecondaryDataUpdates to the page level
authorGergő Tisza <tgr.huwiki@gmail.com>
Tue, 28 Aug 2018 15:34:25 +0000 (17:34 +0200)
committerGergő Tisza <tgr.huwiki@gmail.com>
Tue, 4 Sep 2018 19:50:58 +0000 (21:50 +0200)
commit51602a436c723fe8ccf353d5fe5940aec857935f
treec4e9a8d4cb815c5b723b0aa89f305827287d64f5
parent0ecfe75502b5a7a7224cf79531b1fd90662048cb
[MCR] Move getSecondaryDataUpdates to the page level

Replaces Content::getSecondaryDataUpdates with
WikiPage::getSecondaryDataUpdates so that aggregation of
data updates from multiple page slots can be handled without
the caller having to care about it.
Also adds a WikiPage::updateParserCache method for convenience.

This is a temporary measure until DerivedPageDataUpdater
(or its replacement) can be exposed directly, at which point
the WikiPage methods will be deprecated.

Also fixes a parameter handling bug in DerivedPageDataUpdater.

Bug: T194043
Change-Id: Idbe7d582b49fcb7c90aea813773b7610ad44b1a8
includes/Storage/DerivedPageDataUpdater.php
includes/Storage/PageUpdater.php
includes/api/ApiPurge.php
includes/jobqueue/jobs/RefreshLinksJob.php
includes/page/WikiPage.php
maintenance/refreshLinks.php
tests/phpunit/includes/Storage/DerivedPageDataUpdaterTest.php
tests/phpunit/includes/page/WikiPageDbTestBase.php