graphql-engine/server/src-lib/Hasura/Backends/MSSQL
Samir Talwar 40617719ef server: Remove the Show instance from QErr and anything that touches it.
We only use these `Show` instances in error messages (where we call
`show` explicitly anyway) and test cases (in which Hspec requires `Show
a` for any `a` in an assertion).

This removes the instance in favor of a custom `showQErr` function
(which serializes the error to JSON). It is then used in certain error
message production which previously called `show` on a `QErr`.

There are two places where we serialize a QErr and then construct a new
QErr from the resulting string. Instead, we modify the existing QErr to
add extra information.

An orphan `Show QErr` instance is retained for tests so that we can have
nice test failure messages.

This is preparation for future changes in which the error message within
`QErr` will not be exposed directly, and therefore will not have a
`Show` instance. That said, it feels like a sensible kind of cleanup
anyway.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4897
GitOrigin-RevId: 8f79f7a356f0aea571156f39aefac242bf751f3a
2022-07-01 11:48:26 +00:00
..
DDL Implement HLint suggestions and turn warnings into errors 2022-07-01 10:50:33 +00:00
Execute Move Hasura.GraphQL.Parser.Column to .RQL.IR. and .GraphQL.Schema. 2022-05-30 22:07:57 +00:00
FromIr replace SQLOperator with ScalarSelectionArguments 2022-05-03 09:00:01 +00:00
Instances Break up class BackendSchema in two 2022-06-30 15:23:35 +00:00
Schema server: Metadata origin for definitions (type parameter version v2) 2022-06-28 15:53:44 +00:00
SQL Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
Types server: GHC 9.2 changes compatible with 8.10 (#3550) 2022-06-25 22:09:05 +00:00
Connection.hs server/MSSQL: Event Delivery System (Incremental PR - 3) 2022-04-21 07:20:34 +00:00
DDL.hs server: naming conventions for auto generated fields 2022-05-26 11:55:29 +00:00
FromIr.hs Tidy up MSSQL.FromIr 2022-03-10 10:34:52 +00:00
Meta.hs Make on_conflict schema available abstract of update permissions 2022-06-07 23:25:48 +00:00
Plan.hs server: Remove the Show instance from QErr and anything that touches it. 2022-07-01 11:48:26 +00:00
ToQuery.hs server: fix create event trigger failure on tables with MSSQL reserved keywords as name 2022-06-15 17:11:44 +00:00
Types.hs Add docstrings to the module headers of a few selected mssql modules 2022-01-03 17:17:18 +00:00