Page MenuHomePhabricator

Make parsoid transformation API available internally
Closed, ResolvedPublic

Description

The functionality currently provided by the transform API endpoint should be available for use inside MW core from an service object (or helper object or trait). The relevant functionality presently lives mainly in the ParsoidHandler base class. The transformation logic should be separated from any behavior specific to REST/HTTP handling, and moved out of ParsoidHandler. That way, it can be used directly e.g. by VisualEditor's ApiParsoidTrait.

The two methods to focus on are ParsoidHandler::html2wt and ParsoidHandler::pb2pb.

Related Objects

StatusSubtypeAssignedTask
StalledNone
In ProgressNone
OpenNone
OpenNone
ResolvedJgiannelos
Resolveddaniel
ResolvedClement_Goubert
DeclinedNone
Resolvedhnowlan
In ProgressNone
Resolveddaniel
ResolvedNone
ResolvedNone
OpenMSantos
OpenNone
OpenNone
ResolvedROdonnell-WMF
OpenBUG REPORTNone
ResolvedBUG REPORTdaniel
ResolvedBUG REPORTdaniel
OpenBUG REPORTNone
OpenNone
Resolveddaniel
OpenNone
Resolveddaniel
Resolveddaniel
Resolveddaniel
OpenNone
OpenNone
OpenJgiannelos
ResolvedBPirkle
ResolvedJgiannelos

Event Timeline

daniel triaged this task as High priority.Jun 29 2022, 10:31 AM

Change 810863 had a related patch set uploaded (by D3r1ck01; author: Derick Alangi):

[mediawiki/core@master] Rest: Introduce TransformHandlerTrait to handle transformations

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

Change 810863 abandoned by D3r1ck01:

[mediawiki/core@master] Rest: Introduce TransformHandlerTrait to handle transformations

Reason:

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