Commit Graph

6307 Commits

Author SHA1 Message Date
Daniel Harvey
3b42e704dd [server] Custom types prototype
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7807
Co-authored-by: Tom Harding <6302310+i-am-tom@users.noreply.github.com>
GitOrigin-RevId: ee3c644b92aa71a236d247a0cfc5deb7846f91c2
2023-02-15 17:56:58 +00:00
Nicolas Inchauspe
96856f5de3 console: fix bugs for login and upgrade header style
[PLAT-437]: https://hasurahq.atlassian.net/browse/PLAT-437?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7947
GitOrigin-RevId: 9ac807cdb038818d45b0678ac0d98157ee292fab
2023-02-15 17:16:49 +00:00
Tom Harding
565176c155 Remove NativeQueryMetadata
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7980
GitOrigin-RevId: caadc019cc1f7824a65de10b20415ff736b1aafb
2023-02-15 16:27:47 +00:00
Aaysha
9dd1c29ab7 console: add neon dashboard links
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7772
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: e0e16ba05e59a92b357d932a27d09386d33f1b77
2023-02-15 15:57:22 +00:00
hasura-bot
53d5fc9cea add liveness and readiness kubernetes probes
GITHUB_PR_NUMBER: 9357
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9357

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7455
Co-authored-by: Antoine Pultier <45740+fungiboletus@users.noreply.github.com>
GitOrigin-RevId: 01f3a95fd607724ea29a83ebe85ae544045be17f
2023-02-15 15:13:26 +00:00
Rob Dominguez
3db3462a38 docs: update pricing page
[DOCS-708]: https://hasurahq.atlassian.net/browse/DOCS-708?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7951
GitOrigin-RevId: 7f4189ce249e2217e883a40f124c4a7bbf6285d3
2023-02-15 14:22:26 +00:00
Vishnu Bharathi
3eb1be0acb ci: tag release v2.19.0
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7996
GitOrigin-RevId: 45b08009c4e669c2b20c473bb7bdf896160b6e10
2023-02-15 13:11:28 +00:00
Nicolas Inchauspe
c8acf12d4f console: apply new sidebar design
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7635
GitOrigin-RevId: 5f4b24d30d39a2cf2c8eb4a0d0ccc60161389303
2023-02-15 12:38:16 +00:00
Luca Restagno
2b4acb11e7 console: Suggested relationship foreign key constraint on
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7880
GitOrigin-RevId: 24d2af47d308399ce489cda5bcf888b9d8a80fc5
2023-02-15 12:07:32 +00:00
Luca Restagno
01db431943 console: mutation support for add new row
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7915
GitOrigin-RevId: 2222e68d84866c5d27811dfaf49f165eec336c71
2023-02-15 11:36:26 +00:00
Mihir A Khandekar
b8355dba6a cloud console: update reducer state shape for entitlements
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7991
GitOrigin-RevId: 4d9e492e7dbccffd374fe536cf74daedcdad4524
2023-02-15 11:05:36 +00:00
Varun Choudhary
ea76e01b0f console: support suffix for tls allow list
[GS-392]: https://hasurahq.atlassian.net/browse/GS-392?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7745
Co-authored-by: Krushan Bauva <31391329+krushanbauva@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 72c9a2eef1cfaaefa30a7d53764b1c3688b38ae7
2023-02-15 10:26:41 +00:00
Gil Mizrahi
7a3c1489ad set omit_request_id to true by default
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7978
GitOrigin-RevId: 7e359979b304ff63b8e582e460c7668f8207fe75
2023-02-15 09:53:19 +00:00
awjchen
2df8589097 server: fix race condition in metadata update
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7984
GitOrigin-RevId: edd4a581a5b785e7a09b2d4c8b2a5c6ccc7f8b63
2023-02-15 06:12:59 +00:00
Vijay Prasanna
9900027a8e feature (console): remove the GDC experimental feature flag
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7942
Co-authored-by: Nicolas Beaussart <7281023+beaussan@users.noreply.github.com>
Co-authored-by: Julian <843342+okjulian@users.noreply.github.com>
Co-authored-by: Brandon Martin <40686+codedmart@users.noreply.github.com>
GitOrigin-RevId: 643c02d36f71b3e25060ddbb723bf57f31dd4318
2023-02-15 04:52:54 +00:00
Sean Park-Ross
2857a05b02 Docs: MySQL Add Info about not supporting PlanetScale
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7982
GitOrigin-RevId: c23f16ce70a7a8b294da74d278037b9370d3cd48
2023-02-14 23:28:26 +00:00
Mihir A Khandekar
829f5831ad update logic for console nav bar
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7888
GitOrigin-RevId: c0b8c7ea371d516fef0ed41dd4f11e6979fb9ae5
2023-02-14 15:10:55 +00:00
Gil Mizrahi
20e72ddb29 reject untrack naqi when naqi does not exist
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7975
GitOrigin-RevId: e56385e7396c3980d78b53acc6e9b3656fd9909d
2023-02-14 14:40:15 +00:00
rishi-div
e48dcba3d6 Rishi/docs/mysql alpha docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7843
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 32299f512587a154d6e40307116d56bb08ff4abb
2023-02-14 14:03:58 +00:00
Mohd Bilal
3be7c9b1e6 cli: increase max wait time for docker images to 5 minutes
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7971
GitOrigin-RevId: 5ee5c93d5d0d9befc0e1f9741a0ffe829e8e64c3
2023-02-14 13:30:29 +00:00
Philip Lykke Carlsen
fed36dadc7 Fix: Unable to use environment variable for CockroachDB connection string in Cloud
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7883
GitOrigin-RevId: b1f515c4de3b5f345991a0fad1152f42169f9d0d
2023-02-14 12:15:58 +00:00
Lyndon Maydwell
630bf277c1 SQLite Mutations
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7573
Co-authored-by: Daniel Chambers <1214352+daniel-chambers@users.noreply.github.com>
GitOrigin-RevId: 7807368faaa4bac5c0726c2dab041f8180a3fc31
2023-02-14 11:20:36 +00:00
Mihir A Khandekar
e443e25efe control-plane: update generated graphqltypes
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7966
GitOrigin-RevId: e4b99e9f89bfaa5b02699416fd4d922d79d16656
2023-02-14 10:10:16 +00:00
Vijay Prasanna
31d2542cd2 feature (console): add BigQuery connect DB widget
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7884
Co-authored-by: Matthew Goodwin <49927862+m4ttheweric@users.noreply.github.com>
GitOrigin-RevId: 86a6b490cd4b8ed2a6b1f8d9f85f58f91debe33b
2023-02-14 08:19:56 +00:00
Vijay Prasanna
ef532b5534 feature (console): add mssql connect DB widget
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7881
Co-authored-by: Matthew Goodwin <49927862+m4ttheweric@users.noreply.github.com>
GitOrigin-RevId: 3fab1af9f71ef7a7edc45bfae90b6070eb9d9b93
2023-02-14 07:48:53 +00:00
Samir Talwar
2df5b80063 server/tests-py: Run in parallel on all PostgreSQL versions in CI.
If this works, we can start knocking out running in the old, sequential mode.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7909
GitOrigin-RevId: 4cda5b52b3c385dd3286ba1f58d5cd7c62b87314
2023-02-13 23:39:28 +00:00
Sean Park-Ross
0ede49d32e Docs: Add Docker instructions to connect db page
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7786
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: ef831c0e94c69180b31f8e1430cedacccc1c1de1
2023-02-13 16:17:13 +00:00
Julian@Hasura
30b8adf6ae Clean console logs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7952
Co-authored-by: Julian <843342+okjulian@users.noreply.github.com>
GitOrigin-RevId: f30b861082344347ddca1f9f66d2952eb83ae23d
2023-02-13 14:33:22 +00:00
Erik Magnusson
b20a712443 feature(console): Rebuild Permissions Picker
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7662
Co-authored-by: Julian <843342+okjulian@users.noreply.github.com>
GitOrigin-RevId: c4d5a1d8d24124d435931c48389d6086410ed8ba
2023-02-13 12:12:55 +00:00
Aravind K P
0166f1892b cli: show expanded error information in debug logs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7431
GitOrigin-RevId: e261261b8da409fc68776e62a9d62e0b8b286054
2023-02-13 09:45:35 +00:00
Daniele Cammareri
eba7d44d02 console: show cross icon when status is null in invocation logs tab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7940
GitOrigin-RevId: 5fde0b42a85f061c5d443445a914f4ce6b42b823
2023-02-13 09:13:56 +00:00
Toan Nguyen
22d515dcb6 cli: introduce BigQuery source
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5766
Co-authored-by: Mohd Bilal <24944223+m-Bilal@users.noreply.github.com>
GitOrigin-RevId: 1bd4718dbf7b0368e99e5d7c6dd08f362dbf5c2b
2023-02-13 08:31:42 +00:00
Auke Booij
334660d906 server: refactor FromJSON FromIntrospection instances
- Inline a few instances to avoid code duplication
- Use `(<$>)` to avoid `let`
- Improve error reporting when types of invalid kind are specified in `possibleTypes` or `interfaces`.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7540
GitOrigin-RevId: 954fb710f94a275daff938b9a6e58765c4286d0c
2023-02-13 07:50:12 +00:00
Karthikeyan Chinnakonda
958a5e1a33 Include cron trigger's name in the error message
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7914
GitOrigin-RevId: 7bce2788ac154e7673402022414ab1fff653340d
2023-02-13 07:11:57 +00:00
Daniel Chambers
2ced1f2676 More tests for insert mutations for Data Connector agents
[GDC-719]: https://hasurahq.atlassian.net/browse/GDC-719?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7901
GitOrigin-RevId: b7f28c4b9604c0ca78c528deb2923e8519fae56a
2023-02-13 01:03:18 +00:00
Vijay Prasanna
58f4988b01 feature (console): add postgres connect DB widget
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7828
Co-authored-by: Matthew Goodwin <49927862+m4ttheweric@users.noreply.github.com>
GitOrigin-RevId: 59d311f704d25d2cb4b02605e6351b45d5725fdc
2023-02-10 03:43:11 +00:00
Lyndon Maydwell
5a3f10363d Fixing omit_tracked argument to suggest_relationships API to be more granular
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7900
GitOrigin-RevId: 2116875b866ffc79ce5e3604751c62b8ac9c37e3
2023-02-10 01:53:30 +00:00
Matthew Goodwin
7c804c8a82 console: POC db connect select database draft design [GCU-107]
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7897
GitOrigin-RevId: 4da175532c5422bd8985b9134f5aba7b190d05e0
2023-02-09 19:53:30 +00:00
Rikin Kachhia
ebb7ade403 docs: add data hub link to one-click-deploy docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7922
GitOrigin-RevId: 4a4c9ef1cba43e6482c6ea9652af31860e5a619c
2023-02-09 18:38:26 +00:00
Matthew Goodwin
fc9047ad02 console: more compact storybook sidebar UI
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7921
GitOrigin-RevId: 98763befe3e6ab385b1f9eec50e87531455f52ee
2023-02-09 17:05:20 +00:00
hasura-bot
f35e043cb6 [console] sort types alphabetically in remote schema type dropdown (close #9412)
GITHUB_PR_NUMBER: 9413
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9413

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7799
Co-authored-by: Tom Jenkinson <3259993+tjenkinson@users.noreply.github.com>
Co-authored-by: Erik Magnusson <32518962+ejkkan@users.noreply.github.com>
GitOrigin-RevId: 7392b4c0c5eb237a143ce7b398d0a85bef4602fc
2023-02-09 16:34:03 +00:00
Stefano Magni
5cba05b441 console: Rename the KnowMoreLink into LeanMoreLink and update the texts accordingly
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7889
GitOrigin-RevId: 1a9b38c57d2fd105f2b3063232399355935a9cce
2023-02-09 15:17:28 +00:00
Antoine Leblanc
dec8579db8 Allow backend execution to happen on the base app monad.
### Description

Each Backend executes queries against the database in a slightly different stack: Postgres uses its own `TXeT`, MSSQL uses a variant of it, BigQuery is simply in `ExceptT QErr IO`... To accommodate those variations, we had originally introduced an `ExecutionMonad b` type family in `BackendExecute`, allowing each backend to describe its own stack. It was then up to that backend's `BackendTransport` instance to implement running said stack, and converting the result back into our main app monad.

However, this was not without complications: `TraceT` is one of them: as it usually needs to be on the top of the stack, converting from one stack to the other implies the use `interpTraceT`, which is quite monstrous. Furthermore, as part of the Entitlement Services work, we're trying to move to a "Services" architecture in which the entire engine runs in one base monad, that delegates features and dependencies to monad constraints; and as a result we'd like to minimize the number of different monad stacks we have to maintain and translate from and to in the codebase.

To improve things, this PR changes `ExecutionMonad b` from an _absolute_ stack to a _relative_ one: i.e.: what needs to be stacked on top of our base monad for the execution. In `Transport`, we then only need to pop the top of the stack, and voila. This greatly simplifies the implementation of the backends, as there's no longer any need to do any stack transformation: MySQL's implementation becomes a `runIdentityT`! This also removes most mentions of `TraceT` from the execution code since it's no longer required: we can rely on the base monad's existing `MonadTrace` constraint.

To continue encapsulating monadic actions in `DBStepInfo` and avoid threading a bunch of `forall` all over the place, this PR introduces a small local helper: `OnBaseMonad`. One only downside of all this is that this requires adding `MonadBaseControl IO m` constraint all over the place: previously, we would run directly on `IO` and lift, and would therefore not need to bring that constraint all the way.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7789
GitOrigin-RevId: e9b2e431c5c47fa9851abf87545c0415ff6d1a12
2023-02-09 14:40:04 +00:00
Marion Schleifer
46ecb1e9c5 docs: add note about nested updates
## Description

This PR adds the information about Hasura not supporting nested updates in a note to the update page.

[Preview page](https://pr-7891---docusaurus-5kcgrtdh3a-wl.a.run.app/docs/latest/mutations/postgres/update/#replace-all-nested-array-objects-of-an-object)

From [this docs feedback](https://hasurahq.slack.com/archives/C042WA62YKF/p1675208903354599).

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7891
GitOrigin-RevId: 3a7ac5cee35d68ca612faf82318e7ab91b5ac582
2023-02-09 13:23:13 +00:00
ananya-2410
c681771192 ci: tag release v2.19.0-beta.1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7911
GitOrigin-RevId: 154a508058b5f3dc8c4901fb6a22ab00009adc19
2023-02-09 12:24:28 +00:00
Stefano Magni
2f6b370ced console: Add stories and type utilities for the KnowMoreLink
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7578
GitOrigin-RevId: 7b297877cf57729a249a89563afc957ec15a86e0
2023-02-09 12:17:56 +00:00
Auke Booij
8e0e778cd5 server/tests: ensure that all responses have a Content-Type header
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7850
GitOrigin-RevId: 5e3ec3907177bd35974d5dd9a990dca399904139
2023-02-09 10:28:19 +00:00
Nicolas Beaussart
379d10690e console: fix monitoring operation filter not working
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7902
GitOrigin-RevId: 39a55a16c42f9fc46a35e5907661f44c5f0f3ef4
2023-02-09 08:09:41 +00:00
Varun Choudhary
466e60ca8c console: allow creating remote joins from and to the same remote schema
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7879
GitOrigin-RevId: bce0c66a17d5214800ae1b08d4ad46a9501e9295
2023-02-09 07:23:47 +00:00
kodiakhq[bot]
b01d3a45de server: dev build modes
Add some configurations for modern profiling modes, and integration into dev.sh

These require cabal 3.8 due to the use of `import`

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7671
GitOrigin-RevId: f793f64105cfd99fb51b247fa8bc050f6d4bd23e
2023-02-08 22:43:00 +00:00