Page MenuHomePhabricator

Make HtmlOutputRendererHelper use ParserOutputAccess
Closed, ResolvedPublic

Description

HtmlOutputRendererHelper use ParserOutputAccess, rather than the temporary stand-in ParsoidOutputAccess. This will enable:

  • support for all content models, not just the ones supported by Parsoid
  • support for multi-slot ouotput
  • stampede protection

Event Timeline

daniel lowered the priority of this task from High to Medium.Oct 18 2022, 2:45 PM
daniel renamed this task from Make ParsoidHTMLHelper use ParserOutputAccess to Make HtmlOutputRendererHelper use ParserOutputAccess.Oct 20 2022, 5:30 PM
daniel updated the task description. (Show Details)

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

[mediawiki/core@master] Ensure ParsoidOutputAccess is @deprecated before 1.40

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

Change 895366 abandoned by C. Scott Ananian:

[mediawiki/core@master] Ensure ParsoidOutputAccess is @deprecated before 1.40

Reason:

It's @unstable already, that's good enough I guess.

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

@cscott any idea when this task could get picked up?

ssastry claimed this task.

Ugh ... looks like I had made this a subtask of the other one and just forgot all about this in my patches. Sorry about all the noise. I'll just add the appropriate project tags and close them all together!

The first step of this process is done. ParsoidOutputAccess is a thin wrapper over ParserOutputAccess and unblocks the parent tasks. I am going to remove this as a subtask and also remove the read views tag since the rest of the work is primarily tech debt removal.

Moving to later but we still have the open question about how/if to proceed with the deprecation of ParsoidOutputAccess.

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

[mediawiki/core@master] [HtmlOutputRendererHelper] Remove use of ParsoidOutputAccess::parseUncacheable

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

Change #1032576 merged by jenkins-bot:

[mediawiki/core@master] [HtmlOutputRendererHelper] Remove use of ParsoidOutputAccess::parseUncacheable

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

I'm removing the RESTBase Sunsetting tag as this seems to not be work required for its completion. Please re-add it in case I'm wrong.