Page MenuHomePhabricator

Zero Config Install of VE + Parsoid for MW 1.39
Closed, ResolvedPublic

Assigned To
Authored By
cscott
Mar 30 2022, 9:24 PM
Referenced Files
None
Tokens
"Love" token, awarded by Seb35."Love" token, awarded by Debber1."Party Time" token, awarded by Bertvandepoel."Party Time" token, awarded by matmarex.

Description

Hopefully 1.38 was the last release with "non-integrated Parsoid" (see T305107: Zero Config Install of VE + Parsoid for MW 1.38 and preceding).

The ServiceWorker infrastructure for Parsoid has already been merged into core for 1.39 (T302118: Move MWParsoid\SiteConfig (and etc) to MediaWiki\Parser\Parsoid\SiteConfig (etc)). Before 1.39 is released, we need to Do Something about the Parsoid REST API code, so Visual Editor in zero-conf mode doesn't have to do a loopback through a network interface.

My plan at the moment is to implement a "virtual VirtualRest" class -- we already use the VirtualRest infrastructure to paper over the differences between calls Parsoid directly or Restbase, etc; a new implementation of that API will invoke Parsoid directly without needing to actually do a recursive network request. This "virtual VirtualRest" should be useful/usable by Flow/Content Translation as well, and will serve as a stopgap transition helper while we pursue full ParserCache integration (including stashes, etc).

Event Timeline

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

[mediawiki/extensions/VisualEditor@master] Zero-configuration VisualEditor for mainline

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

Change 782549 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Zero-configuration VisualEditor for mainline

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

matmarex awarded a token.