Page MenuHomePhabricator

getZTesterMetadata: handle appropriately when state.errorState is true
Closed, ResolvedPublic

Description

Currently zTesterResults.js function getZTesterMetadata does not check for state.errorState = true. Should do so.

At a minimum, we should return an empty ZMap. To facilitate this, consider copying makeEmptyZMap from function-schemata/utils.js into mixins/schemata.js

Event Timeline

Jdforrester-WMF lowered the priority of this task from High to Low.Jan 11 2024, 9:08 PM
Jdforrester-WMF subscribed.

On review, this indeed is still a potential issue, sadly. Moving to Ready.

Change #1050612 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] [WIP] Show error message when function call returns a HTTP error instead of a Z22

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

Change #1050612 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Show error message when function call returns a HTTP error instead of a Z22

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