Commit Graph

6506 Commits

Author SHA1 Message Date
Tom Harding
080fbe8c5c Remove postMetadata permission command calls
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8336
GitOrigin-RevId: 588e0e46177ec18ee851a507cadba0f8f95ab457
2023-03-16 12:06:23 +00:00
Daniel Harvey
8d21bf207e chore(pg-client): don't explode test if we can't stop all the running Postgres jobs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8330
GitOrigin-RevId: 6e3b51bccc85116e49149300023114ce15170e75
2023-03-16 11:25:45 +00:00
Gil Mizrahi
021e769235 Logical models: check that specified named columns are returned from query
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8312
GitOrigin-RevId: fc7c7a14115c0b228abc2f48d3cfac51d2852277
2023-03-16 10:45:46 +00:00
awjchen
9d30b7f5e9 server: use ekg-prometheus v0.3.0.0
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8319
GitOrigin-RevId: f45e2b6b5ad3d236470d26ee94a2027c77c9e489
2023-03-15 23:51:00 +00:00
Tom Harding
d60112c873 Generalise 'setupPermissionsAction'
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8335
GitOrigin-RevId: 106050f84339d2b97bc7cb69cefc312178cf5c26
2023-03-15 18:56:16 +00:00
Daniel Harvey
c441fa4a7f feature(server): allow untracking Logical Model when feature is off
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8339
GitOrigin-RevId: 20d4bfa465fa1ad6d1b2c630973e9c59a9d6178e
2023-03-15 18:20:58 +00:00
Luca Restagno
aea809b5c2 console: disable auto generated columns in the insert row form
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8309
Co-authored-by: Matthew Goodwin <49927862+m4ttheweric@users.noreply.github.com>
GitOrigin-RevId: c65456269eb27965ee0283acf200967568f731ed
2023-03-15 17:44:58 +00:00
Tom Harding
c4a16db4d2 Fix the unit test ghcid make command
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8338
GitOrigin-RevId: 07f9780ee23c198c49f0fe2ab5e4074a6fc262e4
2023-03-15 17:10:52 +00:00
Erik Magnusson
ab6a1e65b4 console: permissions make default value for is null true
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8331
GitOrigin-RevId: a2262fa94b4b1a0c3dfbf62494748a0dc3a91885
2023-03-15 16:36:37 +00:00
Rob Dominguez
96646005f7 docs: feature index restructure
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7715
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 61a91af22333ef08db1ec623941ac9dd5dc50179
2023-03-15 16:36:27 +00:00
Daniel Harvey
95f5553af6 chore(server): split new statistics log from QueryLog
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8326
GitOrigin-RevId: 02ee652302de5328e63054a6448dca10de7b5c1b
2023-03-15 13:06:47 +00:00
Vishnu Bharathi
a3197745f1 ci: tag release v2.21.0
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8328
GitOrigin-RevId: ff76bbcf5ef1c360118f7119204af0ef5b408259
2023-03-15 12:17:08 +00:00
Divi
d03f5d78e0 ci: update base image
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8193
GitOrigin-RevId: d270c4453c5ab122e3e47a686fca256799ec7b17
2023-03-15 11:52:21 +00:00
Sean Park-Ross
5bbc04c4e4 Docs: Auth section rewrite
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7544
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: a5ab88db4c0bbe838588970ef5bd3fb83c2c7f60
2023-03-15 11:02:23 +00:00
Rakesh Emmadi
9b6d403809 multitenant: enhancements to resize pools logs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8190
GitOrigin-RevId: 34ffbd2b79033850c3652d58fbf6b119e94c92ca
2023-03-15 10:30:48 +00:00
Daniel Harvey
cca883ab86 chore(tests): logical model test helper
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8314
GitOrigin-RevId: fc74d0c0bccea0368a41f1b88c9d8a599c93dcc8
2023-03-15 09:46:40 +00:00
paritosh-08
91552a1a05 server: move apollo-federation to GA
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8163
Co-authored-by: Tirumarai Selvan <8663570+tirumaraiselvan@users.noreply.github.com>
GitOrigin-RevId: d971720e79d5e08d1e68b31f7475c0eb6f06cac8
2023-03-15 08:15:51 +00:00
Rikin Kachhia
ce86f4ab73 docs: add note on admin secret for cloud one-click-deploy
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8299
GitOrigin-RevId: 5d274e6095785449a24c467dcd020a9597d42049
2023-03-15 07:07:51 +00:00
Vijay Prasanna
b043bf15b9 console: fix bug with untrack table option for GDC sources
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8219
GitOrigin-RevId: 104b6b0b2e966931120766ec83496486b21a8abd
2023-03-15 05:58:36 +00:00
Daniel Chambers
0b63b0b6b1 Fixed queries with no column fields and only introspection fields in Data Connectors
[GDC-1063]: https://hasurahq.atlassian.net/browse/GDC-1063?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8249
GitOrigin-RevId: 9d6dec3b4ef38fd7972bd0b9d3cfdfece1dcdcb5
2023-03-15 05:16:32 +00:00
Gavin Ray
af0c9417c4 super-connector: Mutations support for MySQL
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7669
Co-authored-by: Brandon Martin <40686+codedmart@users.noreply.github.com>
Co-authored-by: Daniel Chambers <1214352+daniel-chambers@users.noreply.github.com>
GitOrigin-RevId: 0e3e764b0e10fc0065752503952b57fb9a67f29a
2023-03-15 03:14:39 +00:00
Jesse Hallett
17a96a0fc6 server: codecs for open telemetry configuration
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8317
GitOrigin-RevId: 36dbe374164712167d7a4a31ea0509850060df36
2023-03-15 02:19:51 +00:00
Jesse Hallett
583e59fbe2 server: codecs for api limits
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8065
GitOrigin-RevId: 4a14f72fa4f832f1cc6cb7f5be8d146b4f00dd44
2023-03-15 01:38:52 +00:00
Julian@Hasura
472fc45239 console: Support X-Hasura-User-Id for number inputs DSF-162
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8261
Co-authored-by: Julian <843342+okjulian@users.noreply.github.com>
GitOrigin-RevId: 118bdb9261f92f6829ea19633de660388ff7db82
2023-03-15 00:24:43 +00:00
Aaysha
cd18fd0762 console: improving cloud onboarding for non-PG users
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8276
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 2d4d9f8d0b4d905e59be4b58586cb7968f217f62
2023-03-14 20:11:00 +00:00
Daniele Cammareri
b61927acad console: add dynamic db routing
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8295
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 36ae48f6e3366129a6f375728c21bf16555c72e1
2023-03-14 19:04:39 +00:00
paritosh-08
b36971f637 server: webhook auth token caching
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7925
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: eae1f4023a9e9144c9eb230529c214cb4327e44f
2023-03-14 18:28:56 +00:00
Auke Booij
88488362e0 chore(server): various code cleanups
- Derive a few `instance`s
- Delete some dead code (methods and types)
- Delete some `INLINE` pragmas that are unlikely to have a big effect
- Monomorphize Postgres `LISTEN` code to avoid effect juggling
- Generalize some methods in `pg-client` so that others can be simplified
- Handle errors differently for `TxET` to deduplicate code
- Use `hoist` instead of specialized combinators such as `mapActionT`

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8130
GitOrigin-RevId: bc1e908b6c0869f440a214a76744e92d40fea1e6
2023-03-14 17:47:49 +00:00
Auke Booij
f14b47cf42 chore(server): stricter GHC warnings for libraries
#7730 added some `package` stanzas to the Cabal project files so that we enable more GHC warnings.

#7761 recognized that these package stanzas used incorrect package names, and were therefore dysfunctional.

Simultaneously with that PR, #7758 renamed some of our Cabal packages, to the same ones used by #7730. However, it didn't change the names used by the package stanzas.

So finally, this reverts the names in the stanzas to the ones used by #7730 (and which are now correct).

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8275
GitOrigin-RevId: 1a3748ed79d1fa699c5e543b1af16f359c35c028
2023-03-14 17:01:46 +00:00
Julian@Hasura
2ea72dac8a console: Remove Read Replicas for BigQuery Connections DSF-109
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8239
Co-authored-by: Julian <843342+okjulian@users.noreply.github.com>
GitOrigin-RevId: b3607ba5d4ec3e8efc409392ea5715adce64b4b4
2023-03-14 16:20:35 +00:00
Antoine Leblanc
a0a2492fe3 add -fsolve-constant-dicts to local environment
## Description

When working locally, we often run into [ghc#16932](https://gitlab.haskell.org/ghc/ghc/-/issues/16932): redundant constraints warnings do not fire, because optimizations are disabled, but they end up making the build fail on CI where optimizations are enabled. This PR enables `-fsolve-constant-dicts` in the local environment, which guarantees that this warning will always fire locally. This doesn't seem to have a measurable impact on compilation time or memory use, as far as i could tell.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8305
GitOrigin-RevId: 0eac572464a3c6861be8b8c176ea9257f14e4226
2023-03-14 15:41:27 +00:00
Rikin Kachhia
df10e08c8b console: use common pattern to access local storage
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8231
GitOrigin-RevId: 7c19b211abd9c4ed1878efaba6ccb5d9bcdf9b2a
2023-03-14 15:08:42 +00:00
Mohd Bilal
69c8e8bb4a Make command to generate types from typed metadata in languages other than Typescript
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8238
GitOrigin-RevId: 9a4730e0d311916c0d837586485382c58033c914
2023-03-14 14:27:15 +00:00
Tom Harding
a119260a5d chore(server): tidy up the FromJSON Job instance
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8303
GitOrigin-RevId: bfdbb47ed1dd545df79f7e8604138d575489a0b9
2023-03-14 13:57:16 +00:00
pranshi06
b4157f58e8 server: fix scheduled events not showing up on console when the payload construction is failed
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8154
GitOrigin-RevId: ce3e4df13a55a260bc7b684818181c7ec156632c
2023-03-14 12:28:49 +00:00
Tom Harding
2124fa0f08 feature(server): make execution statistics available through logging
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8286
Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com>
GitOrigin-RevId: 72de592c08778649693d8ff0a0555b16fb28c4bd
2023-03-14 11:33:45 +00:00
Varun Choudhary
6ac06561e6 console: add unit test for generateCreateEventTriggerQuery
This PR added unit test for the function `generateCreateEventTriggerQuery`

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8221
GitOrigin-RevId: b990b938a02c623f47ceb56bc22b8e1021c48501
2023-03-14 10:16:10 +00:00
Rakesh Emmadi
b98a51c644 server/multitenant: addressing review comments in #8146
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8297
GitOrigin-RevId: caf82e358eed6ca6f94b2388e7bb4b75135b2793
2023-03-14 05:54:19 +00:00
Naveen Naidu
14f177862d server: remove redundant ExitCodes
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8280
GitOrigin-RevId: 20142da0dc8059d31442b41f2deb02c176dd395c
2023-03-14 05:18:25 +00:00
Rakesh Emmadi
0c3244c2c0 multitenant: switch schema sync listener to polling mechanism
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8146
GitOrigin-RevId: 7fe82899ca8ef9eba526fe4b298b0ffbce32be82
2023-03-14 04:39:34 +00:00
timothy-hasura
341254eaaf docs: add licenses and dependencies
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8245
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: ce2c899951876a97ccf584de88fc1be823308b0e
2023-03-14 00:56:45 +00:00
Luca Restagno
551b340632 console: enable insert row form based on the agent capabilities
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8258
Co-authored-by: Matthew Goodwin <49927862+m4ttheweric@users.noreply.github.com>
GitOrigin-RevId: 6bbfb4d1ea92c1b26efad8fd7050d5757db2a3da
2023-03-13 18:49:17 +00:00
Philip Lykke Carlsen
1bad75e3d8 feat(logical models): Add validation of types and parameters
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8267
GitOrigin-RevId: 827852edf074eb72c95ac379fe3ac5d095fd26ab
2023-03-13 18:15:27 +00:00
Antoine Leblanc
cf531b05cb Rewrite Tracing to allow for only one TraceT in the entire stack.
This PR is on top of #7789.

### Description

This PR entirely rewrites the API of the Tracing library, to make `interpTraceT` a thing of the past. Before this change, we ran traces by sticking a `TraceT` on top of whatever we were doing. This had several major drawbacks:
- we were carrying a bunch of `TraceT` across the codebase, and the entire codebase had to know about it
- we needed to carry a second class constraint around (`HasReporterM`) to be able to run all of those traces
- we kept having to do stack rewriting with `interpTraceT`, which went from inconvenient to horrible
- we had to declare several behavioral instances on `TraceT m`

This PR rewrite all of `Tracing` using a more conventional model: there is ONE `TraceT` at the bottom of the stack, and there is an associated class constraint `MonadTrace`: any part of the code that happens to satisfy `MonadTrace` is able to create new traces. We NEVER have to do stack rewriting, `interpTraceT` is gone, and `TraceT` and `Reporter` become  implementation details that 99% of the code is blissfully unaware of: code that needs to do tracing only needs to declare that the monad in which it operates implements `MonadTrace`.

In doing so, this PR revealed **several bugs in the codebase**: places where we were expecting to trace something, but due to the default instance of `HasReporterM IO` we would actually not do anything. This PR also splits the code of `Tracing` in more byte-sized modules, with the goal of potentially moving to `server/lib` down the line.

### Remaining work

This PR is a draft; what's left to do is:
- [x] make Pro compile; i haven't updated `HasuraPro/Main` yet
- [x] document Tracing by writing a note that explains how to use the library, and the meaning of "reporter", "trace" and "span", as well as the pitfalls
- [x] discuss some of the trade-offs in the implementation, which is why i'm opening this PR already despite it not fully building yet
- [x] it depends on #7789 being merged first

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7791
GitOrigin-RevId: cadd32d039134c93ddbf364599a2f4dd988adea8
2023-03-13 17:38:39 +00:00
Naveen Naidu
99a7a89fa3 docs: fix remove_api_limits metadata spec
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8277
GitOrigin-RevId: e17d8c90485568121d4a5f1dd7cbc3b5f6cee97d
2023-03-13 16:31:44 +00:00
Krushan Bauva
52cacabad0 server: expose server_type information to version API in CE
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8278
GitOrigin-RevId: 245ec64544c67e1fdfd52203ff827af17c04a626
2023-03-13 16:06:30 +00:00
rsd1122
3b9e408ba8 docs: update MySQL docs with support for mutations and enterprise doc with pointers to databases
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8192
GitOrigin-RevId: 308216808ab1c9a88d9461d35591d4b817d3e2b3
2023-03-13 15:31:06 +00:00
Anon Ray
58fc87e3e6 Revert "server/benchmarks: update the postgres version to 15"
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8290
GitOrigin-RevId: 8192f8dd5859acd82a93199c2c2408cbe5885782
2023-03-13 15:27:38 +00:00
Meet Zaveri
b4ca5f3605 update: update BigQuery API docs
## Description

As per this [BQ configuration docs](https://hasura.io/docs/latest/api-reference/syntax-defs/#bigqueryconfiguration), the `datasets` field must contain list of strings (array of strings).

In given example [here](https://hasura.io/docs/latest/api-reference/metadata-api/source/#metadata-bigquery-update-source), the `datasets` field in the example request contains comma seperated string ( ). Expected data type for that field is List of strings as per above-mentioned configuration docs ( ).

We came across this when @BenoitRanque and I were troubleshooting a ticket, and we faced an error while using this example request. Thanks !

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8161
GitOrigin-RevId: ca4179261e009648ab9007988bf60b388875b117
2023-03-13 13:42:27 +00:00
Nicolas Inchauspe
f92d695704 console: fix non clickable elements
[PLAT-487]: https://hasurahq.atlassian.net/browse/PLAT-487?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[PLAT-488]: https://hasurahq.atlassian.net/browse/PLAT-488?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8273
GitOrigin-RevId: 00855e10d09eb6f860df3d206630c918858252e2
2023-03-13 12:16:52 +00:00