wiki.techinc.nl/tests/phpunit/integration/includes
C. Scott Ananian 0de13d7662 Add ParserOutput::{get,set}RenderId() and set render id in ContentRenderer
Set the render ID for each parse stored into cache so that we are able
to identify a specific parse when there are dependencies (for example
in an edit based on that parse).  This is recorded as a property added
to the ParserOutput, not the parent CacheTime interface.  Even though
the render ID is /related/ to the CacheTime interface, CacheTime is
also used directly as a parser cache key, and the UUID should not be
part of the lookup key.

In general we are trying to move the location where these cache
properties are set as early as possible, so we check at each location
to ensure we don't overwrite a previously-set value.  Eventually we
can convert most of these checks into assertions that the cache
properties have already been set (T350538).  The primary location for
setting cache properties is the ContentRenderer.

Moved setting the revision timestamp into ContentRenderer as well, as
it was set along the same code paths.  An extra parameter was added to
ContentRenderer::getParserOutput() to support this.

Added merge code to ParserOutput::mergeInternalMetaDataFrom() which
should ensure that cache time, revision, timestamp, and render id are
all set properly when multiple slots are combined together in MCR.

In order to ensure the render ID is set on all codepaths we needed to
plumb the GlobalIdGenerator service into ContentRenderer, ParserCache,
ParserCacheFactory, and RevisionOutputCache.  Eventually (T350538) it
should only be necessary in the ContentRenderer.

Bug: T350538
Bug: T349868
Followup-To: Ic9b7cc0fcf365e772b7d080d76a065e3fd585f80
Change-Id: I72c5e6f86b7f081ab5ce7a56f5365d2f75067a78
2024-02-07 21:22:06 -05:00
..
block Allow temporary accounts to be blocked with 'hideuser' enabled 2024-01-22 18:19:59 +00:00
cache Namespace EventRelayer and EventRelayerNull 2023-06-11 00:15:46 +02:00
CommentFormatter Merge "Change more uses of getDBLoadBalancerFactory() to getConnectionProvider()" 2024-01-23 17:59:21 +00:00
composer libs/composer: Namespace under Wikimedia\Composer 2024-01-13 20:10:25 +00:00
context Move StaticUserOptionsLookup to the MediaWiki\User\Options namespace 2023-11-29 14:08:40 -05:00
db Check warnings from INSERT during tests 2024-01-12 09:33:05 +11:00
diff
editpage/Constraint Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
export
filerepo Reorg: Migrate WikiMap to WikiMap/ out of includes 2023-02-27 05:19:46 +01:00
Html tests: Move test cases from /includes/ into sub folder 2023-09-13 00:09:05 +02:00
htmlform Merge "Allow setting page restrictions on BotPassword grants" 2023-12-15 06:04:00 +00:00
http shellbox: Use Telemetry class instead of WebRequest::getRequestId() 2023-09-19 14:00:25 +02:00
language Remove language coverter for Kazakh 2023-11-20 10:31:16 -05:00
libs Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
logging Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
page Update tests for PHPUnit 9.6 (part 1) 2024-01-16 23:36:15 +01:00
parser tests: Use namespaced class names in @covers annotations 2024-01-27 01:11:07 +01:00
Permissions Move creation of BlockErrorFormatter into FormatterFactory 2024-01-26 13:03:44 -05:00
poolcounter tests: Use namespaced class names in @covers annotations 2024-01-27 01:11:07 +01:00
RenameUser Add integration test for RenameuserSQL 2023-11-15 09:23:06 +11:00
ResourceLoader ResourceLoader: Move ForeignResourceStructureTest to integration/ 2023-03-29 14:14:55 -07:00
Rest/Handler Add ParserOutput::{get,set}RenderId() and set render id in ContentRenderer 2024-02-07 21:22:06 -05:00
revisionlist Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
search Fix more non-database tests accessing the database 2023-08-06 15:30:41 +00:00
specials Change more uses of getDBLoadBalancerFactory() to getConnectionProvider() 2024-01-23 16:34:45 +01:00
Storage tests: Replace usages of wfGetDB 2024-01-18 00:12:59 +00:00
StubObject Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
user Always allow local IP actors to be created when importing 2024-01-29 19:35:14 +00:00
utils tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
watchlist Follow-up 71ff05267: Stop writing to tablesUsed in tests, now unnecessary 2023-11-21 09:02:48 -05:00
ExtensionJsonTestBase.php tests: Use namespaced MediaWiki\Request\FauxRequest 2023-08-20 01:54:10 +02:00
ExtensionServicesTestBase.php tests: Check that extension service getter methods exist 2023-06-20 10:37:12 +02:00