Commit Graph

5671 Commits

Author SHA1 Message Date
Daniele Cammareri
bfca6d782d console: add types generator in add new action form
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6092
GitOrigin-RevId: 993de137c99d2af186d8f5088b3db6dfcb46a1e1
2022-10-04 18:44:26 +00:00
Jigyasu Arya
bf991be955 community: update streaming-subscriptions-chat ui
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6082
Co-authored-by: arjunyel <11153289+arjunyel@users.noreply.github.com>
Co-authored-by: Praveen Durairaju <14110316+praveenweb@users.noreply.github.com>
GitOrigin-RevId: 48a02077900571686529c52e835569ad9dbc6b1c
2022-10-04 14:16:56 +00:00
Sooraj
31c94f3180 console: Hide cumulative max connections
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6182
GitOrigin-RevId: 3cd58995ed418f6fdf9e09747b382f717f7ecfae
2022-10-04 13:26:53 +00:00
Varun Choudhary
761bcf6883 console: show event trigger invocation logs if only event logs are cleaned
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6169
GitOrigin-RevId: e89e798bcb9a754ddef258fc58e2ad35046e1141
2022-10-04 12:52:17 +00:00
Samir Talwar
740341382f CLI: Upgrade Dockertest to try and fix the build on CI.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6184
GitOrigin-RevId: 796f400fd45a58a5a81212e04a0730c53f04899a
2022-10-04 12:06:32 +00:00
Samir Talwar
64c40b9a95 CI: Run the "server hpack" check on main and invalidate the cache properly.
We seem to be rebuilding hpack on every PR. I'm hoping this will allow PRs to share a cache.

I have also changed the cache key to include the entirety of _server/VERSIONS.json_, and added the GHC version there, to make sure it's properly invalidated.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6142
GitOrigin-RevId: fc61a26ad721f59f52687913f6978902f4c2ca0a
2022-10-04 09:01:20 +00:00
Tom Harding
f05f746b94 Extract the test harness from the Hspec tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6095
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: 51693f7324e62e201a2bdc701255cf6c730745e2
2022-10-04 08:31:26 +00:00
Auke Booij
05b3a64e8f Clean up Hasura.Prelude a bit
- Remove `onJust` in favor of the more general `for_`
- Remove `withJust` which was used only once
- Remove `hashNub` in favor of `Ord`-based `uniques`
- Simplify some of the implementations in `Hasura.Prelude`
- Add `hlint` hint from `maybe True` to `all`, and `maybe False` to `any`

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6173
GitOrigin-RevId: 2c6ebbe2d04f60071d2a53a2d43c6d62dbc4b84e
2022-10-03 21:50:53 +00:00
Auke Booij
6602ad44b1 Print the definitions of the types that are conflicting
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6139
GitOrigin-RevId: 1ab0eecb0f75fb57534fd39add9bfde5041c090e
2022-10-03 21:13:18 +00:00
Auke Booij
3efabe99b3 Memoize column parsers (within roles)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6036
GitOrigin-RevId: 225698f6db02b16599d9f157c9fe4c03b16fb71b
2022-10-03 20:11:44 +00:00
Abhijeet Khangarot
52873dba95 console: add reload metadata call to useInstallMetadata hook
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6168
GitOrigin-RevId: f8f72ab47898594d6aa8327d44215c760756a160
2022-10-03 14:12:59 +00:00
Samir Talwar
000e9c2f24 CI: Upgrade our CI Docker images to the latest stable Debian + Ubuntu versions
This upgrades our Docker images from various Debian versions (mostly
`buster`, a.k.a. `oldstable`) to `bullseye` (a.k.a. `stable`).

`buster`/`oldstable` is still supported but I'm not sure for how long.

It also upgrades our HGE Docker image Ubuntu 20.04 to Ubuntu 22.04.

This will allow us to provide the latest Microsoft SQL Server Driver,
`msodbcsql18`, which is supported on both x86_64 (amd64) and
aarch64 (arm64).

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5604
GitOrigin-RevId: 385d8670476dd343635a4fbc564a6797c8872127
2022-10-03 13:17:23 +00:00
Varun Choudhary
1635ddd607 console: fix UI for auto-cleanup event trigger on modify page
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6164
GitOrigin-RevId: c1683c72f487d17e2fc46677b205cde862fe9663
2022-10-03 11:57:11 +00:00
Auke Booij
6515ae8dbe Improve description for table select columns enum type
Before:
```
select Name {unName = "upeopoeklplxfaa"}columns of table "exbiovdrgjqskdr"
```
After:
```
select "upeopoeklplxfaa" columns of table "exbiovdrgjqskdr"
```

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6143
GitOrigin-RevId: 80a4075057c6d7361a000cb5c1e9b7a166a4f125
2022-10-03 11:00:10 +00:00
Daniele Cammareri
4342151099 console: fix local object relationship deletion
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6147
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
GitOrigin-RevId: 2995cf3fabf651f40b8db50dfc93f25b42f02944
2022-10-03 10:25:47 +00:00
Nicolas Inchauspe
f4ec8ed1f1 console: rollback remote schema permission edition buttons migration
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6127
GitOrigin-RevId: f290daa147715918df194dc94cb1132aa50671b1
2022-10-03 08:13:36 +00:00
hasura-bot
4d462b7bbc docs: Fix minor typo
GITHUB_PR_NUMBER: 9049
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9049

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6160
Co-authored-by: Matt Dailis <1189602+mattdailis@users.noreply.github.com>
GitOrigin-RevId: fd2ec7ca7b59d2c8964d372e4a61695aac5a4455
2022-10-02 10:50:08 +00:00
Auke Booij
b03ed983f1 Remove spaces before colons in error messages and descriptions
This PR is the result of running the following commands:
```bash
$ git grep -l '".* : "' -- '*.hs' | xargs sed -i -E 's/(".*) : "/\1: "/'
$ scripts/dev.sh test --integration --accept
```

Also manually fixed a few tests and docs

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6148
GitOrigin-RevId: cf8b87605d41d9ce86613a41ac5fd18691f5a641
2022-10-01 14:48:58 +00:00
Brandon Simmons
98a9c5af79 server: remove default +RTS -qn2 setting
We notice significant improvements to max GC pause time, for huge schema (both on 8.10 and 9.2)

This was added when we were on ghc-8.6.5. The referenced issues (from old oss repo) seem irrelevant or don't have useful information afaict

re. https://hasurahq.atlassian.net/browse/SRE-10
https://hasurahq.atlassian.net/browse/SRE-129

-----

**EDIT**: old discussion https://hasurahq.slack.com/archives/CKFUG6RCH/p1576518775017100

It sounds as though if the `replace_metadata` benchmark doesn't regress then we're okay

**EDIT**: Ooh nice, replace_metadata is much faster across the benchmark sets (see "both compared" details)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6133
GitOrigin-RevId: c1e2292f29a52584062dfebf2dd676118fcd978f
2022-09-30 20:11:54 +00:00
Samir Talwar
b52dc90663 Nix: Get the Nix shell working on macOS/aarch64.
Improvements to the Nix configuration so that macOS is supported.

Microsoft SQL Server is still not supported (yet; I have something in mind there), but the rest works. You can still use Homebrew to install the SQL Server drivers.

I had to make the following changes:

* I updated nixpkgs, because it's been a while.

* I made `ODBCINSTINI` optional so that it's not loaded on macOS, as it depends on `msodbcsql17`, which is broken on macOS.

* I upgraded OpenSSL.

* I set `DYLD_LIBRARY_PATH` on macOS so GHC finds OpenSSL; otherwise, it uses the wrong version of `libcrypto`, and fails with a fun error:

  > WARNING: ghc is loading libcrypto in an unsafe way

* I patched GHC to fix compilation on macOS (copied from https://github.com/NixOS/nixpkgs/pull/149942).

To test this out, you can run `nix develop` (or install [direnv][] and add `use flake` to _.envrc.local_), and then try building HGE in the shell provided.

Fair warning: GHC needs to be built, and takes _aaages_ the first time. If this becomes useful to others, we can set up a shared cache.

[direnv]: https://direnv.net/

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5989
GitOrigin-RevId: 7130738d47709c37778b31c134061758ce23e959
2022-09-30 19:17:14 +00:00
nevermore
c46a50d950 console: query auto population and usage
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6107
Co-authored-by: Rishichandra Wawhal <27274869+wawhal@users.noreply.github.com>
Co-authored-by: Abhijeet Khangarot <26903230+abhi40308@users.noreply.github.com>
GitOrigin-RevId: 1a6761de0db9f4ece8a26c9af54178c7f2461943
2022-09-30 16:34:05 +00:00
Sean Park-Ross
f7183302f5 Docs: New Getting Started > How it Works page (WIP)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5251
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: aceb6dcae6d0f10edc051e2f25073031826934ac
2022-09-30 14:03:35 +00:00
Rishichandra Wawhal
950e8dbe25 console: add onboarding events to neon integration; misc onboarding changes
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6131
Co-authored-by: Abhijeet Khangarot <26903230+abhi40308@users.noreply.github.com>
GitOrigin-RevId: 88ffbeb8539dee04ac4b83c6db124fa5817c303c
2022-09-30 13:57:14 +00:00
Philip Lykke Carlsen
7739f8e4a0 server: Permit strings for numerical input fields
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5996
GitOrigin-RevId: 2ed36898aa0286618f3dafe3513ef4e01c58aaba
2022-09-30 13:25:57 +00:00
Gil Mizrahi
d1434e4932 run bigquery with retry in test-harness
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6141
GitOrigin-RevId: dce43ed5ce5ffffaa7680f5fa550c7df59c8cae4
2022-09-30 12:49:02 +00:00
nevermore
1a62677583 console: update Neon Banner and adjust button
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6144
Co-authored-by: Abhijeet Khangarot <26903230+abhi40308@users.noreply.github.com>
GitOrigin-RevId: 09fe0008f004977cf0fbcbdb873df791656f82a8
2022-09-30 12:14:37 +00:00
Erik Magnusson
a93eadb244 fixed faulty JSON inserts for cockroach and citus
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6140
GitOrigin-RevId: 611996e19a7fe3f049ed986f0574048ee539043a
2022-09-30 11:47:46 +00:00
Luca Restagno
736a8e25ce console: BigQuery filters not working
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6115
GitOrigin-RevId: 13866a5eaa12fbba33a06e9b38c496e46293d9be
2022-09-30 10:45:32 +00:00
Gil Mizrahi
8c725acac8 fix type name generation for aggregation predicate functions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6138
GitOrigin-RevId: bfb77f97bb30c43bca698a1c405f75abd3eaffb9
2022-09-30 09:36:34 +00:00
hasura-bot
fbdab80216 update-digital-ocean-one-click-droplet-link
GITHUB_PR_NUMBER: 9039
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9039

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6137
Co-authored-by: Jacky Lai <15357659+jackylai87@users.noreply.github.com>
GitOrigin-RevId: caab58b17b65e887b56271f77296138ec4bef3f2
2022-09-30 08:59:34 +00:00
Nicolas Beaussart
dbe350d087 platform(nx): import pro console into nx
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6122
GitOrigin-RevId: 7b36dcb51bf2b7c8dd8f514ceba5878f1c2757ca
2022-09-30 08:35:02 +00:00
Abhijeet Khangarot
265746189e console: enhance onboarding query dialog UI
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6130
Co-authored-by: Rishichandra Wawhal <27274869+wawhal@users.noreply.github.com>
GitOrigin-RevId: 9afeafe5d0e9c86c5bee5139cb3209133d7c6cc2
2022-09-30 07:06:57 +00:00
nevermore
54f7a29345 console: removing the existing onboarding with neon launch
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6091
Co-authored-by: Rishichandra Wawhal <27274869+wawhal@users.noreply.github.com>
Co-authored-by: Abhijeet Khangarot <26903230+abhi40308@users.noreply.github.com>
GitOrigin-RevId: 740ab4545420db754b2ea4d4ae904180b8f51bbe
2022-09-30 06:03:44 +00:00
Rishichandra Wawhal
75aed6f933 console: show template summary in a modal after sample template has been installed in Neon onboarding
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6117
Co-authored-by: Abhijeet Khangarot <26903230+abhi40308@users.noreply.github.com>
GitOrigin-RevId: 68ca37fadbe9ee5e67a066b5c32b23992665773f
2022-09-29 18:36:34 +00:00
Praveen Durairaju
a21c66fcf1 streaming subscriptions architecture: update try it out instructions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6128
GitOrigin-RevId: 7887ef9b95a0c3f002a62a54734c711e5c5cd71e
2022-09-29 17:28:01 +00:00
Samir Talwar
3cb9bab9f1 server/tests-py: Provide the admin secret to the HGE server.
When we run the HGE server inside the test harness, it needs to run with
an admin secret for some tests to make sense. This tags each test that
requires an admin secret with `pytest.mark.admin_secret`, which then
generates a UUID and injects that into both the server and the test case
(if required).

It also simplifies the way the test harness picks up an existing admin
secret, allowing it to use the environment variable instead of requiring
it via a parameter.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6120
GitOrigin-RevId: 55c5b9e8c99bdad9c8304098444ddb9516749a2c
2022-09-29 17:20:07 +00:00
Praveen Durairaju
a5dc3f8440 streaming subscriptions architecture: fix hash tags
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6126
GitOrigin-RevId: 77f8251b53895afefbb7fa889d673539b67dea75
2022-09-29 16:01:16 +00:00
Rob Dominguez
cc015df631 docs: restructure heroku page and add migration links
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6104
GitOrigin-RevId: ed29b5c407b0edb5300455f4996c2a2efd92e51c
2022-09-29 15:55:16 +00:00
Rishichandra Wawhal
2b21e6bb14 console: allow skipping notification display while adding datasource
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6121
GitOrigin-RevId: 3291185ee74502364a0452c8eaf0c9db3e03709e
2022-09-29 15:11:14 +00:00
Tanmai Gopal
e04a82a613 Streaming subscriptions introduction update (#6004)
* Adds updated introduction

* Update streaming-subscriptions.md

* Update streaming-subscriptions.md

* Apply suggestions from code review

* Minor editorial updates and adds links

GitOrigin-RevId: 6727458d2388edc878773093137b1f67a0e52302
2022-09-29 14:41:20 +00:00
Rob Dominguez
0c55bf9b73 docs: add db-migration links to providers
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6103
GitOrigin-RevId: 05ea8eb4a4d40a0fac069996724bb6378c60e3fc
2022-09-29 14:24:26 +00:00
Daniel Harvey
cffd564a7e tests: NoQueriesAvailable fix for CockroachDB
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6071
GitOrigin-RevId: 5dd4261fd6fc84d059f9b2d28f7efe0f140333e9
2022-09-29 13:50:17 +00:00
awjchen
5150920fc2 docs: Correct histogram buckets for event queue time
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6108
GitOrigin-RevId: d8668acc003425c10432dcd45df23e9ddae4e68c
2022-09-29 12:18:24 +00:00
Samir Talwar
60f81023db server/tests-py: Run the auth hook inside the test harness.
This teaches `hge_server` how to run more tests, thanks to `hge_env`.

It also simplifies the logic a bit more.

I have also modified _run.sh_ and _docker-compose.yml_ so we can run multiple test suites, one after another.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6105
GitOrigin-RevId: eff009362eb6bb90c07cedaf96dfe6ec9336ff32
2022-09-29 10:44:03 +00:00
Varun Choudhary
4894154be5 console: UI changes for the Try it feature
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6111
GitOrigin-RevId: e37407c36e4213f664584b552255a3463f78abfb
2022-09-29 10:10:02 +00:00
Rishichandra Wawhal
077e0cf563 console: show onboarding wizard only for cloud console
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6109
GitOrigin-RevId: 231d6fa1ffd4128c6c8d7cf5d46bc2cc9985c368
2022-09-29 07:45:26 +00:00
Naveen Naidu
2d1027c307 pro/multitenant: remove vault token from vault error logs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6096
GitOrigin-RevId: 45924400be3235d1f1643254ed42f5213b018c2e
2022-09-29 06:58:41 +00:00
Abhijeet Khangarot
efac6a718a console: add useInstallTemplate hook
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6077
GitOrigin-RevId: 635477024d968edf37fc4bd1749a320ed9fafe40
2022-09-29 05:12:51 +00:00
Abhijeet Khangarot
0a72b8edd0 console: update root component for onboarding to have cloud console check
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6093
GitOrigin-RevId: ba8ba274d4a7da7745926cefa63fab2989dfaba0
2022-09-29 03:19:48 +00:00
Jesse Hallett
d32dc881e3 server: fix MySQL connection pool settings getting swapped on parse
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6063
GitOrigin-RevId: 90f6f8485aa6a9d073edc56dcba5530f5cf787c4
2022-09-28 21:11:26 +00:00