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
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
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
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
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
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
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
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
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
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
Vijay Prasanna
31c6699013
console (tests): add unit and interaction tests for ConnectPostgresWidget
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9478
GitOrigin-RevId: 1fbfca3839b488fc46d774d8883cc74e44d22abe
2023-06-12 08:52:56 +00:00
Julian
77786f2a6d
Re-add Neon dashboard link to manage DBs
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9482
GitOrigin-RevId: 58a739c0cce943f9922fe0e3d4251a8ac19ced63
2023-06-08 19:37:44 +00:00
Rishichandra Wawhal
db1b6cf424
frontend: Schema registry UI improvements
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9479
GitOrigin-RevId: 306df780cfb9cc39a335abd98706ae2fe4293700
2023-06-08 18:33:10 +00:00
Julian
3e6b7816df
Improve loading UX on permissions editor
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9457
GitOrigin-RevId: 548c4ccadd4672d7cbdb12e637e919243edb0f2a
2023-06-08 13:22:38 +00:00
Matthew Goodwin
dc7a1f2270
console: bugfix to resolve error when using connection parameters with postgres/citus
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9465
GitOrigin-RevId: 8ee65b734314e6bfc7bd2806dc0ba77334e30c5c
2023-06-07 21:50:01 +00:00
Luca Restagno
0407229c83
fix adapting of legacy notification to the new toast system
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9415
GitOrigin-RevId: bfc3d9f18a459e74b9f2b37dac6c4858c26acefa
2023-06-07 16:41:26 +00:00
Luca Restagno
eefa345bf8
Fixes and improvements on Native Queries
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9433
GitOrigin-RevId: 2a9b31e4867871a2f6c51db3c6449e0f496266c7
2023-06-07 13:15:07 +00:00
Varun Choudhary
504ef83b11
console: In the rest details, send the request variable value as a JSON object if type of variable is JSON instead of a string
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9396
GitOrigin-RevId: 5a72d144e6b47ef986ed056490649e791d3f1bea
2023-06-07 12:47:25 +00:00
Varun Choudhary
0a55d3cf70
console: fix action with transform e2e tests
...
This PR fixes e2e tests for action with transforms
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9452
GitOrigin-RevId: b8f2254969a8d6fe3b64e468e114b0e509d48f2d
2023-06-07 11:42:10 +00:00
Daniele Cammareri
58ff864b33
test: fix event trigger e2e test
...
## Description
Solving the issue raised here https://hasurahq.slack.com/archives/C049N7YU9EU/p1685109887435229
The event trigger test sometimes failed because the trigger created by previous tests was not cleaned up. An additional cleanup has been added to the `before` function that tries to delete the event trigger if exists.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9324
GitOrigin-RevId: 1bdc96312324cbad6d85a91a9ab827c0218290f4
2023-06-05 11:21:51 +00:00
Varun Dey
84ae7a0652
console: Refactor cloud console onboarding
...
[GT-639]: https://hasurahq.atlassian.net/browse/GT-639?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9344
GitOrigin-RevId: 9f135937075baf12d1370508fa6717b7bcdbe4ce
2023-06-05 08:48:26 +00:00
Luca Restagno
eeb879f7f3
UI fix on the Permissions for (GDC)
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9402
GitOrigin-RevId: bdee9bb7a67ef604474b04a761ebd59fe5150b06
2023-06-02 15:53:26 +00:00
Luca Restagno
f6cb0d7310
Fix update_by_pk and delete_by_pk placeholders
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9375
GitOrigin-RevId: d73bc541f160e6f6f32dfa0f6b19cff730e73099
2023-06-02 09:00:01 +00:00
Luca Restagno
936134d157
Add tests interaction unit for the new relationship UI
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9354
GitOrigin-RevId: 0748d9db3695fe145b8a7813a7325fa98d1e71d5
2023-06-02 08:23:03 +00:00
Julian
921b148dc8
Logical Model Permissions
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9276
Co-authored-by: Erik Magnusson <32518962+ejkkan@users.noreply.github.com>
GitOrigin-RevId: ee1dddf813fac3f3a29c5444644e589a8e67d3cb
2023-06-01 18:31:37 +00:00
Rishichandra Wawhal
800be3c915
schema-registry: fix lux endpoint and misc fixes
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9388
GitOrigin-RevId: 883d0a59e5202c688e210eb624fd279f24ff1cfd
2023-06-01 14:56:37 +00:00
Rishichandra Wawhal
44aa0f00e8
frontend: ui for schema registry v1
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9189
Co-authored-by: nevermore <31686586+OjasWadhwani@users.noreply.github.com>
GitOrigin-RevId: 8a9091442967cb1603c04e5951e2dc2adf7d918b
2023-06-01 13:21:41 +00:00
Vijay Prasanna
0d347c1a32
console (fix): fix issue with permissions tab when metadata is in loading state
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9381
GitOrigin-RevId: 354d48fe69bfed42d4a4d4a8a1f8756c057cc8be
2023-06-01 09:52:52 +00:00
Matthew Goodwin
608e1bf29e
console: Add edit/view for native queries
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9307
GitOrigin-RevId: dddc9c2701a2f7958c423a5ddda6eb35163f425d
2023-05-31 21:04:31 +00:00
Aaysha
682af1e2b9
Integrating launch darkly sdk to console
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9334
GitOrigin-RevId: 7a2168114e74ff09bb1abb170a2aa2e7f7e5effc
2023-05-31 20:30:11 +00:00
Daniele Cammareri
5d3b0e0778
feat: add soft validation and 3.1 support
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9247
GitOrigin-RevId: 93bd2ae6c21e4d2cbc5b06aef0d1879cc0b23e9c
2023-05-31 11:09:50 +00:00
Luca Restagno
b19eff22e9
Fix: user defined functions UX interactions
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9359
GitOrigin-RevId: 92fc049a396e6bd11ed9003b6d784e80e2290618
2023-05-31 08:54:29 +00:00
Vijay Prasanna
03daf994b5
console: tree nav storybook component
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9225
Co-authored-by: Matthew Goodwin <49927862+m4ttheweric@users.noreply.github.com>
GitOrigin-RevId: b4772448e7ebceee49c0b49cd7fcf2091ddf88c9
2023-05-31 07:39:26 +00:00
Varun Choudhary
4c0a7cc46a
console: fix scheduled trigger e2e tests
...
This Pr fixes the failing e2e test for scheduled triggers
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9366
GitOrigin-RevId: 600dad7a9b04e14027d9dd4f39c6e9ed81d14317
2023-05-31 07:04:56 +00:00
Daniele Cammareri
866ce9c3e7
fix: fix cron trigger invocation logs status
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9348
GitOrigin-RevId: 72ba393e7f945260397b337cec489224f86230fc
2023-05-30 14:52:10 +00:00
Vijay Prasanna
972c6ebb4d
console: remove outdated feature flags from the settings tab
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9190
Co-authored-by: Luca Restagno <59067245+lucarestagno@users.noreply.github.com>
GitOrigin-RevId: 910fcc9ca4c5a6b18f07b47b60e0470b01db6bb7
2023-05-29 12:10:13 +00:00
Luca Restagno
4dec50ba5b
Relationship new UI, array relationships shown with the wrong details
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9315
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: cb61006a21ca0ef17033d68d2769a9d150ba409d
2023-05-26 15:50:52 +00:00
Varun Dey
ea3c640943
frontend: default to use case onboarding on console
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9253
Co-authored-by: Rishichandra Wawhal <27274869+wawhal@users.noreply.github.com>
GitOrigin-RevId: 08a7905acfc17d84ffcbb0f84867a5d44a999805
2023-05-26 10:59:29 +00:00
Daniele Cammareri
81636e0a48
fix: show cache warning to pro-lite console users
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9304
GitOrigin-RevId: 1acd4b070dd89ac83d19229b20d5d5c5c34d8d55
2023-05-26 06:36:42 +00:00
Vijay Prasanna
01b54b49b6
console: add confirm dialog before untracking stored procedures
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9305
GitOrigin-RevId: 5764f00a7558f2a9f5c16b220ebceb63f0685d5f
2023-05-25 19:42:44 +00:00
Matthew Goodwin
8f0451ce42
storybook: Migrate stories from CSF-2 to CSF-3
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9236
GitOrigin-RevId: 262b9bf5070835f625c690673bf71f2fe9e49d20
2023-05-25 19:08:20 +00:00
Luca Restagno
5a2821bb01
Add console support for Snowflake UDFs
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9268
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 046afcab867c3a91aea989bed92de894f4b67b16
2023-05-25 14:05:11 +00:00
Nicolas Beaussart
e7f0a521b8
console: have better time and payload size estimation in graphiql
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9243
GitOrigin-RevId: 74ab50ed908da659246c4fada3742d33e0fa3cd2
2023-05-25 11:02:43 +00:00
Mihir A Khandekar
a7fa1befd8
console: update enterprise users query
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9292
GitOrigin-RevId: 692e2c66f6689426f5f9d369cc03b06978acfecf
2023-05-25 08:08:35 +00:00
Varun Choudhary
1a68d766fc
console: add tolerance time in cron trigger e2e test
...
This PR adds e2e test for tolerance time in already existing cron trigger e2e tests.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9280
GitOrigin-RevId: e3159c89f39e74fb9feb5c332d1ba609f96939bd
2023-05-24 15:29:50 +00:00