graphql-engine/server/tests-py/queries/v1/set_table_configuration
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
..
alter_column.yaml Customize column GraphQL schema descriptions 2022-03-09 06:35:46 +00:00
column_field_swap.yaml Customize column GraphQL schema descriptions 2022-03-09 06:35:46 +00:00
conflict_with_relationship.yaml Customize column GraphQL schema descriptions 2022-03-09 06:35:46 +00:00
fail_conflicting_custom_table_name.yaml server: Preserve ordering when possible, and sort when it's not. 2023-06-02 09:31:26 +00:00
relationship_conflict_with_custom_column.yaml server: include more detail in inconsistent metadata error messages (fix #6684) 2021-05-19 05:02:53 +00:00
rename_original_table_with_custom_name.yaml Customize column GraphQL schema descriptions 2022-03-09 06:35:46 +00:00
rename_original_table_with_identifier.yaml Customize column GraphQL schema descriptions 2022-03-09 06:35:46 +00:00
set_and_unset.yaml Customize column GraphQL schema descriptions 2022-03-09 06:35:46 +00:00
set_invalid_table.yaml Customize column GraphQL schema descriptions 2022-03-09 06:35:46 +00:00
setup.yaml [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
teardown.yaml server: customize tracking tables with a custom name (#5719) 2020-10-29 12:48:45 +00:00
use_deprecated_custom_column_names.yaml Customize column GraphQL schema descriptions 2022-03-09 06:35:46 +00:00