graphql-engine/server/src-lib/Hasura/RQL
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
..
DDL Metadata code cleanups 2022-02-18 12:47:56 +00:00
DML Role-invariant schema constructors 2022-02-17 08:17:17 +00:00
IR server: cleanup references to "pgCol" in common and non-postgres backend code 2022-01-19 08:38:48 +00:00
Types Metadata code cleanups 2022-02-18 12:47:56 +00:00
IR.hs simplification of generalized joins execution 2021-12-07 13:12:57 +00:00
Types.hs server, pro: add support for per-role allowlists 2022-02-08 16:54:49 +00:00