graphql-engine/server/tests-py/queries/graphql_query/functions
Philip Lykke Carlsen c4536e801c Correctly translate permissions on functions to SQL, and simplify Bool Exp IR
Prior to this change, the SQL expression that resulted from translating permissions on functions would refer to the table of the function's return type, rather than the set of rows selected from the function being called.

Now the SQL that results from translating permissions correctly refer to the selected rows.

This PR also contains the suggested additions of https://github.com/hasura/graphql-engine-mono/pull/2563#discussion_r726116863, which simplifies the Boolean Expression IR, but in turn makes the Schema Dependency Discovery algorithm work a bit harder.

We are changing the definition of `data OpExpG`, but the format accepted by its JSON parser remains unchanged. While there does exist a generically derived `instance ToJSON OpExpG` this is only used in the (unpublished) `/v1/metadata/dump_internal_state` API.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2609
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: bb9a0b4addbc239499dd2268909220196984df72
2021-10-18 09:17:42 +00:00
..
permissions Correctly translate permissions on functions to SQL, and simplify Bool Exp IR 2021-10-18 09:17:42 +00:00
alter_function_error.yaml don't allow altering tracked SQL functions type to VOLATILE (fix #1546) (#1547) 2019-02-05 11:27:03 +05:30
overloading_function_error.yaml do not allow overloading already tracked functions (#1563) 2019-02-14 09:35:18 +05:30
query_get_session_var.yaml functions can access session info via input arg (close #2322) (#3143) 2019-11-20 12:17:06 +05:30
query_get_test_session_id.yaml server: support tracking of custom functions which return single row 2021-02-03 14:07:30 +00:00
query_get_test_uuid.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
query_get_users_arguments_error.yaml use named notation for function arguments if any argument is not specified (fix #2730) (#2777) 2019-08-28 14:27:15 -05:00
query_get_users_default_arguments_error.yaml use named notation for function arguments if any argument is not specified (fix #2730) (#2777) 2019-08-28 14:27:15 -05:00
query_get_users.yaml use named notation for function arguments if any argument is not specified (fix #2730) (#2777) 2019-08-28 14:27:15 -05:00
query_my_add.yaml support null and default values for function arguments (close #2176, close #2250) (#2282) 2019-06-04 18:13:28 +05:30
query_search_author_mview.yaml server: fix issue with tracking custom functions that return SETOF materialized view (close #5294) (#5945) 2020-10-22 13:26:42 +00:00
query_search_posts_aggregate.yaml introduce v1/graphql (fix #1368) (#2064) 2019-05-10 11:35:10 +05:30
query_search_posts.yaml Support tracking SQL functions as mutations. Closes #1514 (#34) 2020-11-18 18:05:59 +00:00
setup.yaml server: support adding a tracked function as a computed field and vice versa 2021-05-20 06:29:24 +00:00
teardown.yaml server: fix issue with tracking custom functions that return SETOF materialized view (close #5294) (#5945) 2020-10-22 13:26:42 +00:00
track_customised_names.yaml Add support for customising function root field names 2021-10-07 13:03:22 +00:00
track_function_v2_errors.yaml server: include more detail in inconsistent metadata error messages (fix #6684) 2021-05-19 05:02:53 +00:00
track_non_base_function_arg_type.yaml server: fix bug when executing a custom function with a row type argument 2021-05-06 09:19:49 +00:00