graphql-engine/server/src-lib/Hasura/RQL/DDL
Antoine Leblanc 04d8f068b6 Remove explicit case on the backend tag in Cache
### Description

As part of the cache building process, we create / update / migrate the catalog that each DB uses as a place to store event trigger information. The function that decides how this should be done was doing an explicit `case ... of` on the backend tag, instead of delegating to one of the backend classes. The downsides of this is that:
- it adds a "friction point" where the backend matters in the core of the engine, which is otherwise written to be almost entirely backend-agnostic
- it creates imports from deep in the engine to the `Backends`, which we try to restrict to a very small set of clearly identified files (the `Instances` files)
- it is currently implemented using a "catch all" default case, which might not always be correct for new backends

This PR makes the catalog updating process a part of `BackendMetadata`, and cleans the corresponding schema cache code.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4457
GitOrigin-RevId: 592f0eaa97a7c38f4e6d4400e1d2353aab12c97e
2022-05-05 13:44:56 +00:00
..
Metadata Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
Permission Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
Relationship Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
RemoteRelationship Replaces litName splices with name quasiquotes 2022-04-18 19:44:04 +00:00
RemoteSchema Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
Schema Remove explicit case on the backend tag in Cache 2022-05-05 13:44:56 +00:00
Webhook server: Rework internal webhook request transform components 2022-03-23 20:24:44 +00:00
Action.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
ApiLimit.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
ComputedField.hs server/bigquery: enable metadata API to add/drop computed fields to BigQuery tables 2022-05-04 14:53:31 +00:00
CustomTypes.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
Endpoint.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
EventTrigger.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
GraphqlSchemaIntrospection.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
Headers.hs server: add explicit export lists in OSS server and enforce with warning 2021-11-04 16:09:38 +00:00
InheritedRoles.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
Metadata.hs Added BackendConfig to allow sources to share configuration of Data Connectors [GDW-78] 2022-04-29 02:14:10 +00:00
Network.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
Permission.hs Cut ties with RQL.DML.Internal 2022-04-27 15:37:23 +00:00
QueryCollection.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
QueryTags.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
Relationship.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
RemoteRelationship.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
RemoteSchema.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
ScheduledTrigger.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
Schema.hs Yeet some default-extensions 2022-03-16 00:40:17 +00:00