graphql-engine/server/src-lib/Hasura
Antoine Leblanc cbe0479406 Remove unrelated functions from GraphQL.Schema.Common
### Description

There were several functions in `GraphQL.Schema.Common` that were unrelated to the schema building process, and were about metadata manipulation or dependency computation. Having those functions in the schema part of the code forces several places in the code to depend on the schema code, despite being completely unrelated.

This PR moves those functions where they make sense: alongside similar functions in `RQL.Types.*`, and rewrites `getRemoteDependencies` for clarity (it was using the term "indirect dependency" in a way that was inconsistent with the rest of the code).

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4568
GitOrigin-RevId: 948a18cebbb337a8bb6367c1f2d2ef5628209d96
2022-05-27 15:41:06 +00:00
..
Backends Remove unrelated functions from GraphQL.Schema.Common 2022-05-27 15:41:06 +00:00
Base Fix for too much information in Pro PSQL exceptions wrt. Certificates 2022-05-12 14:30:35 +00:00
Cache server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Eventing server: refactor MaintenanceMode datatype 2022-04-28 20:56:11 +00:00
GraphQL Remove unrelated functions from GraphQL.Schema.Common 2022-05-27 15:41:06 +00:00
Incremental Make ForeignKey mappings non-empty 2022-05-10 15:44:46 +00:00
Metadata server: Clean up some deriving statements 2022-05-24 07:22:55 +00:00
RQL Remove unrelated functions from GraphQL.Schema.Common 2022-05-27 15:41:06 +00:00
Server Add unless/when related hints 2022-05-27 13:34:42 +00:00
SQL server: further improve anybackend module docs 2022-05-09 10:12:59 +00:00
App.hs server: naming conventions for auto generated fields 2022-05-26 11:55:29 +00:00
EncJSON.hs Fix JSON encoding issue (fix hasura/graphql-engine#7543 and hasura/graphql-engine#8200) 2022-04-05 19:11:30 +00:00
GC.hs server: add explicit export lists in OSS server and enforce with warning 2021-11-04 16:09:38 +00:00
HTTP.hs server: http ip blocklist (closes #2449) 2022-02-25 13:30:57 +00:00
Incremental.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Logging.hs Yeet some default-extensions 2022-03-16 00:40:17 +00:00
Prelude.hs Initial GDW Query Generation 2022-04-08 06:49:40 +00:00
QueryTags.hs server: support query tags for MSSQL data sources 2022-04-28 19:34:45 +00:00
Session.hs Add remote relationships from remote schemas in schema parser generators 2022-03-14 16:22:50 +00:00
Tracing.hs server: Clean up some deriving statements 2022-05-24 07:22:55 +00:00