Page MenuHomePhabricator

built-ins: Make a function to report the values of a lightweight enum type
Closed, ResolvedPublic

Description

Description

A lightweight enum type lists its possible values in its persisted definition. It would be useful for functions to be able to iterate over the possible values. This new built-in function would enable that. It would need to retrieved the persisted definition and return the list of values from the definition's K2 key.


Remove all the non-applicable tags from the "Tags" field, leave only the tags of the projects/repositories related to this task


Completion checklist

Details

Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Update function-schemata sub-module to HEAD (c2a2054)repos/abstract-wiki/wikifunctions/function-evaluator!408jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (c2a2054)repos/abstract-wiki/wikifunctions/wikilambda-cli!88jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (c2a2054)repos/abstract-wiki/wikifunctions/function-orchestrator!450daphnesmitsync-function-schematamain
Add built-in implementation of Z6996/Values from Wikidata enumrepos/abstract-wiki/wikifunctions/function-orchestrator!447daphnesmitT397494-wikidata-enum-values-cleanmain
definitions: Add Z6896/Get values from Wikidata enum and Z6996/implementation of Z6896repos/abstract-wiki/wikifunctions/function-schemata!270daphnesmitT397494main
Customize query in GitLab

Event Timeline

DSmit-WMF changed the task status from Open to In Progress.Sep 11 2025, 5:01 PM
DSmit-WMF claimed this task.

daphnesmit opened https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-orchestrator/-/merge_requests/447

Draft: Add orchestrator code for built-in implementation of Z6996/Values from Wikidata enum

dmartin merged https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-schemata/-/merge_requests/270

definitions: Add Z6896/Get values from Wikidata enum and Z6996/implementation of Z6896

Change #1189127 had a related patch set uploaded (by Daphne Smit; author: Daphne Smit):

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (c2a2054)

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

Change #1189127 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (c2a2054)

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

Change #1191170 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2025-09-16-190551 to 2025-09-24-083919

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

Change #1191171 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-09-16-134119 to 2025-09-24-180530

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

Change #1191170 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2025-09-16-190551 to 2025-09-24-083919

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

Change #1191171 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-09-16-134119 to 2025-09-24-180530

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

This is now live; https://www.wikifunctions.org/view/en/Z6896 with Z27951 displays all > 100 Wikidata items as as list from Hydrogen down to Unoctquadium.