graphql-engine/server
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
..
bench-wrk server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
benchmarks ci: hide old benchmark reports for PRs with many comments 2022-02-24 20:09:17 +00:00
documentation server/tests: unify HASURA_BIGQUERY_SERVICE_KEY and HASURA_BIGQUERY_SERVICE_ACCOUNT env vars 2022-03-14 07:50:35 +00:00
packaging ci: use pg_dump from postgres 14 2022-04-18 06:25:02 +00:00
src-dc-api Data Connector Agent Configuration Schema [GDW-103] 2022-05-05 05:19:46 +00:00
src-exec Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
src-lib Remove explicit case on the backend tag in Cache 2022-05-05 13:44:56 +00:00
src-rsr ci: tag release v2.5.2 and v2.6.1 2022-05-03 09:36:04 +00:00
src-test Data Connector Agent Configuration Schema [GDW-103] 2022-05-05 05:19:46 +00:00
tests-dc-api Data Connector Agent Configuration Schema [GDW-103] 2022-05-05 05:19:46 +00:00
tests-hspec docs: Add Debugging section for hspec 2022-05-04 14:57:15 +00:00
tests-py server/docs: Add/update BigQuery test setup info 2022-05-04 07:37:22 +00:00
.dockerignore update packages (#251) 2018-08-08 13:10:13 +05:30
.gitignore server: Clean up Cabal project files 2022-04-07 07:16:12 +00:00
commit_diff.txt Rewrite GraphQL schema generation and query parsing (close #2801) (#4111) 2020-08-21 12:27:01 -05:00
COMPILING-ON-MACOS.md server/tests: Troubleshooting docs 2022-05-04 08:23:53 +00:00
CONTRIBUTING.md server/tests: Troubleshooting docs 2022-05-04 08:23:53 +00:00
graphql-engine.cabal Data Connector Agent Configuration Schema [GDW-103] 2022-05-05 05:19:46 +00:00
Makefile ci: misc. cleanup, naming 2022-01-03 06:26:39 +00:00
STYLE.md server, CI: use ormolu as a formatter for Haskell sources 2021-09-23 21:23:21 +00:00
testing-guidelines.md server: testing guidelines 2022-03-08 09:53:27 +00:00