Commit Graph

4992 Commits

Author SHA1 Message Date
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
Samir Talwar
6565c1430f Upgrade graphql-parser-hs.
This removes string interpolation from quasiquoted literals. We only use
this in one place and it's totally unnecessary.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5750
GitOrigin-RevId: 3493a11db6347332e7e3721a7dca616947505be6
2022-09-05 09:14:36 +00:00
Daniel Chambers
97b0e4c591 Move Typescript types for Data Connector agent into their own package
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5596
GitOrigin-RevId: c5da90eb4e61a9d9a5ddc34f7bfbaa2d00c698b8
2022-09-05 06:09:23 +00:00
David Overton
0b7353657c Push capabilities resolution code into BackendMetadata type class
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5738
GitOrigin-RevId: 5c8e8232b8db67584d3f0a03987b97f0cce53a97
2022-09-05 02:44:10 +00:00
Solomon
36ddb267df Data Connectors: List Capabilties Metadata Endpoint
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5723
GitOrigin-RevId: 2dcd3c102fd41073449ae719ab6fa39bfd76bba5
2022-09-02 17:51:19 +00:00
Rikin Kachhia
4dc1b796f0 console: allow resizing graphiql in api explorer (fix #8880)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5720
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 68aa04af4411b0a5f1a1d1211f0a1111d88068c0
2022-09-02 13:43:18 +00:00
Nicolas Beaussart
25938c68ba console: fix graphiql lint error not showing
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5737
GitOrigin-RevId: d9cc4613133a888189149d4f36a25e13a6ec042c
2022-09-02 12:32:10 +00:00
Daniele Cammareri
bcd5851164 console: improve dropdown api
## Description 🔖

This PR improves the DropdownButton API to make it more generic.

- It has been renamed Dropdown.
- The children are rendered as the trigger. You can now use other elements than a Button
- an option prop has been added to control all the radix ui element
- a group class name has been added to the trigger so you can style it based on its state, using tailwindcss-radix plugin
- stories of dropdown button as styled in the Hasura design system has been added

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5733
GitOrigin-RevId: 4d292ffcbec93ebae525764431e92b5ed87cb5b5
2022-09-02 10:48:02 +00:00
Sooraj
71de2e0a35 console: add hooks required for operations CRUD
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5670
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
GitOrigin-RevId: f9bf532689fd7fe8df6ca7abbd9d12c2a4c1320c
2022-09-02 10:20:11 +00:00
Nicolas Inchauspe
bd5c0c1f20 Docs/improve storybook docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5680
GitOrigin-RevId: e0cc1686ce489142097ba1efdcb6f2ca8c65a093
2022-09-02 09:13:36 +00:00
awjchen
78cf1d544e server/pro: enable health check on data sources and report via logging and API
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4868
Co-authored-by: Rakesh Emmadi <12475069+rakeshkky@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: b8d43e3f7d977c4bb37b8506ac87ce7bf289d542
2022-09-02 06:34:29 +00:00
Daniele Cammareri
6cf337c0fa console: add tabs component
## Description 🔖

[VIDEO](https://www.loom.com/share/5844476e527f4e1d9ec296bc3a4bb932)

This PR creates a Tabs component that wraps the Radix UI component.

## Solution and Design 🎨

The component accepts all the props of the Radix UI tab root component and a list of items that specify the label and the content of the tabs. The component can be used in a controlled way (e.g., the state of the tab is stored in the URL) or uncontrolled.

For styling radix ui states I've added this library: https://github.com/ecklf/tailwindcss-radix

## Review Setup 💻

Run storybook and look for Tabs component

## Review checklist. 📋

- [ ] stories work
- [ ] doc is clear

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5667
GitOrigin-RevId: 0e73ef1026d6673c3c2dd413b986fa8395abb1f6
2022-09-01 21:25:09 +00:00
Brandon Simmons
6e578f229a server/ci/benchmarks: incorporate ad-hoc queries into benchmark reports
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5704
GitOrigin-RevId: e09406170e1245ceeb3be51f498159f76af4f4bf
2022-09-01 20:48:13 +00:00
Daniele Cammareri
2e83b22591 console: add components to manage query collections
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5658
GitOrigin-RevId: a962f85e53396cd1d2cd64f46b91d3c042641ab3
2022-09-01 18:32:17 +00:00
Brandon Simmons
6ab128a7e3 server/benchmarks: report response body size changes in PR regression comment
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5705
GitOrigin-RevId: 76c355f5ce6872a2bfd6c9b17a766a3c974445db
2022-09-01 17:25:10 +00:00
Vijay Prasanna
6b90b7e1d2 feature (console): UI to manage to DC agents
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5652
Co-authored-by: Matt Hardman <28978422+mattshardman@users.noreply.github.com>
GitOrigin-RevId: f0f21a680401fb339583c2365da8e0ded6a5ce55
2022-09-01 15:23:01 +00:00
hasura-bot
60e62165cd docs: streaming subscription example close #8552
GITHUB_PR_NUMBER: 8706
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8706

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5119
Co-authored-by: skovati <49844593+skovati@users.noreply.github.com>
GitOrigin-RevId: 8554d80e1b316182885d0be5a5d00c184ab8ca10
2022-09-01 14:51:39 +00:00
Sooraj
f1c9bb4679 console: fix monitoring tab visibility across different console runtimes
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5706
GitOrigin-RevId: f5f4f582bb2bedcc6cef6a60ca41287beea40751
2022-09-01 14:26:05 +00:00