Page MenuHomePhabricator

built-ins: Make a function to extract the Wikidata reference from a lightweight enum instance
Closed, ResolvedPublic

Description

Description

Each (a) instance of a lightweight enum type has (b) an instance of a Wikidata reference type, in its K1 property. As a convenience, it would be worthwhile to have a function that takes (a) and returns (b). This would make some compositions a bit simpler, more readable, and quicker to make.

  • Declare the function and its implementation in function-schemata
  • Write the orchestrator code for the implementation

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
Add orchestrator code for Z6995/Get Wikidata reference from enum instancerepos/abstract-wiki/wikifunctions/function-orchestrator!397dmartinT397490main
Update function-schemata sub-module to HEAD (da8d2f6)repos/abstract-wiki/wikifunctions/function-evaluator!354jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (da8d2f6)repos/abstract-wiki/wikifunctions/wikilambda-cli!78jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (da8d2f6)repos/abstract-wiki/wikifunctions/function-orchestrator!394jforrestersync-function-schematamain
definitions: Add function to get Wikidata ref from enum instancerepos/abstract-wiki/wikifunctions/function-schemata!243dmartinT397490main
Customize query in GitLab

Event Timeline

DMartin-WMF renamed this task from Make an built-in function to extract the Wikidata reference from a lightweight enum instance to Make a built-in function to extract the Wikidata reference from a lightweight enum instance.Jun 20 2025, 1:24 AM
DMartin-WMF updated the task description. (Show Details)
DMartin-WMF renamed this task from Make a built-in function to extract the Wikidata reference from a lightweight enum instance to built-ins: Make a function to extract the Wikidata reference from a lightweight enum instance.Jun 20 2025, 1:31 AM

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

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

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

Change #1162650 merged by jenkins-bot:

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

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

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

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-06-18-130945 to 2025-06-24-204920

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

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

[operations/deployment-charts@master] wikifunctions: Update evaluators from 2025-06-17-205547 to 2025-06-23-151702

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

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

[operations/deployment-charts@master] wikifunctions: Update evaluators from 2025-06-17-205547 to 2025-06-23-151702

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

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

[operations/deployment-charts@master] wikifunctions: Update orchestrator from 2025-06-18-130945 to 2025-06-24-204920

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

Change #1163786 abandoned by Jforrester:

[operations/deployment-charts@master] wikifunctions: Update evaluators from 2025-06-17-205547 to 2025-06-23-151702

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

Change #1163787 abandoned by Jforrester:

[operations/deployment-charts@master] wikifunctions: Update orchestrator from 2025-06-18-130945 to 2025-06-24-204920

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

Change #1163784 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Update evaluators from 2025-06-17-205547 to 2025-06-23-151702

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

Change #1163775 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-06-18-130945 to 2025-06-24-204920

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

Change #1165890 had a related patch set uploaded (by Jforrester; author: David Martin):

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-06-24-204920 to 2025-07-02-123323

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

Change #1165890 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-06-24-204920 to 2025-07-02-123323

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