graphql-engine/server/src-lib/Hasura
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
..
Backends Correctly translate permissions on functions to SQL, and simplify Bool Exp IR 2021-10-18 09:17:42 +00:00
Base server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Cache server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Eventing server: drop HasVersion implicit parameter (closes #2236) 2021-10-13 16:39:58 +00:00
GraphQL server: drop HasVersion implicit parameter (closes #2236) 2021-10-13 16:39:58 +00:00
Incremental server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Metadata server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
RQL Correctly translate permissions on functions to SQL, and simplify Bool Exp IR 2021-10-18 09:17:42 +00:00
Server fix OpenAPI for mutiple methods on same REST endpoint path 2021-10-14 10:32:18 +00:00
SQL server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
App.hs server: drop HasVersion implicit parameter (closes #2236) 2021-10-13 16:39:58 +00:00
EncJSON.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
GC.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
HTTP.hs server: drop HasVersion implicit parameter (closes #2236) 2021-10-13 16:39:58 +00:00
Incremental.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Logging.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Prelude.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
QueryTags.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Session.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Tracing.hs server: interpTraceT docs and small changes 2021-09-25 04:00:34 +00:00