graphql-engine/server/tests-py/queries
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
..
actions server: fix nullable field omitted from action response when omitted in the webhook response 2023-02-07 15:34:07 +00:00
apollo_federation server/console: add metadata API set_apollo_federation_config 2022-08-04 09:38:02 +00:00
compression server: don't compress small responses 2022-12-13 17:50:01 +00:00
endpoints server/tests-py: Set up postgis extensions using a fixture. 2022-08-15 14:30:42 +00:00
event_triggers server: make event trigger inconsistent for read-only source 2023-04-24 11:50:02 +00:00
explain server: Preserve ordering when possible, and sort when it's not. 2023-06-02 09:31:26 +00:00
graphql_introspection server/tests-py: Factor out service URLs as environment variables. 2022-08-15 14:59:05 +00:00
graphql_mutation server: Preserve ordering when possible, and sort when it's not. 2023-06-02 09:31:26 +00:00
graphql_query server: Preserve ordering when possible, and sort when it's not. 2023-06-02 09:31:26 +00:00
graphql_validation server/tests-py: Set up postgis extensions using a fixture. 2022-08-15 14:30:42 +00:00
heterogeneous [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
horizontal_scale/basic sync metadata cache across multiple instances connected to same db (closes #1182) (#1574) 2019-03-12 11:16:27 +05:30
inconsistent_objects server/tests-py: Fix test_inconsistent_meta.py for split databases. 2022-11-23 14:14:01 +00:00
logging server/tests-py: Parallelize test_logging.py. 2023-04-17 13:09:34 +00:00
naming_conventions server: fix naming convention bugs 2023-03-06 06:23:20 +00:00
openapi server: Preserve ordering when possible, and sort when it's not. 2023-06-02 09:31:26 +00:00
query_cache server/tests-py: Use environment variables for services in queries. 2022-08-03 20:05:46 +00:00
remote_schemas server/tests-py: Factor out service URLs as environment variables. 2022-08-15 14:59:05 +00:00
scheduled_triggers server: fix flaky test_check_events_statuses test 2021-10-22 05:55:59 +00:00
schema/duplication Improve error message phrasing in safeSelectionSet 2022-09-27 06:08:25 +00:00
subscriptions server/tests-py: Get all tests passing with separate HGE binaries. 2022-12-21 15:56:41 +00:00
unauthorized_role Adding multiple jwt secrets (incorporating provenance requirements) 2022-02-13 23:34:39 +00:00
v1 server: Preserve ordering when possible, and sort when it's not. 2023-06-02 09:31:26 +00:00
v2 Install and use ODBC Driver 18 for SQL Server (msodbcsql18). 2022-10-21 16:25:04 +00:00
webhooks/request_context pass gql requests into auth webhook POST body (#149) 2021-02-03 07:11:39 +00:00
clear_db_bigquery.yaml Feature/bigquery python tests 2021-04-22 11:32:55 +00:00
clear_db_citus.yaml server/citus: feature branch 2021-05-21 02:47:51 +00:00
clear_db_mssql.yaml server: generalize integration tests 2021-03-11 18:18:41 +00:00
clear_db.yaml python based tests (#387) 2018-09-18 11:51:57 +05:30