Page MenuHomePhabricator

Fix "Map" Example in Wikilambda Sandbox and Enable it in Test
Closed, ResolvedPublicBUG REPORT

Description

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

What happens?:
Error resolving the argument Z10043K3

What should have happened instead?:
The function should have run successfully

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

Other information (browser name/version, screenshots, etc.):
After fixing this bug, the test should be re-enabled in the extension (WikiLambda/tests/phpunit/integration/API/ApiFunctionCallTest.php) to avoid similar regressions

Event Timeline

This test has been broken since 46b0384b6a06292df975cd181f8fa2d589daf74d (in function-orchestrator).

To be clear: the above comment is not a statement of blame (I knowingly encouraged and approved the breaking change); it is just there to help understand what caused the breakage.

Change 820435 had a related patch set uploaded (by Cory Massaro; author: Cory Massaro):

[mediawiki/extensions/WikiLambda@master] Fix scoping for, and enable in integration tests, the Map function example.

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

Change 820435 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Fix scoping for, and enable in integration tests, the Map function example.

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