Commit Graph

6371 Commits

Author SHA1 Message Date
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
Marion Schleifer
7a0b2b85bb docs: add page on recovering project
## Description

This PR adds a page on recovering a project. [Preview link](https://pr-7885---docusaurus-5kcgrtdh3a-wl.a.run.app/docs/latest/hasura-cloud/projects/recover/).

[Jira ticket](https://hasurahq.atlassian.net/jira/software/projects/DOCS/boards/19?selectedIssue=DOCS-555).

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7885
GitOrigin-RevId: c39283b646a295971f19a8a1144fcb410c8cdbf2
2023-02-08 19:02:22 +00:00
Luca Restagno
41fac9960e fix: export data visibility
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7895
GitOrigin-RevId: d0767de8b8525e68c5d10c746e37940006a69a29
2023-02-08 17:53:42 +00:00
Marion Schleifer
69c7d5d046 docs: update cloud db guides in getting started
## Description

This PR updates the list of Cloud DB connection guides in the getting started guide.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7886
GitOrigin-RevId: b5c4552b5438f26973ee198dc9e222497ee38703
2023-02-08 16:43:23 +00:00
Philip Lykke Carlsen
1ded9b0837 server/docs: Add documentation of bigquery types
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7860
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 3543245097d943be46acb208cc9722192246a17b
2023-02-08 16:38:32 +00:00
Nicolas Inchauspe
8b24e40f67 console: fix wrong color for active header entry
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7890
GitOrigin-RevId: fa0df4ffadd46d2d857e2ab00ca79d7b5513590e
2023-02-08 16:32:53 +00:00
Tom Harding
89bbb24c54 Monomorphise NativeQueryName
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7865
GitOrigin-RevId: 6c26edeb40f3b523053ffc45220a3c1046585de3
2023-02-08 15:48:12 +00:00
Samir Talwar
23f78a05b1 server/tests-py: Enable TLS tests in parallel mode on CI.
Part of [NDAT-257](https://hasurahq.atlassian.net/browse/NDAT-257).

* Run the TLS tests on CI.
* Run non-TLS tests even when a TLS certificate is provided; just ignore it.

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

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7806
GitOrigin-RevId: d705e2e5131a674070a98a893323a7b98a92f688
2023-02-08 14:42:27 +00:00
Marion Schleifer
de5604a234 docs: add beta tags for relay
## Description

[Slack thread](https://hasurahq.slack.com/archives/C03RJ54M4RW/p1674774525600169)

<img width="774" alt="image" src="https://user-images.githubusercontent.com/5722022/217260137-cab6b462-abc8-445e-9ffc-ca48217356a2.png">

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7863
GitOrigin-RevId: e057701c86d5b5ef3e05d818b647537632b32b9c
2023-02-08 13:58:54 +00:00
Nicolas Beaussart
5163759e0e ci: clean up old console build
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7826
GitOrigin-RevId: a70472d5befaef1d0f0d072c86c848e8734fe78a
2023-02-08 13:52:38 +00:00
Stefano Magni
7e9e7be395 console: Normalise all the Know More links
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7877
GitOrigin-RevId: 5aaffff0485c70fabf9060594b5ec3eef6eacff3
2023-02-08 13:03:59 +00:00
Samir Talwar
fa53a70631 server/tests-py: Run TestSubscriptionBasicNoAuth in the new mode.
This test _cannot_ run without an admin secret, so we need a new marker just for that.

This also fixes the Docker Compose file so that _run.sh_ works again. Apparently it was not used much.

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

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7831
GitOrigin-RevId: 1cb9449a20c7cbe56fbd1ba0f12337f056683624
2023-02-08 11:51:54 +00:00
Daniel Chambers
0d5badba09 Initial tests for insert mutations for Data Connector agents
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7875
GitOrigin-RevId: 793501685124e41edfd83c6be4a2a9c7ae7f9267
2023-02-08 08:36:58 +00:00
Anon Ray
85a7e03526 docs: add explanation of livequery-poller-log (GS-284)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7372
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 75fd9300749417695941fe552f3f06bb08c55c10
2023-02-08 07:23:49 +00:00
Solomon
4d3e80a0b5 [Gardening] Eliminate boolean blindness in rsoWebSocketCompression
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7818
GitOrigin-RevId: cb3b8b8ebf7bd296c88c782c8bc457397a88f8ea
2023-02-08 04:15:01 +00:00
Solomon
9b6b44c888 [Gardening] Eliminate boolean blindness in soAllowList
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7815
GitOrigin-RevId: 6768abb39e7ab6b12be8989702223500119169de
2023-02-08 03:36:45 +00:00
Solomon
97dc0408d1 [Gardening] Eliminate boolean blindness in soDevMode
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7814
GitOrigin-RevId: 593b8e764a8dca5aa9b4a9008d341a5d814f28fc
2023-02-08 02:58:32 +00:00
Solomon
807be5f2bf [Gardening] Eliminate Boolean Blindness in soEnableTelemetry option
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7812
GitOrigin-RevId: 0b25624cb600a6d9976737b524c8cd60d160f174
2023-02-08 01:47:56 +00:00
Solomon
caad80ab7f [Gardening] Eliminate boolean blindness in so soWsReadCookie
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7813
GitOrigin-RevId: 6aae2eda1765e302a08c676988b6a7f9432e9977
2023-02-08 00:57:41 +00:00
Stefano Magni
02018c8d8f console: Fix ActionEditor dropdown
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7867
GitOrigin-RevId: 7e7168e1b6acaf0df17b89e6d456541a73390628
2023-02-07 21:53:48 +00:00
paritosh-08
a43feb7182 docs: dynamic connection template
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7404
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 2a105ef55943ee98e009dca023102194d903f16c
2023-02-07 21:19:14 +00:00
Brandon Simmons
245c0fed22 ci: don't block merge queue when awaiting review, after #7011
Alternative to #7866
https://hasurahq.slack.com/archives/C036BBQSSTC/p1675768805385689

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7869
GitOrigin-RevId: 858f0e26e1c15a12132e6509c00fa6ea93d4c1b8
2023-02-07 20:31:27 +00:00
Marion Schleifer
e4ffaae7e7 docs: update opentelemetry docs
## Description

Had a chat with @awjchen regarding the Open Telemetry docs and made some changes based on the feedback.

@awjchen the only actual changes I made are [here](https://github.com/hasura/graphql-engine-mono/pull/7811/files#diff-44f4d6b95a66fa66a828547d29d67d46a020f63fe8d9c5f76d44c021c6f4ef1cR135) and [here](https://github.com/hasura/graphql-engine-mono/pull/7811/files#diff-44f4d6b95a66fa66a828547d29d67d46a020f63fe8d9c5f76d44c021c6f4ef1cL148). The rest are line breaks that come with prettier.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7811
GitOrigin-RevId: 6f139c15756ea2a3eb38c6be08addf0e9947335a
2023-02-07 20:27:05 +00:00
Nicolas Beaussart
90c1b21c21 ci: ignore two file changes for chromatic ui review
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7859
GitOrigin-RevId: 9fdcaf936c2fae7f64910de2003d31ac421e25c9
2023-02-07 20:05:25 +00:00
Stefano Magni
2516a6a028 frontend: Create a Cypress project for the EE Console
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7825
GitOrigin-RevId: 74e6009ae4fd3915c3c705194c8221dada4e21a6
2023-02-07 16:16:20 +00:00
pranshi06
12e276cbc6 server: fix nullable field omitted from action response when omitted in the webhook response
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7795
GitOrigin-RevId: d0c3dc7e092af3b8dc8ad18a97462d0fea4e74f3
2023-02-07 15:34:07 +00:00
Stefano Magni
d7cba83b16 frontend: Remove @cypress/snapshot in favour of cypress-plugin-snapshots
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7851
GitOrigin-RevId: 47bb9202550d620cc9cf039c827df1d63a8bfffd
2023-02-07 14:08:20 +00:00
Rishichandra Wawhal
badff1c99e console: wrap one-click-deployment clickables in analytics component
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7852
GitOrigin-RevId: 68bdaf551fde8cb7eefcb6b99d3fa4d08b2dff0d
2023-02-07 13:32:53 +00:00
Erik Magnusson
a7acd22b4c remove unnecessary tooltip and remove usage of old tooltop components
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7855
GitOrigin-RevId: 00cc343478fe742bc2f6c81e6fd3f36175708b54
2023-02-07 12:55:51 +00:00
Rakesh Emmadi
e6c5a9505b server: log when cron triggers are fetched from database for generating events
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7725
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 8dd2b07c769392e057400c5e60e40e7fc56ac26f
2023-02-07 12:23:42 +00:00
Auke Booij
36a9de5215 server: reintroduce Content-Type header for errors
Fix regression introduced by hasura/graphql-engine-mono#7444.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7827
GitOrigin-RevId: 468f2a53f44b732c09f09ca71a3a2c4b38e4e360
2023-02-07 11:27:28 +00:00
Vishnu Bharathi
5f9e70a527 ci: tag release v2.18.0
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7853
GitOrigin-RevId: 02d56a41be3a521fdaba3b959f9bba1969ad72b2
2023-02-07 10:11:24 +00:00
Luca Restagno
d2cd96820c console: fix suggested relationships name generation
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7805
GitOrigin-RevId: 49565456863c5120043a441d46eee6e6540f802e
2023-02-07 09:41:36 +00:00
Aaysha
1add19e2a8 Documentation for One Click Deploy to Hasura
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7499
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: Praveen Durairaju <14110316+praveenweb@users.noreply.github.com>
GitOrigin-RevId: 3406f6befa84b0f63e51c829b86d2fe6333f9ca2
2023-02-07 08:36:07 +00:00
Rikin Kachhia
d00c2051d3 console: one-click-deploy load sample query and copy changes
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7829
Co-authored-by: Rishichandra Wawhal <27274869+wawhal@users.noreply.github.com>
GitOrigin-RevId: 4625d7297a76b44e48c4fad5e54f267bde59b44e
2023-02-07 08:25:06 +00:00
Nicolas Beaussart
2f4104dfb7 console: fix bootstrap dropdown button not working as intended
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7837
GitOrigin-RevId: fb4e895dc89e4b8575ad7a26173acc6e400d5438
2023-02-07 07:47:04 +00:00
Daniele Cammareri
aee0f7a766 console: add formatting to action sdl
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7835
GitOrigin-RevId: e4ce96664c218a6a08124102733f7c79707fbb69
2023-02-07 06:46:17 +00:00