graphql-engine/server/tests-py/queries/graphql_query
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
..
agg_perm An ErrorMessage type, to encapsulate. 2022-07-18 20:27:06 +00:00
aggregations server: add type information to aggregates and stringify them (closes #5704) 2021-01-18 13:52:51 +00:00
allowlist server: validate top level fragments in GQL query 2022-04-20 07:33:21 +00:00
allowlist_role_based server: add rename_query_collection metadata API 2022-08-19 13:37:16 +00:00
basic Remove redundant basic object query pytests 2023-03-08 17:07:38 +00:00
bigquery chore(tests): explicitly set BigQuery retry limit in py-tests 2023-03-28 10:42:00 +00:00
boolexp CI: Use the same PostgreSQL base images where possible. 2022-11-17 13:54:19 +00:00
caching [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
computed_fields server/tests-py: Set up postgis extensions using a fixture. 2022-08-15 14:30:42 +00:00
custom_schema [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
enums server: Preserve ordering when possible, and sort when it's not. 2023-06-02 09:31:26 +00:00
functions/permissions server/tests: Port TestGraphQLQueryFunctions 2022-12-15 16:42:55 +00:00
limits An ErrorMessage type, to encapsulate. 2022-07-18 20:27:06 +00:00
offset [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
order_by server/postgres: support computed fields in order by 2021-07-27 16:28:23 +00:00
permissions server/tests-py: Set up postgis extensions using a fixture. 2022-08-15 14:30:42 +00:00
read_only_source server/tests-py: Spawn a new PostgreSQL schema ("database") per test. 2022-11-15 19:08:53 +00:00
relay An ErrorMessage type, to encapsulate. 2022-07-18 20:27:06 +00:00
v1alpha1/errors Integration test improvements (for speed/clarity), also increase polling interval for scheduled events 2021-04-27 05:35:26 +00:00