Page MenuHomePhabricator

Propagate Validator Errors as Z5s
Closed, ResolvedPublic

Description

function-orchestrator code can be found at https://gerrit.wikimedia.org/g/mediawiki/services/function-orchestrator

Look for T296676 under src/.

Currently, when validation in the orchestrator fails, it surfaces a stock error. This error should be the Z5 produced by the validator's error formatter. The errorFormatter can be found under function-schemata/javascript/src/errorFormatter.js.

For more context, consult the AJV documentation on errors.

Ideally, we would surface only the errors whose instancePath is longest, as these are likely to be the "real" errors. This work has been de-scoped from this task and moved to T301494: Filter validation errors to avoid over-loading the user with too many overlapping/duplicative errors instead.

Event Timeline

Change 762984 had a related patch set uploaded (by David Martin; author: David Martin):

[mediawiki/services/function-schemata@master] Create 2 error types for type validation failures

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

Change 762984 merged by jenkins-bot:

[mediawiki/services/function-schemata@master] Create 2 error types for type validation failures

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

Change 764807 had a related patch set uploaded (by Jkieserman; author: Jkieserman):

[mediawiki/services/function-orchestrator@master] Update function-schemata sub-module to HEAD (650770f)

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

Change 764807 merged by jenkins-bot:

[mediawiki/services/function-orchestrator@master] Update function-schemata sub-module to HEAD (650770f)

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

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

[mediawiki/services/function-evaluator@master] Update function-schemata sub-module to HEAD (650770f)

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

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

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (650770f)

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

Change 764812 merged by jenkins-bot:

[mediawiki/services/function-evaluator@master] Update function-schemata sub-module to HEAD (650770f)

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

Change 765296 had a related patch set uploaded (by David Martin; author: David Martin):

[mediawiki/services/function-schemata@master] Add \"propagated error\" key to Z506, Z517, Z518

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

Change 765296 merged by jenkins-bot:

[mediawiki/services/function-schemata@master] Add \"propagated error\" key to Z506, Z517, Z518

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

Change 764813 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (650770f)

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

Change 765674 had a related patch set uploaded (by David Martin; author: David Martin):

[mediawiki/services/function-orchestrator@master] Propagate Validator Errors as Z5s in execute.js

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

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

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (a28d2df)

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

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

[mediawiki/services/function-orchestrator@master] Update function-schemata sub-module to HEAD (a28d2df)

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

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

[mediawiki/services/function-evaluator@master] Update function-schemata sub-module to HEAD (a28d2df)

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

Change 767201 had a related patch set uploaded (by Jkieserman; author: Jkieserman):

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (afc9127)

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

Change 767204 had a related patch set uploaded (by Jkieserman; author: Jkieserman):

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (f615309)

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

Change 766886 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (a28d2df)

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

Change 766888 merged by jenkins-bot:

[mediawiki/services/function-evaluator@master] Update function-schemata sub-module to HEAD (a28d2df)

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

Change 766887 merged by jenkins-bot:

[mediawiki/services/function-orchestrator@master] Update function-schemata sub-module to HEAD (a28d2df)

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

Change 767201 abandoned by Jforrester:

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (afc9127)

Reason:

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

Change 767204 abandoned by Jforrester:

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (f615309)

Reason:

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

Change 767614 had a related patch set uploaded (by David Martin; author: David Martin):

[mediawiki/services/function-orchestrator@master] Change {Scope} to {Frame} in execute.js

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

DMartin-WMF changed the task status from Open to In Progress.Mar 3 2022, 4:25 AM

Change 767614 merged by jenkins-bot:

[mediawiki/services/function-orchestrator@master] Change {Scope} to {Frame} in execute.js

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

Change 765674 merged by jenkins-bot:

[mediawiki/services/function-orchestrator@master] Propagate Validator Errors as Z5s in execute.js

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