Description
Steps to reproduce (step by step instructions, with links, commands and necessary data to reproduce the error)
- Go to the API sandbox, and call wikilambda_function_call with the following zobject:
{ "Z1K1": "Z7", "Z7K1": "Z801", "Z801K1": [ "Z6", "abc", "def" ] }
Observed behavior
- Z22K1 in the response looks like this:
"Z22K1": [ { "Z1K1": "Z4", "Z4K1": "Z6", "Z4K2": [ "Z3", { "Z1K1": "Z3", "Z3K1": "Z6", "Z3K2": "Z6K1", "Z3K3": { "Z1K1": "Z12", "Z12K1": [ "Z11", { "Z1K1": "Z11", "Z11K1": "Z1002", "Z11K2": "value" } ] } } ], "Z4K3": "Z106" }, "abc", "def" ]
- Note that the first element of the list is not simply "Z6", but a fully expanded definition of Z6.
- This causes problems when Echo is called in wikilambda_perform_test: unlike wikilambda_function_call, this path validates the response received from the Orchestrator, and throws an exception saying "Key value not wellformed". If the Orchestrator's response is altered to have "Z6" as the first element, no exception is thrown.
Expected behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- "Z6" as first element.
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist