Page MenuHomePhabricator

WikiLambda: Have a unified source of ZErrorType IDs
Open, MediumPublic

Description

We have hardcoded record of the built-in ZErrorType Zids in WikiLambda/Registry/ZErrorTypeRegistry as well as in function-schemata/javascript/src/error.js.

We should try to have a single source of truth for better maintenance (probably in function-schemata)

Event Timeline

cmassaro triaged this task as Medium priority.Mar 15 2022, 6:45 PM

Hello @gengh || @Jdforrester-WMF

  • How do these files differ from the purpose of data/errors/error_types.yaml (also in func schemata)?
  • When we consolidate, could we store said errors we need from error.js into a yaml file? So that using them in both JS and PHP is easy?