graphql-engine/server/tests/integration
Auke Booij 9bb6575d60 Metadata code cleanups
There are three minor cleanups here:

- The first argument to the `setMetadataInCatalog` method is always `Just`. It is thus important to avoid `Maybe`, because this means that a crucial piece of code (saving metadata) is completely untested.
- Rather than spelling them out, we can derive the `Semigroup`/`Monoid` instances for `MetadataModifier` through the `Endo` type.
- I've renamed the name of the getter of the `MetadataModifier` newtype to **r**unMetadataModifier. Using record puns, this allows us to write:

```diff
-  putMetadata $ unMetadataModifier metadataModifier metadata
+  putMetadata $ runMetadataModifier metadata
```
which is nicer to read.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3703
GitOrigin-RevId: fd36b3c5202017f5afc943c01dfdd7c82c099bdd
2022-02-18 12:47:56 +00:00
..
Backend Source typename customization (close graphql-engine#6974) 2021-10-29 14:43:14 +00:00
Hasura/Test Metadata code cleanups 2022-02-18 12:47:56 +00:00
Tests Unified remote relationship metadata 2021-12-01 04:54:30 +00:00
Main.hs server: add explicit export lists in OSS server and enforce with warning 2021-11-04 16:09:38 +00:00