Page MenuHomePhabricator

in the object selector, functions that return a Typed list are not available when a Typed list is expected or required
Closed, ResolvedPublicBUG REPORT

Description

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

  • Go to https://www.wikifunctions.org/wiki/Z889 (for example)
  • Click the three dots after “first list”
  • Select “function call”
  • In the “function” selector (hint: “Object”), type “Z810”

What happens?:
“No results found” is displayed

What should have happened instead?:
The Z810 function should have been displayed as the only matching function

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

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

  • For “Z81”, only “Z811” is displayed. Z812 should also be included, as well as Z810
  • For “Z80”, “Z804” and “Z805” are omitted
  • For “reverse”, only “reverse untyped list” is displayed, not “reverse Typed list” (Z18479), “reverse list preserving list typing/untyping” (Z18759), or the Type-specific list-reverse functions (Z17770, Z17774, Z17778)

It appears that functions that can return only a Typed list are excluded. (The Z8K2/return type of “reverse untyped list” (Z12668) is Z1, for some reason.)

Event Timeline

GrounderUK renamed this task from in the object selector, functions that return a Typed list are not visible in the object selector when attempting to specify a list using a function call to in the object selector, functions that return a Typed list are not visible when attempting to specify a list using a function call.

@Sharvaniharan Can we raise the priority for this please? There is no practicable workaround when composing functions or test cases that process lists (like the contents of a Wikidata lexeme).

GrounderUK renamed this task from in the object selector, functions that return a Typed list are not visible when attempting to specify a list using a function call to in the object selector, functions that return a Typed list are not available when a Typed list is expected or required .Oct 24 2024, 9:39 AM
GrounderUK added a subscriber: gengh.
DVrandecic raised the priority of this task from Medium to High.Nov 5 2024, 2:59 PM

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

[mediawiki/extensions/WikiLambda@master] Update labels table with correct value of returnType when output is generic

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

Change #1087890 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Update labels table with correct value of returnType when output is generic

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

Mentioned in SAL (#wikimedia-operations) [2024-11-14T19:20:16Z] <James_F> Running mwscript-k8s -f -- extensions/WikiLambda/maintenance/updateSecondaryTables.php --wiki=wikifunctionswiki --zType Z8 --report --verbose for T375972, T367005, T373038, T358737