Page MenuHomePhabricator

Adding a Tester for Sum over two positive integers leads to the second input prompting the user for two values
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • I have a type Positive Integer (that consists of one key, value, of type String)
  • I created a Function "Add" that takes two positive integers left and right and returns positive integer
  • I clicked on "Create a new tester"

What happens?:
See screenshot:

two values on right argument.png (1×2 px, 306 KB)

The right value asks for two keys named value.

What should have happened instead?:

The right value should have just one value, not two (just as left does).

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

As of January 10

Event Timeline

Oh, I just noticed, that only happens when you are in Editing or Creating a Function, go to the Test tab, and then click on "Create a new tester" button.

If I am in the Read or View Function mode and click on the "Create a new tester" link it takes me instead to this page, and looks very different: http://localhost:8080/wiki/Special:CreateZObject?zid=Z20

(Most notably, it is not connected to the Function automatically)

Oh, the same happens when I read the Function Definition page of Sum, there are two values on the second argument. See screenshot.

function call on sum.png (1×2 px, 304 KB)

Jdforrester-WMF renamed this task from Adding a Tester for Sum over two positive integers leads to the second positive integer needing two values to Adding a Tester for Sum over two positive integers leads to the second input prompting the user for two values.Jan 18 2022, 5:26 PM
Jdforrester-WMF added a project: WikiLambda.

Change 760996 had a related patch set uploaded (by AdesojiThisDot; author: AdesojiThisDot):

[mediawiki/extensions/WikiLambda@master] Adding a Tester for Sum over two positive integers leads to the second input prompting the user for two values

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

This issue should have been fixed already by T299269.

Change 760996 abandoned by Simone Cuomo:

[mediawiki/extensions/WikiLambda@master] Adding a Tester for Sum over two positive integers leads to the second input prompting the user for two values

Reason:

This issue was already fixed by another Patch

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