graphql-engine/server/tests-py/queries/graphql_query
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
..
agg_perm [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
aggregations server: add type information to aggregates and stringify them (closes #5704) 2021-01-18 13:52:51 +00:00
allowlist server: revert the relaxing of unique name constraint in allow-lists 2021-08-03 09:23:20 +00:00
basic server/bigquery: improve test setup and documentation (close #2345) 2021-10-12 17:59:44 +00:00
bigquery server/bigquery: improve test setup and documentation (close #2345) 2021-10-12 17:59:44 +00:00
boolexp MSSQL nodes aggregates & inherited roles 2021-07-08 20:50:09 +00:00
caching [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
citus server: fix failing citus test 2021-07-21 15:28:32 +00:00
computed_fields server/postgres: add test case to test computed field with session argument in where expression 2021-09-30 11:27:37 +00:00
custom_schema [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
empty Prevent empty subscription roots (fix hasura/graphql-engine#6898) 2021-09-16 07:42:46 +00:00
enums [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
functions Correctly translate permissions on functions to SQL, and simplify Bool Exp IR 2021-10-18 09:17:42 +00:00
limits server: introduce new custom scalars and remove offsetParser 2021-06-10 16:14:21 +00:00
mysql server/bigquery: improve test setup and documentation (close #2345) 2021-10-12 17:59:44 +00:00
offset [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
order_by server/postgres: support computed fields in order by 2021-07-27 16:28:23 +00:00
permissions MSSQL: custom-check based permissions _exists uses wrong table graphql-engine#7429 2021-09-20 10:27:14 +00:00
relay [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
v1alpha1/errors Integration test improvements (for speed/clarity), also increase polling interval for scheduled events 2021-04-27 05:35:26 +00:00