Commit Graph

5535 Commits

Author SHA1 Message Date
Philip Lykke Carlsen
a4792a6b80 server/tests: Remove unnecessary complexity from Harness
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6700
GitOrigin-RevId: 3130097581b4e9284cd1074a5d74eb5165354eb4
2022-11-03 15:57:54 +00:00
Tom Harding
d823d201b9 CREATE SCHEMA _ IF NOT EXISTS in api-tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6701
Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com>
GitOrigin-RevId: 13ab91a8c4241fb4e60df9e8856bc926afac6be9
2022-11-03 14:54:48 +00:00
Lyndon Maydwell
4db9941b32 Prohibit underscores in dataconnector names [GDC-586]
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6681
GitOrigin-RevId: 5335208fc4c8f0d1b16a45415329ef390a269b4c
2022-11-03 14:00:52 +00:00
Sooraj
278cb94004 console/actions: add tracking events on import types
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6688
GitOrigin-RevId: 6b6c3e74e8ad91f02761691f64a97758d43a1227
2022-11-03 12:32:51 +00:00
Samir Talwar
82d897efda CI: In upgrade+downgrade tests, run the current graphql_server.py.
There doesn't seem to be a good reason to run the release version, and if there's a problem, we can't fix it without making a new release.

This also means we should catch bugs much earlier.

Co-Authored-By: Abby Sassel <3883855+sassela@users.noreply.github.com>

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6678
GitOrigin-RevId: 7b32cd721089dccabc634598b333b94a3933221a
2022-11-03 12:02:45 +00:00
Philip Lykke Carlsen
5b2877bc8f server/tests: Move subscriptions harness to a separate module
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6664
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: f5d7793606a50fb10f871ae757748fe5c21e50c8
2022-11-03 10:58:32 +00:00
Karthikeyan Chinnakonda
d7609233c4 Rename get_event_invocations to get_scheduled_event_invocations
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6513
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
GitOrigin-RevId: 172ba6152ed77b90eeec9183a3fb4c6f177e45b3
2022-11-03 10:23:11 +00:00
Erik Magnusson
a9515cdb68 console: replace redux fetching logic with react query for insert row tab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6644
GitOrigin-RevId: ae7809e702edeafa84075bcad1ba37236bdb1d1a
2022-11-03 09:14:39 +00:00
Erik Magnusson
d17b27e91f fixed button margin handling
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6685
GitOrigin-RevId: ac5c34854966510f1ba0f074893bb4b11cf345e8
2022-11-03 08:43:19 +00:00
Tirumarai Selvan
66b63ac828 document default value for events fetch interval
Same as title

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6686
GitOrigin-RevId: 6c8edaae5d9d005f098d7cded14f991b5c22c881
2022-11-03 08:12:47 +00:00
Mohd Bilal
b44443941f cli: refactor cli to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6662
GitOrigin-RevId: 3b9199ae80c587f8d763df4889f4f81c73ccd3d3
2022-11-03 08:09:07 +00:00
Aravind K P
e982a492d6 cli: port migrate squash and migrate delete to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6548
GitOrigin-RevId: 21771cb44655788be71c61b7ee3b4159341907a1
2022-11-03 07:38:03 +00:00
Nicolas Inchauspe
b0d5238c3b console: globally add missing <!DOCTYPE html>
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6661
GitOrigin-RevId: ee45e493c76ad81569731dcd5468c846ba01cd12
2022-11-03 07:06:06 +00:00
Aravind K P
061f6b96ed cli: port migrate, migrate status to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6547
GitOrigin-RevId: edef43331e06b227484e84a39f4b81b5fdaf1658
2022-11-03 05:56:00 +00:00
awjchen
700d4616cb server: add logging for debugging metadata sync issues
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6657
GitOrigin-RevId: ab7b8015010d20a641606fad8cd1cc8563466d0c
2022-11-02 23:24:23 +00:00
Vijay Prasanna
c930e2a4d1 feature (console): add support for enum type inputs in the OpenApi3 config schema
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6652
Co-authored-by: Matthew Goodwin <49927862+m4ttheweric@users.noreply.github.com>
GitOrigin-RevId: c4410dd220dee0f18989065dc932abdbf8ef167b
2022-11-02 22:05:15 +00:00
Rob Dominguez
1e1592c254 docs: incorporate fixes and reorder cloud-dbs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6673
GitOrigin-RevId: 0eebba2a04f9109734c28c9b5da6d16e00e60ee1
2022-11-02 21:29:44 +00:00
Samir Talwar
342391f39d Upgrade Ormolu to v0.5.
This upgrades the version of Ormolu required by the HGE repository to v0.5.0.1, and reformats all code accordingly.

Ormolu v0.5 reformats code that uses infix operators. This is mostly useful, adding newlines and indentation to make it clear which operators are applied first, but in some cases, it's unpleasant. To make this easier on the eyes, I had to do the following:

* Add a few fixity declarations (search for `infix`)
* Add parentheses to make precedence clear, allowing Ormolu to keep everything on one line
* Rename `relevantEq` to `(==~)` in #6651 and set it to `infix 4`
* Add a few _.ormolu_ files (thanks to @hallettj for helping me get started), mostly for Autodocodec operators that don't have explicit fixity declarations

In general, I think these changes are quite reasonable. They mostly affect indentation.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6675
GitOrigin-RevId: cd47d87f1d089fb0bc9dcbbe7798dbceedcd7d83
2022-11-02 20:55:13 +00:00
Matt Hardman
89f639b40b console: add permissions for GDC to console
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6592
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 67a72f9b76604c50f647113d170e6e1778c9f7b9
2022-11-02 19:55:12 +00:00
Gil Mizrahi
5278e4ed9f update hspec to fix deadlock issue
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6670
GitOrigin-RevId: d045c915ba2e4422f5e338ca60f0bc9232b7a498
2022-11-02 16:39:30 +00:00
Samir Talwar
4c5a00ab71 Update the .gitignore file to reflect the internal one.
As far as I can tell, there's no need to have two .gitignore files. We can just ship the same one.

The OSS .gitignore file was horrendously out of date anyway.

Please take a look at [the current .gitignore file](https://github.com/hasura/graphql-engine-mono/blob/main/.gitignore) to verify you're happy with this change.

(No open-source commit message.)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6628
GitOrigin-RevId: b47d6a8cfa9affe6c06b8945e6861de5546ad53c
2022-11-02 13:28:59 +00:00
Tom Harding
aaf8e9a8c1 Add tests for streaming subscriptions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6650
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: 415f7904b591d2c4e32ec320570d1b8e0bef1719
2022-11-02 13:23:47 +00:00
Gil Mizrahi
60bd73e8d9 add a test for subscriptions with variables
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6653
GitOrigin-RevId: b7d7f7392c50e983183812b270af3516c831d859
2022-11-02 12:47:04 +00:00
Mohd Bilal
24b98e1900 cli: refactor internal/projectmetadata package to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6435
GitOrigin-RevId: d48b0412cb8f7d252018861cbbe65123eddfc412
2022-11-02 12:10:25 +00:00
Daniel Harvey
11ff01f3e9 [server] Fix CockroachDB live queries
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6551
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: e78ce17d3ff5c677360b2927dca04a91e144952e
2022-11-02 11:41:02 +00:00
Mohd Bilal
d63686f8d4 cli: refactor plugins to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6562
GitOrigin-RevId: 8ab6252bd5e3fa716f3c9d546418dfedefd837be
2022-11-02 11:11:54 +00:00
Samir Talwar
dbc027424b Rename relevantEq to (==~) for Ormolu's sake.
Ormolu v0.5 tries to reformat code using operators according to fixity. Unfortunately, it doesn't really understand backticked functions (even when they have an associated `infix` declaration), and so messes up the formatting.

This is probably a bug in Ormolu, but we can work around it by using a symbol operator.

Happy to bikeshed on `==~` (which I am reading as "pretty much equal to"). Please yell at me if you prefer something else.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6651
GitOrigin-RevId: 79af427422194460200b2b48339cdb9ee9b33c33
2022-11-02 10:43:48 +00:00
Stefano Magni
bf551be20f console(platform): Respect the Heap custom events convention
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6520
GitOrigin-RevId: afbf6139fe4bee0e17a90ee1b7a22c8442a75e28
2022-11-02 10:10:40 +00:00
Tom Harding
7df6198b68 Add multiplexed subscription testing
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6637
GitOrigin-RevId: a92b333b88c548ba514e69598a86098d8f6243cc
2022-11-02 09:39:47 +00:00
Marion Schleifer
7b4a7917ce docs: fix typo in query tags docs
[Slack conversation](https://hasurahq.slack.com/archives/C041B2DLHJS/p1667350236988359?thread_ts=1667347400.158339&cid=C041B2DLHJS)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6658
GitOrigin-RevId: 2861aae877d125150e92a9f32d370ed2b1894c10
2022-11-02 08:02:19 +00:00
Mohd Bilal
52f21e7261 cli: refactor update package to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6524
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 919262c2618a1319441ce3730802c06bd5bd450a
2022-11-02 07:20:53 +00:00
Varun Choudhary
bb0b95dd77 console: fix gql try it button
This PR fix the issue with `GraphIQL Try` button. The issue is when we create a new schema other then public and try the gql operation using the `GraphIQL Try` button, it give the query and all but the query field is just only table name not the schemaName_table name so it will give me an error saying that query_field doesn’t exist

[Slack thread](https://hasurahq.slack.com/archives/CKATHV1J7/p1667214392972649?thread_ts=1667202504.721889&cid=CKATHV1J7)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6635
GitOrigin-RevId: e1403db0c3e63d88d2380fe1137137329910f990
2022-11-02 06:50:43 +00:00
Mohd Bilal
1538490bdd cli: refactor migrate/database/hasuradb package to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6514
GitOrigin-RevId: c4d83b28d8550f61167b6f4270166b9513f89891
2022-11-02 06:14:46 +00:00
Karthikeyan Chinnakonda
9177335c31 Source catalog migrations minor enhancements
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6531
Co-authored-by: paritosh-08 <85472423+paritosh-08@users.noreply.github.com>
GitOrigin-RevId: 51dd55692f59d6ad0fd54674fb7d3ce00d5d83dd
2022-11-01 22:42:40 +00:00
Solomon
f5c68ee49e Fixes chinook table/column customizations to have consistent casing
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6642
GitOrigin-RevId: 629879fa057c3860aac1c3a83d2dfd199edb44e1
2022-11-01 22:08:59 +00:00
Lyndon Maydwell
4b968b17e0 ConfigSpec Data Connector Agent Test
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6616
GitOrigin-RevId: dd5582cd6b61b7412d931035c043daa5fbb55c71
2022-11-01 21:38:12 +00:00
Daniel Harvey
cc87b25373 [tests] - allow Postgres source DB port to be overwritten in api-tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6646
GitOrigin-RevId: b96a68c5eab1ac33a226d2d89141e0de9eaeff93
2022-11-01 21:05:00 +00:00
Tom Harding
fbcf90d56f Add a test for Distinct queries
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6426
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: 65387489ab0cabe0cb520799821380732ecef3e7
2022-11-01 19:58:46 +00:00
Rob Dominguez
600aaf9358 docs: add sla and update index
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6328
GitOrigin-RevId: 44aad1bee8189092901cd0b7890ab2102ec4ee8e
2022-11-01 18:04:34 +00:00
hasura-bot
d047ecefe2 docs : Updated screenshots in the docs fixes #8998
GITHUB_PR_NUMBER: 9148
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9148

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6500
Co-authored-by: Ayush Bajaj <68808280+BajajAyush@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 85eb4ceb11c5699ae8435740c0232d50ac623c6f
2022-11-01 17:33:34 +00:00
Auke Booij
29b2161402 Add benchmarks for allowlist operations
There are some incremental Metadata API methods that have no good justification for taking so much time to complete. This adds some of them to the CI benchmark suite, so that we can track their performance.

I have a prototype to speed up some of these methods 10x; see hasura/graphql-engine-mono#6613.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6627
GitOrigin-RevId: fecc7f28cae734b4acad68a63cbcdf0a2693d567
2022-11-01 17:28:15 +00:00
Daniel Harvey
4e630170ac [tests] Add Yugabyte to docker compose
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6532
GitOrigin-RevId: 1915c8f073ffb5f97d9e92faf436a8f03f4694b7
2022-11-01 15:19:18 +00:00
Vijay Prasanna
309ede358e fix (console): wrong UI form for editing local relationships
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6645
GitOrigin-RevId: c63fa72340fe345fb1278723ad173059b7d9c540
2022-11-01 12:46:23 +00:00
Samir Talwar
5613edbef9 Upgrade the beta version of CockroachDB used in testing.
The old version has been removed.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6641
GitOrigin-RevId: e74aff038d3f8a59c82905d14d0f244e9dba4476
2022-10-31 23:10:13 +00:00
Vishnu Bharathi
9318cb2533 ci: tag release v2.15.0-beta.1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6639
GitOrigin-RevId: e8b73f1eed61c279bf53b90339dba5f09f0e2d9a
2022-10-31 15:58:31 +00:00
Gil Mizrahi
925db48839 update feature matrix roach distinct
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6631
GitOrigin-RevId: 1b91337c49621a7f3f453a264ad2ed1c8055c648
2022-10-31 15:21:47 +00:00
Stefano Magni
f24ef6ced5 console(fix, plaftorm): Fix the E2E tests lint process
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6550
GitOrigin-RevId: ff31b5990fc1d27e64346289a13e0dadab7883ea
2022-10-31 14:00:51 +00:00
Stefano Magni
41d31fba10 console: Avoid tracing some GraphiQL errors in Sentry
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6603
GitOrigin-RevId: 779a6d31298ec2152d7088b31f02f00002ece226
2022-10-31 13:32:35 +00:00
Varun Choudhary
2bc05c1697 docs: add action response transform
This PR adds docs for the console support of action response transform.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6622
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: 215b6df9fc7e7f27e4cbd9798ba5a97d66b91138
2022-10-31 12:30:05 +00:00
hasura-bot
c92988bcbf Updated Screenshots In Docs (close #8883)
GITHUB_PR_NUMBER: 9087
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9087

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6264
Co-authored-by: sujithkumardola <47243708+Sujithkumardola@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: bccfb25a64237ffab44f89b462fc989577ee396a
2022-10-31 11:59:45 +00:00