Page MenuHomePhabricator

Wikifunction parser tag: Use parsers on inputs, rather than check for Z6 inputs
Closed, ResolvedPublic

Description

Code base context.

Acceptance criteria:

  • When evaluating a call from wikitext, don't error if the inputs aren't Z6s (remove existing code)
  • Attempt to run the parser of the target type with the given input, and if successful pass on.
    • Question: What language do we use as the context language for the parser? The content language of the wiki?
  • If parsing fails (or there is no parser), show a MediaWiki-style error and don't try to evaluate.
  • Add some parser tests demonstrating happy path (and maybe failure?).

Related Objects

StatusSubtypeAssignedTask
OpenNone
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
DeclinedNone
Resolved Sharvaniharan
ResolvedAAlhazwani-WMF
ResolvedAAlhazwani-WMF
Resolvedgengh
Resolvedgengh
Resolved Marostegui

Event Timeline

Change #1071260 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] [WIP] Re-write function call system to split responsibilities

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

DSantamaria changed the task status from Open to In Progress.Jan 31 2025, 11:54 AM

Change #1071260 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Re-write function call system to split responsibilities

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

We're not deploying this code (it's behind a feature flag), so moving straight to sign-off.