graphql-engine/server/lib
Samir Talwar dd46aa6715 server: Preserve ordering when possible, and sort when it's not.
When upgrading to GHC v9.4, we noticed a number of failures because the sort order of HashMaps has changed. With this changeset, I am endeavoring to mitigate this now and in the future.

This makes one of two changes in a few areas where we depend on the sort order of elements in a `HashMap`:

  1. the ordering of the request is preserved with `InsOrdHashMap`, or
  2. we sort the data after retrieving it.

Fortunately, we do not do this anywhere where we _must_ preserve order; it's "just" descriptions, error messages, and OpenAPI metadata. The main problem is that tests are likely to fail each time we upgrade GHC (or whatever is providing the hash seed).

[NDAT-705]: https://hasurahq.atlassian.net/browse/NDAT-705?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9390
GitOrigin-RevId: 84503e029b44094edbbc298651744bc2843c15f3
2023-06-02 09:31:26 +00:00
..
aeson-ordered Upgrade Ormolu to 0.7.0.0 2023-05-24 13:53:53 +00:00
api-tests feature(server): comparable computed field aggregations for Postgres 2023-05-25 12:55:29 +00:00
arrows-extra Upgrade Ormolu to 0.7.0.0 2023-05-24 13:53:53 +00:00
ci-info chore(tooling): import ci-info-hs into monorepo 2023-06-01 12:51:39 +00:00
dc-api chore(server): use new version of sandwich 2023-06-02 02:00:41 +00:00
error-message NativeQueries: validate that there are no unused or undeclare arguments 2023-06-01 09:15:48 +00:00
graphql-parser Upgrade Ormolu to 0.7.0.0 2023-05-24 13:53:53 +00:00
hasura-base Put the message property first when encoding error JSON 2023-06-02 05:29:50 +00:00
hasura-extras fix(pg): Support aliased fields for Native Query object relations 2023-05-31 15:42:50 +00:00
hasura-json-encoding Put the message property first when encoding error JSON 2023-06-02 05:29:50 +00:00
hasura-prelude Upgrade Ormolu to 0.7.0.0 2023-05-24 13:53:53 +00:00
incremental Upgrade Ormolu to 0.7.0.0 2023-05-24 13:53:53 +00:00
pg-client Upgrade Ormolu to 0.7.0.0 2023-05-24 13:53:53 +00:00
resource-pool Upgrade Ormolu to 0.7.0.0 2023-05-24 13:53:53 +00:00
schema-parsers server: Preserve ordering when possible, and sort when it's not. 2023-06-02 09:31:26 +00:00
test-harness chore(tests): output hge stderr in api-tests 2023-06-01 11:43:38 +00:00
upgrade-tests Upgrade Ormolu to 0.7.0.0 2023-05-24 13:53:53 +00:00