Page MenuHomePhabricator

WikiLambda: Contemplate creating ZFunction built-in class
Closed, ResolvedPublic

Description

Currently we have ZFunctionCall, which is useful to represent types that have function calls instead of references (for example, lists). However, a ZFunctionCall could contain not only the reference of the persisted Function that is being called, but the literal Function. In this case it would be helpful to have a ZFunction class with convenience getters.

This would also ease other parts of the code, such as retrieving the labels of function arguments for converting a ZObject to human-readable format (ZObjectUtils::getLabelOfFunctionArgument)

Event Timeline

gengh changed the task status from Open to In Progress.Feb 21 2022, 11:20 AM

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

[mediawiki/services/function-schemata@master] Generate dependencies.json file

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

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

[mediawiki/extensions/WikiLambda@master] [WIP] Add ZFunction builtin class

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

Change 767501 merged by jenkins-bot:

[mediawiki/services/function-schemata@master] Generate dependencies.json file

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

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

[mediawiki/services/function-evaluator@master] Update function-schemata sub-module to HEAD (dcd6ed8)

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

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

[mediawiki/services/function-orchestrator@master] Update function-schemata sub-module to HEAD (dcd6ed8)

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

Change 767502 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Add ZFunction built-in class

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

Change 768094 merged by jenkins-bot:

[mediawiki/services/function-orchestrator@master] Update function-schemata sub-module to HEAD (dcd6ed8)

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

Change 768093 merged by jenkins-bot:

[mediawiki/services/function-evaluator@master] Update function-schemata sub-module to HEAD (dcd6ed8)

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