graphql-engine/server
Samir Talwar 1a052dd44b server: Avoid partial fields wherever possible.
This turns on the `partial-fields` warning, which yells at you if you try and create fields on sum types that end up being partial functions. These are dangerous; we had a bug because we introduced a new case to a data type, making the field accessors partial, and leading to a crash in certain cases.

This means that we have introduced a few wrappers in various places where the field names are useful, but we want to avoid partial matches.

Unfortunately this can be turned off by prefixing the field name with an underscore. Ideally we would try and avoid exporting any field names with underscores, but lenses make this hard. I have removed some underscores for the areas in which we've seen this break in the past.

We will have to be vigilant.

[NDAT-794]: https://hasurahq.atlassian.net/browse/NDAT-794?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9991
GitOrigin-RevId: fd69b1ef999682969f3507f0e97513f983da4da6
2023-07-28 10:54:24 +00:00
..
benchmarks Fix #9447 bad memory usage 2023-07-25 11:24:57 +00:00
documentation chore(server): delete MySQL native backend 2023-05-05 10:32:56 +00:00
forks/hedis chore(tooling): import ekg-prometheus into the monorepo 2023-06-27 18:37:11 +00:00
lib chore(server): use 'double precision' instead of numeric 2023-07-26 16:39:33 +00:00
src-emit-metadata-openapi harmonize network manager handling 2023-02-22 15:55:54 +00:00
src-exec server: Avoid partial fields wherever possible. 2023-07-28 10:54:24 +00:00
src-lib server: Avoid partial fields wherever possible. 2023-07-28 10:54:24 +00:00
src-rsr fix(mssql): Properly record the schema of referenced columns 2023-07-27 15:06:47 +00:00
src-test server: null forwarding feature flag 2023-07-21 15:12:32 +00:00
test-manual server/test-manual: A way to start PostgreSQL with a read replica. 2023-03-28 09:20:51 +00:00
test-mssql server: Avoid partial fields wherever possible. 2023-07-28 10:54:24 +00:00
test-postgres server: null forwarding feature flag 2023-07-21 15:12:32 +00:00
tests-py server: add tests for invalid auth when using graphql-ws protocol 2023-07-20 10:44:47 +00:00
.dockerignore update packages (#251) 2018-08-08 13:10:13 +05:30
.gitignore server: Clean up Cabal project files 2022-04-07 07:16:12 +00:00
.ormolu Upgrade Ormolu to v0.5. 2022-11-02 20:55:13 +00:00
commit_diff.txt Rewrite GraphQL schema generation and query parsing (close #2801) (#4111) 2020-08-21 12:27:01 -05:00
COMPILING-ON-MACOS.md Upgrade cabal version used in CI server-build 2023-06-08 08:32:15 +00:00
CONTRIBUTING.md Upgrade cabal version used in CI server-build 2023-06-08 08:32:15 +00:00
graphql-engine.cabal server: Avoid partial fields wherever possible. 2023-07-28 10:54:24 +00:00
Makefile ci: misc. cleanup, naming 2022-01-03 06:26:39 +00:00
STYLE.md Nix: Use nixpkgs-fmt to format everything. 2022-06-20 13:02:45 +00:00
testing-guidelines.md Extract the test harness from the Hspec tests 2022-10-04 08:31:26 +00:00
troubleshooting.md Create troubleshooting.md 2022-05-30 09:18:44 +00:00
VERSIONS.json server: Upgrade the HGE server to GHC 9.4.5 2023-06-06 13:29:30 +00:00