Page MenuHomePhabricator

Cannot save a new function with "A function requires an output" message
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
I get a red message "A function requires an output" and it does not save

What should have happened instead?:
It should save. An output has been selected

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Weird:

When I go to the URL given above, it has that error as described.

If I go directly to https://wikifunctions.beta.wmflabs.org/wiki/Special:CreateZObject?zid=Z8&view=function-editor it also has that error.

BUT - and that's a workaround - if I first go to

https://wikifunctions.beta.wmflabs.org/wiki/Special:CreateZObject

and then click on "Create Function" I can save alright.

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

[mediawiki/extensions/WikiLambda@master] Avoid race condition by having initializeZObject return promise.

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

Change 870547 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Avoid race condition by having initializeZObject return promise.

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