Page MenuHomePhabricator

Cannot select input and output types for a function if you start on the object creation screen and then start creating a function
Closed, ResolvedPublicBUG REPORT

Description

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

What happens?:

  • If I click on "+ Add an input" nothing happens
  • If I type "str" into the Output / Type field, I see String and other options, but I cannot select them

What should have happened instead?:
I should be able to add inputs.
I should be able to select an output type.

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

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

Event Timeline

The direct link to creating a function is not with view=function-editor parameter but with zid=Z8. The correct url to directly access the function editor is https://www.wikifunctions.org/wiki/Special:CreateObject?zid=Z8

We should fix the initialization of blank Function object after redirect from DefaultView

Jdforrester-WMF renamed this task from Cannot select input and output types for a function to Cannot select input and output types for a function if you start on the object creation screen and then start creating a function.Jul 26 2023, 10:11 PM

Change 942026 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Initialize blank function when redirecting to FunctionEditor from DefaultView

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

Change 942026 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Initialize blank function when redirecting to FunctionEditor from DefaultView

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