graphql-engine/server/src-lib/Hasura/RQL
Robert 0c17f238a2 server: report duplicate entries in metadata lists using ToTxt instead of Show
This change is because in https://github.com/hasura/graphql-engine-mono/pull/2477, errors come out as
```
multiple declarations exist for the following allowlist : [CollectionName {unCollectionName = NonEmptyText {unNonEmptyText = "collection_1"}}]'
```
which is awfully messy. This changes it to
```
multiple declarations exist for the following allowlist: collection_1
```

This should improve error messages across the board -- e.g. `RoleName` has a nice `ToTxt` instance, while we used to use a derived `Show` instances. However, there might just be instances where the `Show` instance was better, bit hard to be sure based on scanning the code since we don't have test coverage for these errors.

Broken out of the allowlist PR since it affects more than just the allowlist.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3470
GitOrigin-RevId: 7a2c29f17d9f15d840cb2f89caefcdd3aae44d25
2022-02-01 11:30:58 +00:00
..
DDL Fix remote relationship invalid type name issue (fix hasura/graphql-engine#8002) 2022-01-27 14:34:01 +00:00
DML server: cleanup references to "pgCol" in common and non-postgres backend code 2022-01-19 08:38:48 +00:00
IR server: cleanup references to "pgCol" in common and non-postgres backend code 2022-01-19 08:38:48 +00:00
Types server: report duplicate entries in metadata lists using ToTxt instead of Show 2022-02-01 11:30:58 +00:00
IR.hs simplification of generalized joins execution 2021-12-07 13:12:57 +00:00
Types.hs simplified schema cache representation of remote relationships 2021-12-21 23:15:50 +00:00