Commit Graph

5009 Commits

Author SHA1 Message Date
nevermore
cc6c026ca9 console: add Hasura familiarity survey component
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5829
Co-authored-by: Abhijeet Khangarot <26903230+abhi40308@users.noreply.github.com>
GitOrigin-RevId: ca2ebd3c3ab15f9b3e75497517f6c0d11c8440b1
2022-09-12 15:31:48 +00:00
Daniel Harvey
00b1acaf38 tests: JSON and JSONB hspec tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5721
GitOrigin-RevId: dde515a364566aa8d517923281ea670a8decbdd9
2022-09-12 14:17:19 +00:00
ananya-2410
a5c6a5b64a ci: tag release v2.11.2 and v2.12.0
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5831
GitOrigin-RevId: 8aedf377bf6f80bd7df14b7da9dc52c845a3a844
2022-09-12 07:19:23 +00:00
Vijay Prasanna
465e669b30 fix (console): list gdc sources under the "Data Manager" table
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5784
GitOrigin-RevId: 6630515755d8fdcada39594c8063988873e23950
2022-09-12 06:17:12 +00:00
Tom Harding
70515d94c7 Extract Hasura.Prelude from src-lib
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5776
GitOrigin-RevId: 0df263a4d800e694e68e31c189c360c88cf48abc
2022-09-09 13:58:48 +00:00
Jesse Hallett
977c624c9e server: prune health check from codecs for backends that don't support it
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5822
GitOrigin-RevId: 637a8c668299409385f340d62fc6a84df5c4aa0f
2022-09-09 13:07:33 +00:00
paritosh-08
d6970173c1 server, pro: event trigger auto cleanup (increment 1)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5612
Co-authored-by: pranshi06 <85474619+pranshi06@users.noreply.github.com>
Co-authored-by: Puru Gupta <32328846+purugupta99@users.noreply.github.com>
Co-authored-by: Karthikeyan Chinnakonda <15602904+codingkarthik@users.noreply.github.com>
GitOrigin-RevId: 6ce69ebb555e49439ae2b01fe42e39415ac53966
2022-09-09 08:28:31 +00:00
Rob Dominguez
2654a1b4f4 Docs: remove experimental-feature note for streaming subs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5779
GitOrigin-RevId: 56892828b29addfe1c26583c2b811b0becbfd922
2022-09-09 07:17:44 +00:00
Samir Talwar
3e6013ddd2 server/tests-py: Run tests locally in the same way as CI.
This allows a developer, through Docker, to run the Python integration tests in pretty much exactly the same way as CI does.

Allowing us to more readily diagnose issues locally.

I'm hoping this is temporary and we won't need it for too long, but I have found it invaluable over the last few days so I would like to share it.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5818
GitOrigin-RevId: 18876fbbcbe7c5492afdf54d96af45ab2c519b77
2022-09-09 05:03:23 +00:00
Samir Talwar
f48c882521 server: Share tests between CircularT and MemoizeT.
This abstracts `CircularT`'s test cases to work against "any" memoizer, and then runs them against `MemoizeT` as well.

Surprisingly (or not), this works without issue; `MemoizeT` passes all tests with a couple of extra instances.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5780
GitOrigin-RevId: 461880caf9220dc3f52d622a22e8b8bcd594e404
2022-09-08 19:38:49 +00:00
Auke Booij
c5d2b9bb18 Move parallelization from buildSchemaCacheRule to buildGQLContext
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5819
GitOrigin-RevId: bed79c598e5576f900e64419054b9b0882c605dd
2022-09-08 18:04:49 +00:00
Philip Lykke Carlsen
e59adf86ff refactor(tests): Expose more Parser types in Hasura.GraphQL.Schema.Parser
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5684
GitOrigin-RevId: b23f26b19e25c88e6f0baab081d0674565789797
2022-09-08 13:57:18 +00:00
Erik Magnusson
ff65de1df4 console: fixed checkbox logic for other types than select on permissions pages
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5794
GitOrigin-RevId: 4b214df3856e0320d0c2b0eda0a44a78ff9bbab5
2022-09-08 11:35:06 +00:00
Erik Magnusson
0af8514198 console: fixed missaligned tooltips on permissions page
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5793
GitOrigin-RevId: 4d3ca362adff41a96c0c2596972e3d6a9c012703
2022-09-08 10:36:25 +00:00
Varun Choudhary
e4f8c3215b console: develop operation modal window using hooks to create add/edit operation
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5748
Co-authored-by: Daniele Cammareri <5709409+dancamma@users.noreply.github.com>
GitOrigin-RevId: ad2ce5954ec71f336615046e86b1b157b165c587
2022-09-08 10:07:49 +00:00
Luca Restagno
9d61224d44 console: fix is_generated column handling
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5774
Co-authored-by: Erik Magnusson <32518962+ejkkan@users.noreply.github.com>
GitOrigin-RevId: 50d0550599f79237316777481ce9768a52ea6b4d
2022-09-08 09:21:50 +00:00
Rob Dominguez
0d2a09d841 Docs: update wget and curl for ee from beta to stable
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5801
GitOrigin-RevId: f234289c12e284e8b7bb39301850eb2bc577df12
2022-09-08 08:52:01 +00:00
Luca Restagno
527fc826e6 console: remove the interaction tests for FiltersSection
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5811
GitOrigin-RevId: 59e2e483cee5eb1273d4251c01f76552d289de4f
2022-09-08 08:41:50 +00:00
Sheila Babadi
e1b1bd0fd4 docs: add description of environment name project setting
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5807
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: fb52354fa37e1d1ac77dbbcc30e0947e7cb2752e
2022-09-08 07:53:00 +00:00
Samir Talwar
880f165b81 Correct the names and references of various DC SQLite make targets.
`spawn-dc-sqlite-agent` was incorrectly named, and the `start-dc-sqlite-agent` target was missing. In addition, we usually only make the `start-xyz` target public in `make help`, and so only that needs a comment.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5804
GitOrigin-RevId: 8064ce148d004ef73dbd8570ef30435423ede0a1
2022-09-08 07:48:42 +00:00
Samir Talwar
8d7c089273 server/tests-py: Start some node.js test services on random ports.
Where possible, we start the services on random ports, to avoid
port conflicts when parallelizing tests in the future.

When this isn't possible, we explicitly state the port, and wait for the
service to start. This is typically because the GraphQL Engine has already
started with knowledge of the relevant service passed in through an
environment variable.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5542
GitOrigin-RevId: b51a095b8710e3ff20d1edb13aa576c5272a5565
2022-09-07 16:26:10 +00:00
Daniel Harvey
50750e0aa9 tests: log in a better place so we don't miss things
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5763
GitOrigin-RevId: 5e3c0be1555596b90c88bbe4c29f88d14552efea
2022-09-07 15:41:28 +00:00
Daniel Harvey
8c8dc7a52f tests: add CockroachDB hspec tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5789
Co-authored-by: Tom Harding <6302310+i-am-tom@users.noreply.github.com>
GitOrigin-RevId: 870005475c289634cc2740bc375794267b45da1f
2022-09-07 15:12:03 +00:00
Samir Talwar
1b20bb55b5 Create a Docker image specifically for running the Python tests.
This separates out the dependencies from the server builder.

I am using Python 3.9 as it has improved support for type annotations, which I would like to use.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5761
GitOrigin-RevId: d57b4a5ace050861e516dd79a4a38ff4844d4093
2022-09-07 14:29:42 +00:00
Philip Lykke Carlsen
d43a30e8fc feat(tests): Introduce AggregationPredicatesSpec
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5686
GitOrigin-RevId: 85b39ad569180929e5620c45bf9a98ef6ee99d42
2022-09-07 12:10:52 +00:00
Philip Lykke Carlsen
8bc34e12e3 refactor(tests): Remove use of unsafeCoerce
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5682
GitOrigin-RevId: 78ac1482977f427148e7675e45ff9c515db02b68
2022-09-07 11:22:14 +00:00
Daniel Harvey
bf91655c30 tests: allow skipping test suites using a Fixture option
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5773
GitOrigin-RevId: 4ff0f18e96313ce5c0ceb5a284e382a70ed0b9b4
2022-09-07 09:17:22 +00:00
Daniel Harvey
7d86a5d231 tests: use newest CockroachDB image in docker-compose.yml
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5764
GitOrigin-RevId: 36e3043c80bbda09c69e9b34ef14c64993d89662
2022-09-07 06:17:03 +00:00
Lyndon Maydwell
cd6fe41b99 SQLite Data Connectors HSpec Tests - GDW-183
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5731
GitOrigin-RevId: 0af22a85bd6b1cb8888562e05cde640047e56b41
2022-09-07 03:43:32 +00:00
kodiakhq[bot]
36860c8fb2 ci/benchmarks: fix division-by-zero in report generation, after e09406170e1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5775
GitOrigin-RevId: 5cd641f23ffe1929c47568a04746ef507c8c5874
2022-09-06 20:29:22 +00:00
Antoine Leblanc
512a4dbb92 Use a different reader context for sources and remote schemas with new SchemaT monad.
### Description

This PR changes all the schema code to operate in a specific `SchemaT` monad, rather than in an arbitrary `m` monad. `SchemaT` is intended to be used opaquely with `runSourceSchema` and `runRemoteSchema`. The main goal of this is to allow a different reader context per part of the schema: this PR also minimizes the contexts. This means that we no longer require `SchemaOptions` when building remote schemas' schema, and this PR therefore removes a lot of dummy / placeholder values accordingly.

### Performance and stacking

This PR has been through several iterations. #5339 was the original version, that accomplished the same thing by stacking readers on top of the stack at every remote relationship boundary. This raised performance concerns, and @0x777 confirmed with an ad-hoc test that in some extreme cases we could see up to a 10% performance impact. This version, while more verbose, allows us to unstack / re-stack the readers, and avoid that problem. #5517 adds a new benchmark set to be able to automatically measure this on every PR.

### Remaining work

- [x] a comment (or perhaps even a Note?) should be added to `SchemaT`
- [x] we probably want for #5517 to be merged first so that we can confirm the lack of performance penalty

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5458
GitOrigin-RevId: e06b83d90da475f745b838f1fd8f8b4d9d3f4b10
2022-09-06 16:49:23 +00:00
Lyndon Maydwell
77789e303f Kriti Documentation
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5230
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: dea3876b74f822ffe080933c6b9814f544fc968d
2022-09-06 15:47:18 +00:00
Daniele Cammareri
af08d80b49 console: add allow list management hooks
## Description 🔖

This PR add 2 hooks required for the new allow list manager

- useAddCollectionToAllowList
- useRemoveCollectionFromAllowList

and integrate them into the QueryCollectionHeader component.

I also moved QueryCollectionHeader component under QueryCollections folder

## Review Setup 💻

- [ ] Run Storybook

## Review checklist. 📋

- [ ] Check useAddToAllowList hook story
- [ ] Check useRemoveFromAllowList hook story
- [ ] Check QueryCollectionHeader story

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5771
GitOrigin-RevId: aaee4a44602a54e374522924d8e3afe7e837d2c7
2022-09-06 15:03:38 +00:00
Auke Booij
6d84d1b78f Improve error reporting by tracking more Metadata origins
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5740
GitOrigin-RevId: 555de02a370b1dfa9cf5e903bb5c3f4b4c3e8465
2022-09-06 14:19:48 +00:00
hasura-bot
432c481c9c console: allow editing comments on views (fix #8846)
GITHUB_PR_NUMBER: 8847
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8847

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5625
Co-authored-by: Gordan Nekić <48327736+gnekich@users.noreply.github.com>
GitOrigin-RevId: e54b3024533dab51231e2a9ac578c115d4a21dcb
2022-09-06 14:19:40 +00:00
Daniel Harvey
ff25d27ab1 tooling: bump .nvmrc version to 16
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5765
GitOrigin-RevId: ef7c490fb802dcf183111e9d9664c1ee558b03fb
2022-09-06 11:23:56 +00:00
Praveen Durairaju
b0a79c05cf architecture: add streaming subscriptions
>

## Description ✍️
This PR adds the architecture deep dive of streaming subscriptions and benchmarks for up to 1M active subscriptions.

### Kodiak commit message
Information used by [Kodiak bot](https://kodiakhq.com/) while merging this PR.

#### Commit title
architecture: add streaming subscriptions

#### Commit body
(Append below if you want to add something to the commit body)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5576
Co-authored-by: Tanmai Gopal <131160+coco98@users.noreply.github.com>
GitOrigin-RevId: 72c37f3e33a4483dcd12a6c1d7830a8c62d6185f
2022-09-06 10:54:35 +00:00
Erik Magnusson
338ad4ed9a console: create new DataGrid component to replace the current Redux dependent one
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5727
Co-authored-by: Luca Restagno <59067245+lucarestagno@users.noreply.github.com>
GitOrigin-RevId: 8cfb75fd3b2f85e7534c0daa60e72387d40f5dd1
2022-09-06 10:01:07 +00:00
Daniele Cammareri
90b5334535 console: add query operations list
## Description 🔖

[VIDEO](https://www.loom.com/share/0c264d45af364708a98f4f68f025db96)

[JIRA TICKET](https://hasurahq.atlassian.net/browse/GS-78?atlOrigin=eyJpIjoiMDM5YTZhZDA0MTViNDhjMGI4MjlkY2M3OTAwMjZiN2EiLCJwIjoiaiJ9)

This PR add the component with the list of operations of a query collection.

![image](https://user-images.githubusercontent.com/5709409/188416295-cada64ca-dfd8-4e77-82ef-1736da810146.png)

Some features are missing because they will be added in the console integration
- the edit modal (developed in this [PR](https://hasurahq.atlassian.net/browse/GS-78?atlOrigin=eyJpIjoiMDE4MzQ2ODExOGE0NDk3Y2E3ZTJhNGE0MTYwYmZhNWEiLCJwIjoiaiJ9)
- the global success and error notifications (for this PR I've put some TODO comments)

## Review Setup 💻

- [ ] use the component in storybook, as shown in the video

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5754
GitOrigin-RevId: c0984e6e5fea0ca0f0caeffa0d6da59eed2d5406
2022-09-06 07:50:34 +00:00
David Overton
602025cc22 Fix DateTimes in expected test output
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5762
GitOrigin-RevId: 6a912a01b22604f97f966dd8a8777bf864bdc88b
2022-09-06 07:00:33 +00:00
Vijay Prasanna
57471026c7 fix (console): make the new tree nav compatible with GDC tables
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5716
Co-authored-by: Matt Hardman <28978422+mattshardman@users.noreply.github.com>
GitOrigin-RevId: 66e3062dedc05a15e7d46f65e9f901cc6094de0d
2022-09-06 05:50:30 +00:00
David Overton
f4419236ed Gdc capabilities scalar types - GDW-87
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5597
GitOrigin-RevId: 4f561bf476266955d7b1d3dbca4d406a97bf8b34
2022-09-06 04:26:03 +00:00
Philip Lykke Carlsen
bb2c704c6d refactor(tests): Rename monad types
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5683
GitOrigin-RevId: 3d0a3f327eb069fdeb5339981dd5022d8f48699a
2022-09-05 16:29:20 +00:00
Rikin Kachhia
338d96dbd6 docs: fix formatting issues
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5758
GitOrigin-RevId: aef11aa94a1af559d1d68aa85b521990507ce9a3
2022-09-05 15:44:47 +00:00
Nicolas Beaussart
ad18266a3c frontend: dev server config
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5668
Co-authored-by: Nicolas Inchauspe <710410+nicoinch@users.noreply.github.com>
GitOrigin-RevId: c4915e445be9d95bcb4c76679f534ea80d52e3d3
2022-09-05 15:37:05 +00:00
Daniel Harvey
4964ddc6e9 server: skip SOH header in FromCol EncJSON instance
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5710
GitOrigin-RevId: 6065c5b378cd458ad7ea05ce5ca5ff3cee5b13a7
2022-09-05 15:04:32 +00:00
Vijay Prasanna
c90cccf83e refactor (console): move new metadata types to MetadataAPI library
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5666
GitOrigin-RevId: 48310de6ab6bbf9acde6340a627078f951245a8a
2022-09-05 13:32:45 +00:00
Tom Harding
136349a70a Tidy up simple object query tests, match fixtures to docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5752
GitOrigin-RevId: 2e308504a188745ad5714d60d0fe449a65d6f950
2022-09-05 11:09:38 +00:00
Tom Harding
2ac1680817 Update primary key hspec tests to match the docs, add failure cases
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5753
GitOrigin-RevId: ac3070b6a5dbfecdabead209a5f4ee7daa948066
2022-09-05 10:37:09 +00:00
Samir Talwar
52a77a0bfe Add a missing changelog entry for error message changes to v2.10.0.
## Changelog

This is the only change; please take a look.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5713
GitOrigin-RevId: fbc527ebc8dc78e98841c9b67e90f9e7f2102abb
2022-09-05 09:41:06 +00:00