wiki.techinc.nl/tests/phpunit/includes/import
Máté Szabó 840c53628e recentchanges: Use current time for imported revision category changes
Why:

- When a revision is imported and the wiki is configured to show
  category changes in RecentChanges, a CategoryMembershipChangeJob is enqueued
  that in turn runs CategoryMembershipChange for each category change.
- The resulting RC entries use the timestamp of the imported revision,
  rather than the current time.
- If the revision being imported is older than $wgRCMaxAge, this can
  cause the RC entries to be immediately deleted with a 1/10 chance by a
  probabilistically enqueued RecentChangesUpdateJob.

What:

- Use the current timestamp for RC entries derived from
  CategoryMembershipChange instances created for imported revisions,
  instead of using the revision's timestamp.

Bug: T377932
Change-Id: Id697087b29e76ac64885f8c7a0e670f201474449
(cherry picked from commit 83d6c6870c1dca7e063bb4ac82c8675b085cc0fb)
2024-10-23 11:43:34 +00:00
..
ImportableOldRevisionImporterTest.php tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
ImportExportTest.php Add namespace to IDBAccessObject and DBAccessObjectUtils 2024-09-27 16:19:10 -04:00
ImportFailureTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
ImportLinkCacheIntegrationTest.php Add namespace to IDBAccessObject and DBAccessObjectUtils 2024-09-27 16:19:10 -04:00
ImportTemporaryUserIntegrationTest.php recentchanges: Use current time for imported revision category changes 2024-10-23 11:43:34 +00:00
ImportTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00