Steps to replicate the issue
- Visit https://wikifunctions.beta.wmflabs.org//w/index.php?title=Special:CreateZObject&zid=Z14&Z14K1=Z10866
- Click on the "Code" radio button
- Choose any programming language (this ticket assumes "javascript")
What happens?:
- The first noticeable bug is that the labels for the functions is not loaded (instead we see a zid) on page load
- The function in the code section does not have any of its arguments
What should have happened instead?:
The arguments and labels should have been loaded when we loaded the page.
The functionality works when we manually select a function, then choose code implementation and a programming language. Here's how it should look:
This implies that the issue is related to the zKeys not properly loading from the API.