Page MenuHomePhabricator

Support typed list of types with type converters
Closed, ResolvedPublicBUG REPORT

Description

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

What happens?:
Result comes back empty. Test fails with time out.

What should have happened instead?:
Ideally should work (cannot avoid time outs in some cases, sure).

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
Reported by GrounderUK via Telegram

Details

TitleReferenceAuthorSource BranchDest Branch
Update function-schemata sub-module to HEAD (50415ed)repos/abstract-wiki/wikifunctions/function-orchestrator!189apinesync-function-schematamain
Update function-schemata sub-module to HEAD (50415ed)repos/abstract-wiki/wikifunctions/function-evaluator!225apinesync-function-schematamain
Resolve list types in order to get type converters for list elements.repos/abstract-wiki/wikifunctions/function-orchestrator!188apineapine-list-type-conversionmain
Support type converters for the elements of typed lists.repos/abstract-wiki/wikifunctions/function-evaluator!224apineapine-list-of-type-convertersmain
Add Avro binary format v0.1.1: support type converters of list types.repos/abstract-wiki/wikifunctions/function-schemata!122apineapine-community-defined-listmain
Customize query in GitLab

Event Timeline

DVrandecic renamed this task from Typed list of natural number does not seem to work to Support typed list of types with with converters.Mar 7 2024, 4:03 AM

See also T359500. Untyped lists are converted to Typed list with Type Natural number.

IMG_0885.png (2×960 px, 221 KB)

Jdforrester-WMF renamed this task from Support typed list of types with with converters to Support typed list of types with type converters.Mar 7 2024, 5:47 PM
Jdforrester-WMF moved this task from To triage to Upcoming Epics on the Abstract Wikipedia team board.

Currently, this depends on re-entrancy. I wonder if that is a strict dependency: since typed list are handled in the orchestrator bespoke, could we also just call the converters in a bespoke way from the orchestrator for the individual values?

This doesn't necessarily depend on re-entrancy.

When we resolve the arguments and return type of a function call, before delegating to the evaluator, we can retrieve type converters for all participating types (including the types of members of other types).

Our type key logic is probably good enough to handle issues like recursively-defined types (typed lists are the obvious example here).

This does mean that we'll have to replicate the type key creation logic in every supported programming language. That is still probably better than depending on re-entrancy, which would make things prohibitively slow.

Also affects Gregorian calendar month, of course. Please see https://www.wikifunctions.org/view/en/Z16555

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

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

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

Change #1041657 merged by jenkins-bot:

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

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

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

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2024-05-31-163732 to 2024-06-11-161031

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

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

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2024-06-05-003919 to 2024-06-11-223956

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

Change #1042268 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2024-05-31-163732 to 2024-06-11-161031

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

Change #1042269 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2024-06-05-003919 to 2024-06-11-223956

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