[ParserOutput] Remove unused TOCHTML from ParserCache serialization
commit47bdd8b1c8c8d7b582a031fbe06c09564e490606
authorC. Scott Ananian <cscott@cscott.net>
Tue, 23 Apr 2024 21:09:47 +0000 (23 17:09 -0400)
committerC. Scott Ananian <cananian@wikimedia.org>
Fri, 17 May 2024 21:46:00 +0000 (17 21:46 +0000)
treeced5577e84009c43763e95663bef1a3f7246d418
parent5ff1629b265fd549b1a5420e357bbec7217512ed
[ParserOutput] Remove unused TOCHTML from ParserCache serialization

This reverts commit b4cf4aa6bd3a4b874ab665cebd8261ab88bbee8d,
which is no longer needed for ParserCache compatibility across
trains.  REL1_42 contains b4cf4aa6bd3a4b874ab665cebd8261ab88bbee8d,
so MW 1.43 will not need this.

This also adds new serialization test cases for 1.43 with this field
removed; see
https://www.mediawiki.org/wiki/Manual:Parser_cache/Serialization_compatibility

Change-Id: I716e2efe7a491002e6e6b2300016165fffe3c0d6
35 files changed:
includes/parser/ParserOutput.php
tests/phpunit/data/ParserCache/1.43_wmf.3-CacheTime-cacheExpiry.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-CacheTime-cacheExpiry.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-CacheTime-cacheRevisionId.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-CacheTime-cacheRevisionId.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-CacheTime-cacheTime.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-CacheTime-cacheTime.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-CacheTime-empty.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-CacheTime-empty.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-CacheTime-usedOptions.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-CacheTime-usedOptions.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-binaryPageProperties.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-binaryPageProperties.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-cacheTime.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-cacheTime.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-empty.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-empty.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-extensionData.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-extensionData.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-pageProperties.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-pageProperties.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-text.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-text.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-usedOptions.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-usedOptions.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-withFalsyProperties.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-withFalsyProperties.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-withMetadata.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-withMetadata.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-withMetadataPost1_31.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-withMetadataPost1_31.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-withMetadataPost1_34.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-withMetadataPost1_34.serialized [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-withSections.json [new file with mode: 0644]
tests/phpunit/data/ParserCache/1.43_wmf.3-ParserOutput-withSections.serialized [new file with mode: 0644]