Page MenuHomePhabricator

Orchestrator throws error when Z12 contains more than one language
Closed, ResolvedPublicBUG REPORT

Description

Description

Steps to reproduce:

  1. Send a function to the orchestrator that contains within one of its Z17s a Z12 that has multiple Z11s, e.g.:
"Z17K3": {
    "Z1K1": "Z12",
    "Z12K1": [
        "Z11",
        {
            "Z1K1": "Z11",
            "Z11K1": "Z1002",
            "Z11K2": "input label in english"
        },
        {
            "Z1K1": "Z11",
            "Z11K1": "Z1004",
            "Z11K2": "input label in french"
        }
    ]
}
  1. Ensure doValidate is set to true

Observed behavior:

  • Orchestrator returns error "Duplicate Z11K1/language element in Z12/Multilingual text: 'undefined'"

Expected behavior (Acceptance criteria):

  • No error

Completion checklist

Event Timeline

EWright created this task.
EWright updated the task description. (Show Details)
EWright renamed this task from Testers on Functions that have argument labels in more than one language fail to Orchestrator throws error when Z12 contains more than one language.Dec 9 2022, 4:48 PM
EWright updated the task description. (Show Details)
EWright updated the task description. (Show Details)
EWright updated the task description. (Show Details)

Change 880475 had a related patch set uploaded (by EWright; author: EWright):

[mediawiki/services/function-orchestrator@master] [WIP] Fix built-in for multilingual text validator.

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

Change 880483 had a related patch set uploaded (by EWright; author: EWright):

[mediawiki/services/function-orchestrator@master] [WIP] Add tests for multilingual text validator.

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

Change 880475 merged by jenkins-bot:

[mediawiki/services/function-orchestrator@master] Fix built-in for multilingual text validator.

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

Change 880483 merged by jenkins-bot:

[mediawiki/services/function-orchestrator@master] Add tests for multilingual text validator.

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