wiki.techinc.nl/tests/phpunit/includes/deferred
Aaron Schulz 1f4efc6c34 Add RefreshSecondaryDataUpdate and use it in DerivedPageDataUpdater
This class implements EnqueueableDataUpdate and can be pushed as a
job if it fails to run via DeferredUpdates.

Unlike a1f7fd3ada, make RefreshSecondaryDataUpdate skip failing
updates in doUpdate(). Instead of throwing the first exception from
any update, log any exceptions that occur and try all the other
updates. The first error will be re-thrown afterwards.

Also, make sure that each DataUpdate still has outer transaction
scope. This property is documented at mediawiki.org and should not
be changed.

Add integration tests for RefreshSecondaryDataUpdateTest.

Bug: T218456
Bug: T206283
Change-Id: I7c6554a4d4cd76dfe7cd2967afe30b3aa1069fcb
2020-03-11 00:42:48 -07:00
..
CdnCacheUpdateTest.php Make MergeableUpdate jobs avoid the sub-queue so they can always merge 2018-10-12 00:36:39 +00:00
DeferredUpdatesTest.php Make use of PHPUnit's assertCount feature where possible 2020-03-02 15:58:41 +00:00
LinksUpdateTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
RefreshSecondaryDataUpdateTest.php Add RefreshSecondaryDataUpdate and use it in DerivedPageDataUpdater 2020-03-11 00:42:48 -07:00
SearchUpdateTest.php tests: Add explicit return type void to setUp() and tearDown() 2019-10-30 14:31:22 -07:00
SiteStatsUpdateTest.php tests: Prefer assertSame() when comparing the integer 0 2019-09-19 15:35:23 +00:00