graphql-engine/server/tests-py/queries
Antoine Leblanc 83045a4459 server: fix erroneous Eq instance on Metadata Object
During the "generalization" of the code, we removed the [generated instances](9d63187803 (diff-7b8382ab20e441fa214586be491eb6f7ca904d8b20ed97894c16a339be45219aL72)) of `Eq` and `Hashable` in favour of manually written ones, because for a time we were struggling with `AnyBackend`.

In the process, we lost one constructor, `MOEndpoint`. It's unlikely to have ever been an issue, since duplicate endpoints are unlikely, but it is nonetheless wrong.

This PR simply goes back to default derived instances, now that we can, fixing the problem and making the code simpler.

---

However, after filing this PR, I realized **it broke rest endpoint tests**. Upon closer inspection, it turns out that while we had proper checks in place, because of this bug we were actually failing _differently_ during metadata checks. This PR actually improves error messages for invalid endpoint configurations?! 🙀

This is a tiny bit scary. ^^'

https://github.com/hasura/graphql-engine-mono/pull/1762

GitOrigin-RevId: c4897d1f3ae92d18c44c87d2f58258c66f716686
2021-07-20 14:24:45 +00:00
..
actions server: fix order of fields in introspection output 2021-05-19 16:38:54 +00:00
compression [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
endpoints server: fix erroneous Eq instance on Metadata Object 2021-07-20 14:24:45 +00:00
event_triggers server: Add tests for the event trigger big int and geojson format payload bug fix 2021-05-20 12:27:35 +00:00
explain MSSQL nodes aggregates & inherited roles 2021-07-08 20:50:09 +00:00
graphql_introspection pro server: disable GraphQL schema introspection for specified roles 2021-05-05 12:26:23 +00:00
graphql_mutation server/citus: feature branch 2021-05-21 02:47:51 +00:00
graphql_query server: inherited roles improvements for select permissions only 2021-07-16 21:19:58 +00:00
graphql_validation server: unify parsing Postgres scalars 2021-05-13 20:13:49 +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: include more detail in inconsistent metadata error messages (fix #6684) 2021-05-19 05:02:53 +00:00
logging [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
query_cache server: disable caching for actions with forward client headers enabled 2021-04-13 07:01:34 +00:00
remote_schemas server/postgres: Support scalar computed fields in remote joins 2021-07-12 16:04:37 +00:00
schema/duplication Fix/custom table name 2021-05-18 13:37:27 +00:00
subscriptions server: improve backend-specific test setup 2021-05-25 13:55:11 +00:00
unauthorized_role [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
v1 server: add tests ensuring the correct functioning of all endpoints based on user roles 2021-07-16 16:09:25 +00:00
v2/basic server: add tests ensuring the correct functioning of all endpoints based on user roles 2021-07-16 16:09:25 +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