graphql-engine/server/src-lib/Hasura
Robert d900a65399 server: Reduce and localize CPP usage
Some of our use of CPP causes trouble for ormolu, compare https://github.com/tweag/ormolu/issues/774.
Specifically, for understandable reasons, it can't deal well with `#ifdef` use that is not at the top-level.

This PR removes the problematic usage in ways that I hope are also a net non-loss regardless of helping
out ormolu (or other tooling).

- The default value for enabled APIs moves to the top level, next to the command line help, so
  they'll stay in sync more easily.
- All the CPP around using `assertNFHere` is moved to one module.

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

GitOrigin-RevId: ed6e039e6d8960322fd8d1312df762ad197c29b1
2021-09-16 18:52:37 +00:00
..
Backends server: enable StrictData by default (fix hasura/graphql-engine#3941) 2021-09-16 12:23:15 +00:00
Base server: don't use Show to encode error codes 2021-09-06 15:49:56 +00:00
Cache server: remove remnants of query plan caching (fix #1795) 2021-07-27 11:52:43 +00:00
Eventing server: enable StrictData by default (fix hasura/graphql-engine#3941) 2021-09-16 12:23:15 +00:00
GraphQL server: Reduce and localize CPP usage 2021-09-16 18:52:37 +00:00
Incremental server: inherited roles for mutations, remote schemas, actions and custom functions 2021-08-09 10:21:05 +00:00
Metadata Request Transformations 2021-09-16 11:03:57 +00:00
RQL server: export metadata V2 should not export cron triggers with included_in_metadata: false 2021-09-16 15:08:45 +00:00
Server server: Reduce and localize CPP usage 2021-09-16 18:52:37 +00:00
SQL server: generalize event triggers - incremental PR 2 2021-09-09 11:55:11 +00:00
App.hs server: Reduce and localize CPP usage 2021-09-16 18:52:37 +00:00
EncJSON.hs Remote schema execution logic 2021-08-06 13:40:37 +00:00
GC.hs server: simplify shutdown logic, improve resource management (#218) (#195) 2020-12-21 18:56:57 +00:00
HTTP.hs [pro, server] Allow response when cache limits are hit 2021-08-25 01:53:45 +00:00
Incremental.hs Build the GraphQL context after pruning dangling dependents 2020-01-30 18:17:29 -06:00
Logging.hs server: generalize event triggers - incremental PR 2 2021-09-09 11:55:11 +00:00
Prelude.hs Fix nullability of nested objrel inserts (fix hasura/graphql-engine#7484) 2021-09-15 13:11:48 +00:00
QueryTags.hs server: SQL query tags for GQL operations (closes #400) 2021-07-29 08:30:10 +00:00
Session.hs kill Arbitrary (fix #1736) 2021-07-30 07:55:37 +00:00
Tracing.hs Request Transformations 2021-09-16 11:03:57 +00:00