graphql-engine/server/src-test
Jesse Hallett b9ec9b78dd server: convert Metadata to DTO (smaller PR)
Introduces a new function, `metadataToDTO`, that converts a `Metadata` value to a `MetadataV3` DTO value. This is the next step in the alternative serialization path for metadata that comes with a generated OpenAPI specification.

This PR carves up the existing `metadataToOrdJSON` function so that helpers previously embedded in the `where` block of that function can also be used in the implementation of `metadataToDTO`. If I did everything correctly `metadataToOrdJSON` should behave exactly as before.

In a followup PR I will move the extracted helpers to a new submodule, `Hasura.RQL.Types.Metadata.Serialization`, since they add up to several hundred lines of code.

I'm breaking up #5184 into smaller PRs, and this is the second PR in that effort. This PR is stacked on #5210.

The tracking issue is https://hasurahq.atlassian.net/browse/MM-35

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5211
GitOrigin-RevId: 2596ed5312d7b1232c47ae1d08a51d8ead11fcb8
2022-08-01 12:50:00 +00:00
..
Control Implement HLint suggestions and turn warnings into errors 2022-07-01 10:50:33 +00:00
Data server/parsers: Reduce usages of "utils"-like functions. 2022-07-06 07:56:35 +00:00
Database/MSSQL Use hspec-discover for src-test, remove unitSpecs list. 2022-07-18 14:15:17 +00:00
Hasura server: convert Metadata to DTO (smaller PR) 2022-08-01 12:50:00 +00:00
Network/HTTP/Client server: add explicit export lists in OSS server and enforce with warning 2021-11-04 16:09:38 +00:00
Test Move RoleName into SchemaContext. 2022-07-29 15:38:44 +00:00
Discover.hs Use hspec-discover for src-test, remove unitSpecs list. 2022-07-18 14:15:17 +00:00
Main.hs Use hspec-discover for src-test, remove unitSpecs list. 2022-07-18 14:15:17 +00:00