Page MenuHomePhabricator

After an appropriate time, drop `_complex_` from ParserOutput serialization
Open, Needs TriagePublic

Description

Since https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1038445 the json serialization format has not required the _complex_ property to be present, as it is redundant with the existing _type_ property.

After an appropriate interval (see https://www.mediawiki.org/wiki/Manual:Parser_cache/Serialization_compatibility#Cleaning_up_old_test_cases) we can remove the backward compatibility code in core's JsonCodec.

Event Timeline

The https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1038445 patch was included in 1.43. So backCompat is only needed for roll-back compatibility when 1.39 reads JSON files emitted by MW >= 1.43. MW 1.39 is expected to reach end-of-life in November 2025. MW 1.45 isn't going to be released until December 2025, so it should be safe to turn off the 'backCompat' flag in MW 1.45.

Change #1180195 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] Split forward and back compat for JsonCodec

https://gerrit.wikimedia.org/r/1180195

Change #1180195 merged by jenkins-bot:

[mediawiki/core@master] Split forward and back compat for JsonCodec

https://gerrit.wikimedia.org/r/1180195

Change #1239125 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] JsonCodec: stop writing backward-compatibility properties for MW 1.39

https://gerrit.wikimedia.org/r/1239125

Change #1239240 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] JsonCodec/ParserCache: Forward-compatibility test cases

https://gerrit.wikimedia.org/r/1239240

Change #1239240 merged by jenkins-bot:

[mediawiki/core@master] JsonCodec/ParserCache: Forward-compatibility test cases

https://gerrit.wikimedia.org/r/1239240

Change #1239944 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@REL1_45] JsonCodec/ParserCache: Forward-compatibility test cases

https://gerrit.wikimedia.org/r/1239944

Change #1239946 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@REL1_44] JsonCodec/ParserCache: Forward-compatibility test cases

https://gerrit.wikimedia.org/r/1239946

Change #1239948 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@REL1_43] JsonCodec/ParserCache: Forward-compatibility test cases

https://gerrit.wikimedia.org/r/1239948

Change #1239944 merged by jenkins-bot:

[mediawiki/core@REL1_45] JsonCodec/ParserCache: Forward-compatibility test cases

https://gerrit.wikimedia.org/r/1239944

Change #1239946 merged by jenkins-bot:

[mediawiki/core@REL1_44] JsonCodec/ParserCache: Forward-compatibility test cases

https://gerrit.wikimedia.org/r/1239946

Change #1239948 merged by jenkins-bot:

[mediawiki/core@REL1_43] JsonCodec/ParserCache: Forward-compatibility test cases

https://gerrit.wikimedia.org/r/1239948

Change #1239125 merged by jenkins-bot:

[mediawiki/core@master] JsonCodec: stop writing backward-compatibility properties for MW 1.39

https://gerrit.wikimedia.org/r/1239125