wiki.techinc.nl/tests/phpunit/data
C. Scott Ananian df9756b9a1 Make Content JsonCodecable
By default this uses the existing ContentHandler::serializeContent() and
::unserializeContent() methods.  But in cases where existing PHP
serialization preserved fields that ::serializeContent() did not,
provide an additional ContentHandler::serializeContentToJsonArray()
and ContentHandler::deserializeContentFromJsonArray() methods which
can be used.  Use these in WikitextContentHandler to preserve the
PST flags.

Added test cases and a ContentSerializationTestTrait to make it
easy to ensure forward- and backward-compatibility in accord with

https://www.mediawiki.org/wiki/Manual:Parser_cache/Serialization_compatibility

The new JsonCodecable codec will be used to improve PageEditStashContent
serialization, which no longer has to PHP-serialize its Content object.
New test case added demonstrating compatibility.

Bug: T264389
Bug: T161647
Change-Id: I544625136088164561b9169a63aed7450cce82f5
(cherry picked from commit 21576d6c1893079777a1a51d0f81c4941c58e376)
2025-09-05 16:12:09 -04:00
..
autoloader
categoriesrdf
composer
Content Make Content JsonCodecable 2025-09-05 16:12:09 -04:00
css
db Merge "Drop 1.35 db updates" 2024-05-05 06:50:24 +00:00
dumps
exception
filecontentshasher
filerepo
FindDeprecated/includes Test findDeprecated.php 2024-10-15 17:08:23 +00:00
GhostFieldAccess
gitinfo
import Use import actor store where needed in RC categorisation 2024-10-02 00:45:22 +02:00
languageConverter
less Codex: Allow a local development version to be used 2024-08-22 17:20:24 -07:00
localisationcache
LockFileChecker Test checkComposerLockUpToDate.php 2024-08-29 20:18:39 +00:00
MaintenanceRunner Add namespace to maintenance/includes classes 2024-10-09 11:02:09 -04:00
media WebPHandler: Read all of the VP8L canvas height 2025-08-26 12:21:30 +00:00
messages
MessageValue Make MessageValue implement JsonDeserializable 2024-06-12 15:47:37 -04:00
MSCompoundFileReader
OutputTransform/i18n Localization output transform 2024-05-06 15:24:38 -04:00
PageEditStashContents Make Content JsonCodecable 2025-09-05 16:12:09 -04:00
parser
ParserCache ParserOutput: Prepare to allow JsonCodec serialization of TOCData 2025-07-26 01:18:35 +00:00
preprocess
registration
resourceloader Codex: Allow a local development version to be used 2024-08-22 17:20:24 -07:00
resourceloader-b
rlfilepath
templates
upload
zip
.eslintrc.json