In a future patch (Ia690f10ccbf4f60f9febca98915155c2df58f0d4) we will use native JsonCodec serialization of the TOCData object. But first we will add forward-compatibility code to deserialize TOCData, so that if we need to rollback the future release we won't break the parser cache. New serialization test cases added, as per https://www.mediawiki.org/wiki/Manual:Parser_cache/Serialization_compatibility Bug: T327439 Change-Id: I4652b2709afd33ff5e469e36960391e993bc7bae (cherry picked from commit bf61f6bc0eaf5013167e4b80860b0a610559c661)
1 line
No EOL
1.2 KiB
JSON
1 line
No EOL
1.2 KiB
JSON
{"Text":"","LanguageLinks":[],"Categories":[],"Indicators":[],"TitleText":"","Links":[],"LinksSpecial":[],"Templates":[],"TemplateIds":[],"Images":[],"FileSearchOptions":[],"ExternalLinks":[],"InterwikiLinks":[],"ExistenceLinks":[],"NewSection":false,"HideNewSection":false,"NoGallery":false,"HeadItems":[],"Modules":[],"ModuleStyles":[],"JsConfigVars":[],"Warnings":[],"WarningMsgs":[],"TOCData":null,"Properties":[],"Timestamp":null,"EnableOOUI":false,"IndexPolicy":"","ExtensionData":{"map":{"a":{"super_class_field":"super","sub_class_field":"sub","_type_":"MediaWiki\\Tests\\Json\\JsonDeserializableSubClass","_complex_":true},"b":{"r":2,"d":"2","_type_":"stdClass","_complex_":true},"_complex_":true},"_complex_":true},"LimitReportData":[],"LimitReportJSData":[],"CacheMessage":"","TimeProfile":[],"ParseStartTime":[],"PreventClickjacking":false,"ExtraScriptSrcs":[],"ExtraDefaultSrcs":[],"ExtraStyleSrcs":[],"Flags":[],"SpeculativeRevId":null,"SpeculativePageIdUsed":null,"RevisionTimestampUsed":null,"RevisionUsedSha1Base36":null,"WrapperDivClasses":[],"ParseUsedOptions":[],"CacheExpiry":null,"CacheTime":"","CacheRevisionId":null,"_type_":"MediaWiki\\Parser\\ParserOutput","_complex_":true} |