Page MenuHomePhabricator

Demonstrate the creation of a lightweight enum type and its use with a function
Closed, ResolvedPublic

Description

Description

Create a persistent Z7 call that creates a new lightweight enum type, selecting between different Wikidata Item entities for gender or a similar compelling use-case, and wire up one or more functions using it as an input. Bring it to the attention of the community and provide an explanation of how it works in a public place, such as the weekly update.

Desired behavior/Acceptance criteria

  • ...

Completion checklist

Event Timeline

DMartin-WMF renamed this task from Demonstration the creation of a lightweight enum type and its use with a function to Demonstrate the creation of a lightweight enum type and its use with a function.Apr 7 2025, 4:12 AM
DSantamaria triaged this task as Medium priority.Apr 9 2025, 4:51 PM
DMartin-WMF changed the task status from Open to In Progress.Jun 17 2025, 1:19 AM
DMartin-WMF claimed this task.

Could someone point me towards the "public place, such as the weekly update" where this is demonstrated?

Hello @aliu – Thanks for asking. In terms of documentation, what's been done is a new section in the Function model document. Given that that's rather formal, though, I'm planning to also add "How to" content elsewhere, and that content will be included in an upcoming newsletter. In terms of examples, so far these 5 lightweight enum types have been created:
Z25340
Z25501
Z25502
Z6062
Z6063.

Z25501 is currently used as an input to Z25341 and to Z25488.

Maybe also worth mentioning that the motivation for lightweight enum types was initially introduced in this newsletter.