Page MenuHomePhabricator

Calling a Function Returns Undefined with Degenerate Implementation
Closed, ResolvedPublicBUG REPORT

Description

Description

Steps to reproduce (step by step instructions, with links, commands and necessary data to reproduce the error)

  1. define a Z8 as a composition, but set Z14K2 to an empty object {}
  2. call that Z8

Observed behavior

  • result will be undefined

Expected behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

  • result should be some kind of Z5

Completion checklist

Details

TitleReferenceAuthorSource BranchDest Branch
Update function-schemata sub-module to HEAD (5f40813)repos/abstract-wiki/wikifunctions/function-evaluator!29jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (5f40813)repos/abstract-wiki/wikifunctions/wikilambda-cli!12jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (4927eba) (BREAKING - changes some test outputs)repos/abstract-wiki/wikifunctions/function-orchestrator!39apinesync-function-schematamain
Test error that results when a composition is not even a ZObject.repos/abstract-wiki/wikifunctions/function-orchestrator!36apineapine-define-the-undefinedmain
Support degenerate quoted objects in the mixed validator, normalization, and canonicalization.repos/abstract-wiki/wikifunctions/function-schemata!22apineapine-norms-canonsmain
Customize query in GitLab

Event Timeline

I can't reproduce this. My suspicion is that it's related to T315649 and is fixed because of the changes to Z885.

Currently, the result contains a quoted empty object in its error, i.e.

{
  Z1K1: 'Z99',
  Z99K1: {}
}

I think this is correct, though.

Ah, there is still a problem here, but it's separate. I will keep this open because we should add a test for the correct behavior, but this can't be fixed until T340770 is.

apine updated https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-orchestrator/-/merge_requests/39

Draft: Update function-schemata sub-module to HEAD (4927eba) (BREAKING - changes some test outputs)

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

Update function-schemata sub-module to HEAD (4927eba) (BREAKING - changes some test outputs)

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

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

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

Change 938017 merged by jenkins-bot:

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

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