graphql-engine/server/src-lib
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
..
Control server: add explicit export lists in OSS server and enforce with warning 2021-11-04 16:09:38 +00:00
Data Updates cabal freeze file 2022-02-18 05:32:08 +00:00
Database/MSSQL server: add tests for transaction commit/rollback 2022-01-21 12:49:12 +00:00
GHC server: drop dependency on ghc-heap-view again for profiling builds (close #2554) 2021-10-12 09:34:08 +00:00
Hasura Metadata code cleanups 2022-02-18 12:47:56 +00:00
Network server/gardening: rename mkMgr to mkHttpManager 2022-01-19 12:33:45 +00:00