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 |
||
|---|---|---|
| .. | ||
| jobs | ||
| JobQueueMemoryTest.php | ||
| JobQueueTest.php | ||
| JobRunnerTest.php | ||
| JobTest.php | ||
| RefreshLinksPartitionTest.php | ||