These methods need to move to new corresponding methods in ContentHandler. [[ https://gerrit.wikimedia.org/r/c/mediawiki/core/+/705780 | Here's a patch ]] that does the first part of the work for Content::preSaveTransform.
The signature of the ContentHandler method should be:
- ContentHandler::getParserOutput( Content, PageReference, ?int, ParserOptions, bool ) // TODO: discuss if generateHtml should be a new parser option
- ContentHandler::fillParserOutput( Content, PageReference, ?int, ParserOptions, bool, ParserOutput ).
- Move implementation of TextContent::getHtml to TextContentHandler::fillParserOutput ( The same with override classes ).
The process:
[] Do the same as in the referenced patch for all the methods.
[] In all extensions where Content overriding classes override the method getParserOutput - override the ContentHandler::fillParserOutput instead
[] Wikibase (deployed) -> [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/725324 | Patch ]]
[] BlueSpiceSocialProfile -> [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/BlueSpiceSocialProfile/+/726636 | Patch ]]
[] BlueSpiceSocialTopics -> [[ https://phabricator.wikimedia.org/T292988 | Ticket ]]
[] EventLogging (deployed) -> [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/EventLogging/+/719995 | Patch ]]
[] examples -> [[ https://phabricator.wikimedia.org/T292987 | Ticket ]]
[] Flow (deployed) -> [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Flow/+/720026 | Patch ]]
[] ProofreadPage (deployed) -> [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ProofreadPage/+/720291 | Patch ]]
[] TemplateStyles (deployed) -> [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/TemplateStyles/+/726874 | Patch ]]
[] UploadWizard (deployed) -> [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/UploadWizard/+/726881 | Patch ]]
[] In all extensions where AbstractContent overriding classes override the method fillParserOutput - override the ContentHandler method instead
[] CollaborationKit -> [[ https://phabricator.wikimedia.org/T292989 | Ticket ]]
[] ProofreadPage (deployed) -> [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ProofreadPage/+/720291 | Patch ]]
[] THICC -> [[ https://phabricator.wikimedia.org/T292990 | Ticket ]]
[] BlueSpiceBookshelf -> [[ https://phabricator.wikimedia.org/T292993 | Ticket ]]
[] BlueSpiceFoundation -> [[ https://phabricator.wikimedia.org/T292994 | Ticket ]]
[] BlueSpiceSocial
[] BlueSpiceSocialProfile -> [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/BlueSpiceSocialProfile/+/726636 | Patch ]]
[] BlueSpiceSocialTopics -> [[ https://phabricator.wikimedia.org/T292988 | Ticket ]]
[] EntitySchema (deployed) -> [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/EntitySchema/+/726925 | Patch ]]
[] FileAnnotations
[] Gadgets (deployed) -> [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Gadgets/+/727230 | Patch ]]
[] JsonConfig (deployed) -> [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/JsonConfig/+/727252 | Patch ]]
[] MassMessage (deployed) -> [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MassMessage/+/727332 | Patch ]]
[] MediaUploader
[] Newsletter (deployed) -> [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Newsletter/+/728319 | Patch ]]
[] NotebookViewer
[] Scribunto (deployed) -> [[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Scribunto/+/728329 | Patch ]]
[] StructuredNavigation
[] TEI
[] WikiLambda
[] Wikistories
[] Replace all callers. Use ContentHandlerFactory to obtain a ContentHandler, not the Content::getContentHandler method
[] Once all callers and overrides in extensions is done, do some hard deprecations.