This repository was archived by the owner on Apr 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Relax 1:1 connection constraints (under an option) #135
Labels
Milestone
Comments
Decided to introduce an option to allow dandling 1:1 connections, but don’t introcude an option to violate all-null-or-all-non-null FULL MATCH constraint (no need for now). |
Totktonada
added a commit
that referenced
this issue
Jun 20, 2018
Changes in 1:1 connection behaviour: * The case when all connection parts are null is allowed (gives null child object instead of an error). * The case when no child object were matched is allowed. - FULL MATCH contraint does not verified entirely (further work is needed). - The following bug was fixed: usage of filtering arguments now cannot trigger 'expect one matching object' error if data are consistent. Other changes: * GraphQL auto configuration behaviour was changed in case when a connection parts count is the same with underlying index, the index is unique and some index parts are nullable and some are not. Now it generates 1:1 connection (and lean on runtime checks) instead of giving an error. Part of #135.
Totktonada
added a commit
that referenced
this issue
Jun 20, 2018
This check was implemented improperly: it can be triggered by an user using filters that do not match anything. The check was removed in the previous commit. Now it is implemented correctly. The option 'disable_dangling_check' to disable this check was introduced. Fixes #135.
Totktonada
added a commit
that referenced
this issue
Jun 20, 2018
…nstraint Remove 1:1* connections, relax constraints of 1:1 ones
Totktonada
added a commit
that referenced
this issue
Jun 20, 2018
Success case: {data = ...} Error case: {errors = {message = ..., ...}} compiled_query:execute(...) becomes exception-safe (performs pcall internally), but graphql.new(...):compile() and graphql.new(...).execute(...) still can throw an exception. Enabled 5_2 test in common.test.lua, it fails before fix for #135 ( PR #178). Increased timeout to 10 seconds in pcre.test.lua and nested_args.test.lua (#137). Prerequisite for #71. Prerequisite for #134. Fixes #137.
Totktonada
added a commit
that referenced
this issue
Jun 21, 2018
Success case: {data = ...} Error case: {errors = {message = ..., ...}} compiled_query:execute(...) becomes exception-safe (performs pcall internally), but graphql.new(...):compile() and graphql.new(...).execute(...) still can throw an exception. Enabled 5_2 test in common.test.lua, it fails before fix for #135 ( PR #178). Increased timeout to 10 seconds in pcre.test.lua and nested_args.test.lua (#137). Prerequisite for #71. Prerequisite for #134. Fixes #137.
Totktonada
added a commit
that referenced
this issue
Jun 22, 2018
Success case: {data = ...} Error case: {errors = {message = ..., ...}} compiled_query:execute(...) becomes exception-safe (performs pcall internally), but graphql.new(...):compile() and graphql.new(...).execute(...) still can throw an exception. Enabled 5_2 test in common.test.lua, it fails before fix for #135 ( PR #178). Increased timeout to 10 seconds in pcre.test.lua and nested_args.test.lua (#137). Prerequisite for #71. Prerequisite for #134. Fixes #137.
Totktonada
added a commit
that referenced
this issue
Jun 22, 2018
Success case: {data = ...} Error case: {errors = {message = ..., ...}} compiled_query:execute(...) becomes exception-safe (performs pcall internally), but graphql.new(...):compile() and graphql.new(...).execute(...) still can throw an exception. Enabled 5_2 test in common.test.lua, it fails before fix for #135 ( PR #178). Prerequisite for #71. Prerequisite for #134.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: