Page MenuHomePhabricator

Get rid of native template expansion support being used for parser tests
Open, MediumPublic

Description

From: https://gerrit.wikimedia.org/r/#/c/117211/2/lib/ext.core.Sanitizer.js

"We won't ever do anything fancy with the token-based template expansion. The only remaining use case is parserTests. At some point we should probably remove it and replace it with a mock string-based preprocessor."

This will simplify the codebase.

We can use the mockAPI to return the expected preprocessor response for the various expansions.


Version: unspecified
Severity: normal

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:53 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz62424.
Arlolra set Security to None.
Arlolra triaged this task as Medium priority.Nov 26 2014, 12:03 AM
Arlolra subscribed.

The mock preprocessor should be implemented in the mock MW API server we already have, so could just deal with one way of expanding in TemplateHandler.

ssastry renamed this task from Implement string preprocessing for parser tests and get rid of native template expansion support to Get rid of native template expansion support being used for parser tests.May 3 2017, 3:36 PM
ssastry updated the task description. (Show Details)

Change 354151 had a related patch set uploaded (by Arlolra; owner: Arlolra):
[mediawiki/services/parsoid@master] [WIP] Get rid of native template expansion

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

Change 354151 abandoned by Arlolra:
[WIP] Get rid of native template expansion

Reason:
Will pick this up later ...

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