Page MenuHomePhabricator

REST: endpoints that return rendered page content should support all content models
Closed, ResolvedPublic

Description

We have several core endpoitns that return HTML, such as v1/page/{title}/html. These endpoitns should return HTML for any page, regardless of content model, just like we would for a page view coming in through index.php. Currently, these endpoints only function for content models supported by Parsoid (primarily wikitext).

NOTE: API endpoints should return Parsoid output for wikitext, rather than using the old parser.

Imaplementation note: These endpoints make use of the HtmlOutputRendererHelper class, which in turn makes use of ParsoidOutputAccess. One way to make HtmlOutputRendererHelper work with all kinds of content would be to make it use ParserOutputAccess instead (T317018).

Related Objects

StatusSubtypeAssignedTask
Resolveddaniel
Resolvedcscott
Resolvedcscott
OpenNone
ResolvedDAlangi_WMF
ResolvedDAlangi_WMF
Resolveddaniel
Resolveddaniel
Resolveddaniel
ResolvedNone
Resolvedovasileva
Declined nray
ResolvedDAlangi_WMF
Resolved ssastry
Resolveddaniel
Resolveddaniel
ResolvedClement_Goubert
Resolveddaniel
ResolvedKrinkle
Resolved ssastry
Resolved Pchelolo
Resolved Pchelolo
Resolveddaniel
Resolveddaniel
OpenDAlangi_WMF

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 1009205 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[mediawiki/core@master] REST: HTML endpoints should support all content models

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

Change 1008538 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[mediawiki/core@master] HtmlOutputRendererHelper: fall back to page language

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

daniel triaged this task as Medium priority.
daniel added a project: MW-Interfaces-Team.
daniel moved this task from Incoming (Needs Triage) to In Progress on the MW-Interfaces-Team board.

Change 1009205 merged by jenkins-bot:

[mediawiki/core@master] REST: HTML endpoints should support all content models

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

Change 1008538 merged by jenkins-bot:

[mediawiki/core@master] HtmlOutputRendererHelper: fall back to page language

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