Commit Graph

7323 Commits

Author SHA1 Message Date
Rob Dominguez
11701bbd71 docs: remove self-hosted ee from regression tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9568
GitOrigin-RevId: 62a0adb7cc65ec06237a36a48d1b92e2d09d1697
2023-06-16 08:00:15 +00:00
Sameer Kolhar
ea6a83dfcb docs: update docs with new telemetry payload for EE edition after #9439
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9570
GitOrigin-RevId: c9c17962f57fbf6b30142964333596ae9dd16fff
2023-06-16 07:56:22 +00:00
Mihir A Khandekar
2fe08b6771 console: improved db latency check error handling
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9563
GitOrigin-RevId: 7e7ea76cb92bd9cd0d6544467dfa01576c63241e
2023-06-16 07:37:45 +00:00
hasura-bot
a5e51ac39a Update reference.mdx - typo in --server-port flag
GITHUB_PR_NUMBER: 9714
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9714

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9569
Co-authored-by: Dmitry Glavchev <3230176+garcia556@users.noreply.github.com>
GitOrigin-RevId: f6eaab364036d812194347f916ab3a17d7d28366
2023-06-15 22:03:34 +00:00
Gil Mizrahi
d1c1a992f5 include the response in the test-harness missing content-type assertion
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9562
GitOrigin-RevId: 2c30c85c2a7d97d2ae604f8f133f1beefbc2cacc
2023-06-15 13:42:04 +00:00
Rob Dominguez
3c277bdbc4 docs: add oss version admonition for nq and lm
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9548
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: 329198406f12a4d0e9a8ec43e520336479486100
2023-06-15 11:57:40 +00:00
Philip Lykke Carlsen
9c2c5f6d91 refac: Handle feature flags per product
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9527
GitOrigin-RevId: 8babe4f4f28f76278d6242148b3c657112ca7745
2023-06-15 11:50:33 +00:00
Daniele Cammareri
6f5cf01f58 chore: add useCreateRestEndpoints hook
## Description

This PR adds a hook to create REST endpoints for a particular table. It uses a different approach than the one used in the "Try it" feature: it uses the introspection schema query results to identify which GraphQL operations correspond to the particular rest operation we want to create. The matching is performed by looking at the comment in the graphql schema. This lets us to quickly identify the correct GraphQL operation even in the presence of schema customizations, but, on the other end, it could not work if the user disabled or changed the default comment in the schema. We evaluated that, since this is a "quick start" feature, the pros outcomes the cons.

## How to test it

- Run Storybook
- Go to the `useCreateQueryCollection ` story
- Click "Create Rest endpoint"
- look at the network tab and the changes in the metadata displayed

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9464
GitOrigin-RevId: fc0d5f26d656a5e7f2c83ecda10703b851a88626
2023-06-15 11:01:14 +00:00
Daniel Harvey
59a967cb8e chore(server): support all BigQuery types in docs page
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9557
GitOrigin-RevId: b567fa72180df5f5e46037d362d5ba3806aa5f72
2023-06-15 10:21:13 +00:00
ananya-2410
2032899e7d ci: tag release v2.28.0-beta.1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9555
GitOrigin-RevId: c8df96ec7bf8e20ab4dfbc86fd2ebc5a6c9e5c52
2023-06-15 08:13:57 +00:00
David Overton
dd34fb85ab Be more lenient about missing values in data connector response
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9532
GitOrigin-RevId: f237a237fe5453338b71ead98fca38bb037676b0
2023-06-15 01:33:26 +00:00
Gil Mizrahi
d7ae3911c4 validate a few properties when adding a new native query or logical model
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9543
GitOrigin-RevId: a6d962c70266799b8da4ef5ce5423f0f17316fed
2023-06-14 20:45:27 +00:00
Tom Harding
7d62a7035f Expand bulk_atomic docs.
[NDAT-721]: https://hasurahq.atlassian.net/browse/NDAT-721?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9520
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 8cd88bfb27a2cc8f632926c7d9fda745a68295ec
2023-06-14 19:35:42 +00:00
nevermore
9e5795ec0f console: schema change alerts UI
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9443
Co-authored-by: Rishichandra Wawhal <27274869+wawhal@users.noreply.github.com>
GitOrigin-RevId: a4eb6bd7922792743fe21bb6a806a5a3e3379ede
2023-06-14 19:30:10 +00:00
Philip Lykke Carlsen
44dd00fc37 fix: Improvements to makefiles
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9547
GitOrigin-RevId: b02e586662b92ad085fa7ff6e19606a93098ed3f
2023-06-14 18:40:00 +00:00
Vijay Prasanna
07cefed779 console: enable logical model & native query features on OSS console (only for postgres)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9540
GitOrigin-RevId: e414ba07d32d457d51bcd6f2179256c4d57234d8
2023-06-14 17:57:08 +00:00
Daniel Harvey
32fd3b4be0 chore(api-tests): enable Jaeger tracing in all Native Database test setups
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9549
GitOrigin-RevId: c3a583bec1d02e23bd340b646ab6c7c1a72f931b
2023-06-14 17:19:06 +00:00
Abhijeet Khangarot
ad5b499d06 frontend: fix neon error on database already exists
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9542
GitOrigin-RevId: ffca4699d298dfc00d711661ab6705881e1fbecf
2023-06-14 16:27:56 +00:00
Gil Mizrahi
1d9fd51779 docs: unmark logical models and native queries as pro-only in postgres
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9546
GitOrigin-RevId: c01652e4af7f19b426324262696a3ab089a81037
2023-06-14 14:35:51 +00:00
Philip Lykke Carlsen
5d76f9cabf Feat: No feature flags for Native Queries and Stored Procedures
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9541
GitOrigin-RevId: 81a33de3a35405c6e45cb5bad160ad00871745eb
2023-06-14 13:21:37 +00:00
Toan Nguyen
0dea43add9 docs: pre-built observability dashboards for Hasura EE
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9524
Co-authored-by: Shahidh K Muhammed <4124733+shahidhk@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: f1df3abefb7f31b311907fd95026be5a167c6011
2023-06-14 12:39:22 +00:00
Varun Choudhary
37db1aa777 console: storybook modal component to show Create RESTified endpoints from a Table
This PR has a storybook Modal component to create a rest endpoint from a table.

## Related Issue

https://hasurahq.atlassian.net/browse/GS-581

## Design

<img width="661" alt="modal" src="https://github.com/hasura/graphql-engine-mono/assets/68095256/958f958d-ae49-4e6b-a81b-d3b22ca9f51c">

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9518
GitOrigin-RevId: f43248b1666d1af909255e1f5af90fa7967b3328
2023-06-14 11:27:06 +00:00
Nicolas Inchauspe
107ad406f8 console: add build task before serve
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9539
GitOrigin-RevId: e3812e29ff0788b60a43c6dab909be1486742066
2023-06-14 10:39:38 +00:00
Daniel Chambers
331e4e3d5d Stop swallowing data connector connection errors during schema cache building
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9533
GitOrigin-RevId: ce81cd4b7449db4f9f62caa98c888641aa27b3c7
2023-06-14 09:45:29 +00:00
Varun Choudhary
c867a47552 console: fix security tab visibility when login with admin secret on EE
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9397
Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com>
GitOrigin-RevId: 686863dfaa31d9c88f6affae93cdf94ccadbbb5f
2023-06-14 06:55:02 +00:00
Varun Choudhary
ea840f9520 console: export button to download open api spec from rest endpoint
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9418
GitOrigin-RevId: a4d81f13cdec4302be45bed2eb21051b5868d2b3
2023-06-14 06:25:51 +00:00
Samir Talwar
e16e70760a server/upgrade-tests: Avoid Docker host networking.
Instead, we update the metadata to point to the correct database URL each time we start HGE.

This means we can run the tests on macOS (and any other environment where Docker runs inside a VM).

I was hoping this would solve the issues we're seeing on CI too, but no such luck.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9528
GitOrigin-RevId: 32cbf65430462b4b0e59f5d644260f7c26c7135c
2023-06-13 22:30:26 +00:00
Matthew Goodwin
86b602edb5 console (bugfix): Native Query detail page does not show associated logical model
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9492
GitOrigin-RevId: 5cf8b6b61dad29d7deaa218cac66b487ac2c8914
2023-06-13 21:30:33 +00:00
Varun Choudhary
35d9c059db console: open api to graphql library
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9420
Co-authored-by: Nicolas Beaussart <7281023+beaussan@users.noreply.github.com>
GitOrigin-RevId: 31d983ae8573c91ac5bf11066770f776941c3a11
2023-06-13 19:58:02 +00:00
Luca Restagno
23057b6d4a Fix tracking of tables created with Run SQL with SQL comments
[DSF-420]: https://hasurahq.atlassian.net/browse/DSF-420?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9442
GitOrigin-RevId: 94fcb5e8a6073f359ee64cd7cbb0fdaf7218782b
2023-06-13 18:52:13 +00:00
Daniel Harvey
d49c476176 chore(postgres-agent): implement dataset API
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9326
GitOrigin-RevId: 55f3e63dfcbc79474800b4a3dac00e0e9c82871f
2023-06-13 18:10:39 +00:00
Gil Mizrahi
e6ee9db169 trim a nq end to remove spaces and then semicolons
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9515
GitOrigin-RevId: 95e93d017ac9757a8088aea3015836b5d8236d66
2023-06-13 17:23:07 +00:00
Mihir A Khandekar
81bb636069 console: add tooltip to db latency badge
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9525
GitOrigin-RevId: e4bd2629946ccb24d609d2643e8032e5d8a1992c
2023-06-13 15:43:40 +00:00
pranshi06
45f2d8f52d server: forward null value to the remote schema when field type is nullable
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9460
Co-authored-by: Auke Booij <164426+abooij@users.noreply.github.com>
GitOrigin-RevId: 9449a679d66817d7bf9f401009a638b57cb58695
2023-06-13 15:04:40 +00:00
hasura-bot
0a418040c3 feat(server): optional args GQL argument
GITHUB_PR_NUMBER: 9497
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9497

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8340
Co-authored-by: Wsevolod <31807671+kraftwerk28@users.noreply.github.com>
Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com>
GitOrigin-RevId: e436b171d88991b814cc6c7b3ed47df75795ac64
2023-06-13 14:16:40 +00:00
Tom Harding
d48493ff24 Move stored procedure validation into the schema cache builder
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9521
GitOrigin-RevId: a7fdfa67271df7477950ed0f2b3a68cdb38cc106
2023-06-13 13:31:06 +00:00
Anon Ray
72ada6b0fc docs: add guide on tuning cache parameters (EE only)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9261
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 96ccf1d54903f62d20dfb7f41f7c3ba112bbbcb3
2023-06-13 11:26:24 +00:00
Gil Mizrahi
9458893bc1 test stored procedures dont work in oss
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9517
GitOrigin-RevId: a33f9a0f0ad2ae82715269256fe997ad98bb1b72
2023-06-13 10:42:33 +00:00
Tom Harding
1ffdf73583 Roll back broken schema caches when using atomic_bulk
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9486
Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
Co-authored-by: Julian <118911427+julian-mayorga@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: Philip Lykke Carlsen <358550+plcplc@users.noreply.github.com>
Co-authored-by: Samir Talwar <47582+SamirTalwar@users.noreply.github.com>
Co-authored-by: Anon Ray <616387+ecthiender@users.noreply.github.com>
Co-authored-by: Rishichandra Wawhal <27274869+wawhal@users.noreply.github.com>
Co-authored-by: Rakesh Emmadi <12475069+rakeshkky@users.noreply.github.com>
Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com>
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
Co-authored-by: ananya-2410 <107847554+ananya-2410@users.noreply.github.com>
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: fa5a292a9a9e2e7d8477f72979ad172244f1ef23
2023-06-13 10:01:39 +00:00
paritosh-08
14b4de37f7 server: close subscriptions (with 1012) on metadata change
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9159
GitOrigin-RevId: 5ab25ef57782c126de8852f3546809feb66a9d44
2023-06-13 09:24:19 +00:00
Daniele Cammareri
4a269b84fc chore: remove isProLiteConsole function
This PR reports back to main the changes discussed here: https://hasurahq.slack.com/archives/CKATHV1J7/p1685348635635059?thread_ts=1684879014.661199&cid=CKATHV1J7

TL;DR
- we created a isProConsole function and used it in isDynamicDBRoutingEnabled. We merged this on main
- we opened a cherry pick PR
- we figured out that the isProConsole misses the license key validation feature, so the function was not doing what the function name suggested.
- in the cherry pick PR we removed the generic isProConsole function (whose name was misleading) and replaced it with an inline console type check in the isDynamicDBRoutingEnabled. (the console type-only check is ok in that particular feature)

Since the last point happened only on the cherry-pick PR, we opened this PR to do the same on the main branch.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9368
GitOrigin-RevId: e358862e479ac2efa7268787ab2ca32d5a0994b5
2023-06-13 08:22:26 +00:00
Varun Dey
d3fd27d9db console: fix neon DB connection error due to env var propagation delay
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9430
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: ea407dae924ef2e88c4cb27b2207f52dc0fdf125
2023-06-12 18:00:53 +00:00
Daniel Harvey
aeb8bc4c7a chore(server): fix types of BigQuery parameters
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9511
GitOrigin-RevId: f291814fab80060d83fabc34af918682c8108b7c
2023-06-12 17:13:12 +00:00
Tom Harding
be658e532c Fail to track logical models with invalid child logical models
[NDAT-719]: https://hasurahq.atlassian.net/browse/NDAT-719?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9474
Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com>
GitOrigin-RevId: 0234548c5fc56e3e9e2d5d291735d132c5963a14
2023-06-12 16:27:56 +00:00
Tom Harding
d864fff13f Move query validation into the schema cache building code
[NDAT-707]: https://hasurahq.atlassian.net/browse/NDAT-707?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9510
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: 11474498c75bfe1eb1173fed1073cc0206d290a1
2023-06-12 14:57:41 +00:00
Rob Dominguez
9e3c813b7e docs: add sanity bearing additions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9423
GitOrigin-RevId: 7ba96b5fb1431267530673f86ac6685d4a408b0d
2023-06-12 12:19:36 +00:00
Auke Booij
a53ab33330 server: hotfix for wrong PG conn pool, broken metrics, etc
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9481
GitOrigin-RevId: 58aa470b94cc578ae86fff0ef49ceb9e479199d1
2023-06-12 12:14:57 +00:00
Luca Restagno
00c822e439 docs: add documentation for logical models in the console
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9395
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: 2d26c9f7700e17de3b2248fcf6b944f1576caa7b
2023-06-12 11:18:20 +00:00
Rob Dominguez
7fde2f4973 docs: add note and pointer to restified api docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9458
GitOrigin-RevId: aa90396975c1cf78adb3da8d08bcdc170a05ec48
2023-06-12 09:52:30 +00:00
Anon Ray
c23320054d server: emit logs when stored introspection is used
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9472
GitOrigin-RevId: 9be2eaa9ebc5f39a7bb44a1fc2340acbd4074bcd
2023-06-12 08:53:05 +00:00