graphql-engine/server/src-lib/Hasura
Chris Done 459a7adbfb Add Types/FromIr changes for MySQL to work with the DataLoader
While it looks like a lot of work in FromIr.hs, you can rather review the type changes in `Hasura.Backends.MySQL.Types.Internal` and the changes to FromIr are only to reflect that. Essentially we're simplifying the FromIr code to not think about SQL-based joins: instead, FromIr produces fields necessary for the dataloader Plan/Execute to do their job properly.

I've done my best to ensure that all the hunks in the diff in this PR are minimal for slightly easier perusing.

I think future PRs will be more intentionally well structured, rather than created retroactively.

**Preceding PR:** #2549

**Next PR**: #2367

The tests have been run like this on my machine. I don't know more beyond that.

```
docker run -i -e "PYTEST_ADDOPTS=--color=yes" -e "TERM=xterm-256color" --net=host -v`pwd`:`pwd` -w`pwd`/server/tests-py chrisdone/hasura-pytest:b0f26f615 pytest  --hge-urls="http://localhost:8080"  --pg-urls="postgres://chinook:chinook@localhost:5432/chinook"  --backend mysql -k MySQL
```

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2608
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
GitOrigin-RevId: a6483335c3036963360dde7d7d7eaf10859351cb
2021-10-21 23:51:17 +00:00
..
Backends Add Types/FromIr changes for MySQL to work with the DataLoader 2021-10-21 23:51:17 +00:00
Base server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Cache server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Eventing server: drop HasVersion implicit parameter (closes #2236) 2021-10-13 16:39:58 +00:00
GraphQL server: drop HasVersion implicit parameter (closes #2236) 2021-10-13 16:39:58 +00:00
Incremental server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Metadata server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
RQL Wrap string interpolations with double quotes on the backend 2021-10-21 13:32:49 +00:00
Server fix OpenAPI for mutiple methods on same REST endpoint path 2021-10-14 10:32:18 +00:00
SQL server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
App.hs server/tests: initial work on a test suite for DB-to-DB joins 2021-10-20 20:02:34 +00:00
EncJSON.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
GC.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
HTTP.hs server: drop HasVersion implicit parameter (closes #2236) 2021-10-13 16:39:58 +00:00
Incremental.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Logging.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Prelude.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
QueryTags.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Session.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Tracing.hs server: interpTraceT docs and small changes 2021-09-25 04:00:34 +00:00