wiki.techinc.nl/tests/phpunit/includes/jobqueue
Máté Szabó 90c2840cca UserEditTracker: Do not try to initialize edit count in read-only mode
The method UserEditTracker::getUserEditCount (as well as the old User class
logic it replaced) calculates the user's edit count and writes it to the
database if it was not computed yet. However, it attempts this write even if
MediaWiki is in read-only mode, causing errors as this method is frequently
called on read requests as well.

As a fix, move the edit count initialization to the job queue, which will avoid
trying to open a source DB connection (and thus cause a read-only error) on
installs that do not use the DB-based job queue. This change requires a
workaround in UserGroupManagerTest.

Bug: T259719
Change-Id: I6d1c8e9038ae1f98f47bdb2495aecc21654b24c0
2020-08-06 00:50:41 +02:00
..
jobs UserEditTracker: Do not try to initialize edit count in read-only mode 2020-08-06 00:50:41 +02:00
JobQueueMemoryTest.php Move UIDGenerator code to a service and put it under /libs 2020-02-18 00:20:40 +00:00
JobQueueTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
JobRunnerTest.php Fix visibility of setUp/tearDown 2020-06-16 21:02:05 +02:00
JobTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
RefreshLinksPartitionTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00