Commit Graph

6486 Commits

Author SHA1 Message Date
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
Solomon
7027af5a05 [Gardening] Eliminate Boolean Blindness in soEnableConsole option
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7810
GitOrigin-RevId: 69f84d52e5f61e88b668abb3898344ccfbc0d26d
2023-02-07 05:59:45 +00:00
Julian@Hasura
4062d5f515 console: add clone permissions to GDC permissions tab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7620
Co-authored-by: Julian <843342+okjulian@users.noreply.github.com>
GitOrigin-RevId: 0e94fe8f6dc4233233a3c038c0d48a3f6c4dab50
2023-02-07 05:18:05 +00:00
Daniel Chambers
a5578cb4bd Fix URL paths in Data Connector Datasets readme
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7841
GitOrigin-RevId: 02d8a838d8ff7e18af100ca7191459428ddd016b
2023-02-07 03:53:15 +00:00
Jesse Hallett
2d513ace63 server: codecs for CustomTypes
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7838
GitOrigin-RevId: 09a9be0cee748226321f0cf09401b18c2f31e930
2023-02-07 03:47:35 +00:00
David Overton
98af923df5 MongoDB Data Connector prototype agent
Basic MongoDB agent. This is intended as a starting point for playing with nested documents in a MongoDB back end. Currently supports basic queries with projections, where expressions, limit and offset. No support for joins, aggregates or mutations.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7840
GitOrigin-RevId: 3f03b8416c95acf2b68da1db56cbe36a513a4bde
2023-02-07 02:57:06 +00:00
Daniel Chambers
2e8fc69394 Adds an agent test for ordering by a single column aggregate function
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7820
GitOrigin-RevId: 8455c2ba032173ade474f2744b43d1259f88c9b2
2023-02-06 23:45:56 +00:00
Rob Dominguez
f1091a9aff docs: add cloud standard back to numerous badges
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7834
GitOrigin-RevId: b44417986dea23466056965a5e894e44e9da3a8e
2023-02-06 22:49:17 +00:00
Solomon
d8ff0329a0 Eliminate Template Haskell from Hasura.RQL.Types.Common
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7819
GitOrigin-RevId: bf5d1616a90a771e1c72321b64b38d9c153b0e94
2023-02-06 22:03:02 +00:00
Solomon
bf4e514ebf [Gardening] Remove where clause from mkServeOptions and add haddocks.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7809
GitOrigin-RevId: 3a440eaa397045c95fcff4316ef3c0438a754c7c
2023-02-06 19:15:06 +00:00
Rob Dominguez
f61878cfee docs: restructure server reference page
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6862
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 4278379b9647f018e7aec1c182f349eca090227b
2023-02-06 16:56:35 +00:00
Auke Booij
bc9bafbecf server: delete unused benchmarking code
As far as I know, and the people who touched this, this is dead code.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7830
GitOrigin-RevId: 2530783951af97033545faf65ad282fd9cdbc3b3
2023-02-06 15:11:10 +00:00
Nicolas Inchauspe
825e5206b4 console: fix telemetry notification reappearing
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7781
GitOrigin-RevId: 33c7873f8f9ff950cb7d45adf7b26b352f7fe1ae
2023-02-06 09:30:24 +00:00
Sameer Kolhar
c27dceb1df console: fix issue with Badge component for Check DB Latency on Data Manager
[CPS-737]: https://hasurahq.atlassian.net/browse/CPS-737?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7804
GitOrigin-RevId: b3b90fd3542d95d0560ded43766d57f81b4e3416
2023-02-06 07:59:38 +00:00
Daniel Chambers
7a4bde9652 Added result_type property to SingleColumnAggregate
[GDC-756]: https://hasurahq.atlassian.net/browse/GDC-756?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7793
GitOrigin-RevId: b8201615984a71a9f41bed4195e2435e362cf383
2023-02-06 04:20:17 +00:00
Stefano Magni
1f469b279b frontend: Clear the slow or flaky Console CE E2E tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7779
GitOrigin-RevId: fda5d58c5739f1069fc5bab94f8bbde1961b7e17
2023-02-05 06:53:50 +00:00
Gil Mizrahi
f90373b1ca NaQI - validate against the database - infra and check syntax
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7778
GitOrigin-RevId: c8366ad7261d9c120dc0612bedb96fa5ae59eda3
2023-02-03 16:29:22 +00:00
Rikin Kachhia
4c37b6838c docs: update cloud section position
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7748
GitOrigin-RevId: d810701ebf679a979d5401a260846d800ade71c0
2023-02-03 15:24:21 +00:00
Daniel Harvey
d3d2d967d2 [server/tests] test server health with /healthz endpoint
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7759
GitOrigin-RevId: 952b64b258a0566a8c393f70e8341e8eccb8d7a4
2023-02-03 15:20:42 +00:00
Stefano Magni
03bf7e8c6f console: programmaticallyTraceError logs to the Console too
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7714
GitOrigin-RevId: 7307093f9db4a871a43011705b42c06332c57d18
2023-02-03 14:46:41 +00:00
Samir Talwar
710a33bf45 CI: Run the Python tests in the "new" mode, one HGE per test class.
Part of [NDAT-257](https://hasurahq.atlassian.net/browse/NDAT-257).

This runs the Python tests in parallel, all at once, with each test class spinning up HGE and configuring it appropriately. Once we are confident this works, we can remove most of the old jobs, drastically reducing the number of machines we need to run the Python tests.

For now we are only running on PostgreSQL 15. Once this is merged, we can expand to all supported PostgreSQL versions, and then Citus, MS SQL Server, and BigQuery.

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

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7780
GitOrigin-RevId: 174511fc3e3bcd4ea968e3ade6c867c3aa84096a
2023-02-03 14:09:29 +00:00
Auke Booij
e6db044ecc server: fix some hspec tests
- One test suite wasn't getting picked up due to it not satisfying the [criteria](https://hspec.github.io/hspec-discover.html) for `hspec-discover`
- One test was broken ever since it was introduced in hasura/graphql-engine-mono#5181. This wasn't picked up due to the module not satisfying `hspec-discover`'s criteria until more recently.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7801
GitOrigin-RevId: fd5c31ccf12d6d0c4be0dc7bf99f14d63caccc83
2023-02-03 14:09:19 +00:00
paritosh-08
775bdc8026 server: move event trigger schedule cleanup logic
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7606
Co-authored-by: Krushan Bauva <31391329+krushanbauva@users.noreply.github.com>
GitOrigin-RevId: 95819347aff4e6a86b2bc9acf214222e05dba496
2023-02-03 12:30:00 +00:00
Daniel Harvey
d32e734310 [server] Pass parameters to native queries
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7727
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: ddca3d962c05024913ce6ec4c6b4ea4a0f4a6a8c
2023-02-03 11:16:29 +00:00
Samir Talwar
416f4e8f1e server/api-tests: Port a test for empty roots from the Python tests.
More for practice than anything else.

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

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7760
GitOrigin-RevId: 3af769e704b25e5cc97ab5905b6f5311f731bbce
2023-02-03 10:00:21 +00:00
Solomon
621a346ca7 Simplify SourceKindInfo ToJSON instance
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7787
GitOrigin-RevId: f481c7b3dadbbd9b97655187a486954e0e17ae4f
2023-02-03 01:47:02 +00:00
Antoine Leblanc
e99f9a2f57 Remove MetadataStorageT, clean up error handling.
## Description

This PR removes `MetadataStorageT`, and cleans up all top-level error handling. In short: this PR changes `MonadMetadataStorage` to explicitly return a bunch of `Either QErr a`, instead of relying on the stack providing a `MonadError QErr`. Since we implement that class on the base monad *below any ExceptT*, this removes a lot of very complicated instances that make assumptions about the shape of the stack.

On the back of this, we can remove several layers of ExceptT from the core of the code, including the one in `RunT`, which allows us to remove several instances of `liftEitherM . runExceptT`.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7689
GitOrigin-RevId: 97d600154d690f58c0b93fb4cc2d30fd383fd8b8
2023-02-03 01:05:09 +00:00
Solomon
29a75e36f9 Reorganize Hasura.Prelude module and add haddocks.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7790
GitOrigin-RevId: 9ad68061d58c7d8763fefeba3f3fe9ddd29d443c
2023-02-02 23:38:01 +00:00
Julian@Hasura
40c25057ba Feature: Delete rows hook
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7546
Co-authored-by: Julian <843342+okjulian@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
Co-authored-by: Luca Restagno <59067245+lucarestagno@users.noreply.github.com>
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
Co-authored-by: Nicolas Beaussart <7281023+beaussan@users.noreply.github.com>
GitOrigin-RevId: 9efcea1d9babe9977bb578c73e638a981630aaf7
2023-02-02 20:52:09 +00:00
Sean Park-Ross
8f4ba6c564 Docs: Add snowflake and athena to databases list. DigitalOcean one word
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7767
GitOrigin-RevId: 323ef11e437a569d57f5c488e8db5374c1e22604
2023-02-02 20:04:11 +00:00
Rob Dominguez
05042d33d5 docs: optimize code elements inside tables
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7776
GitOrigin-RevId: eea30d61c6ba04cb1c6b49d6cfaa4c561b21226b
2023-02-02 20:00:42 +00:00
Auke Booij
aeff6e162a server: fix cabal and warnings for arrows related packages
#7730 added `package` stanzas for all our internal Haskell libraries, so that `-Werror` was switched on for all of them. However, #7534 was developed simultaneously, and merged shortly after, so that we missed `package` stanzas for `hasura-incremental` and `arrows-extra`. Then #7761 added one for `hasura-incremental`. This PR fixes one warning for a test suite there, and adds the missing `package` stanza for `arrows-extra`.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7770
GitOrigin-RevId: 5f5c3fb5d4852c88ed2e14a3fa83fe264aec895b
2023-02-02 19:53:13 +00:00
Daniel Harvey
e953efeb40 [ci] test the libraries in server/lib
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7758
Co-authored-by: Tom Harding <6302310+i-am-tom@users.noreply.github.com>
GitOrigin-RevId: 311f6c4a5c629c18a55d75a5d5a74f826078e86d
2023-02-02 17:32:48 +00:00
Nicolas Inchauspe
737071a760 console: fix notifications alignment and spacing
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7769
GitOrigin-RevId: cfa6fb1cf26e5b0287ccc87a02997dc5a78a1719
2023-02-02 16:50:07 +00:00
Tom Harding
64f79daa3f Allow pg_run_sql as well as run_sql to remove some string-bodging
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7465
GitOrigin-RevId: 754866121fbd631273ae00a2305c8ddbba286596
2023-02-02 14:04:52 +00:00
Lyndon Maydwell
9a54849985 Fixing issues with SQLite FKs in Schema and Suggest Relationships API Docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7729
GitOrigin-RevId: 4ae48019ce71f6ceb3f6d06524302bdd11ca1ed4
2023-02-02 11:37:32 +00:00