Commit Graph

940 Commits

Author SHA1 Message Date
Sooraj
9144d979d4 console: support for mssql read replicas
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3630
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
GitOrigin-RevId: 9660a5d9cdec8aff17cf20fcad3f309bdb3d182e
2022-02-18 09:10:28 +00:00
Vijay Prasanna
bd4b643cba console: Add minimal version of metadata migration hook
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3629
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
GitOrigin-RevId: 715aab88b7d6a1b1526899f17b167394c60e9574
2022-02-17 16:19:14 +00:00
Abhijeet Khangarot
cd219daae9 console: update know more link for remote_db relationships
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3691
GitOrigin-RevId: 05ab7e0b3899f3106d5e4b664c6877e608a49fa8
2022-02-17 09:24:12 +00:00
Rikin Kachhia
c655fadc35 console: remove discord link from error page
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3682
GitOrigin-RevId: 85f47a92ea6a503f65c241346f4813e9c455f495
2022-02-16 16:46:24 +00:00
Daniel Chambers
2c7a4e3a16 Customization of computed field GraphQL schema descriptions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3615
GitOrigin-RevId: f51590d4cfc0412be9baa371353f9b9f3b908f84
2022-02-15 23:17:27 +00:00
Matt Hardman
d2724878d3 Matt/console/permissions form
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2893
Co-authored-by: Ikechukwu Eze <22247592+iykekings@users.noreply.github.com>
GitOrigin-RevId: e6c8dedf8369df887fdc376c606b9b2e9b3d5ddd
2022-02-14 15:37:00 +00:00
Varun Choudhary
b91cbe2903 console: enable support for update permissions for mssql
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3591
GitOrigin-RevId: 668505d81cb647a4cd7766b957f8676062ecde49
2022-02-08 10:50:11 +00:00
Sooraj
a1eced3180 console: Implement a relationship table component
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3486
Co-authored-by: Alberto Francesco Motta <36401353+afmotta@users.noreply.github.com>
Co-authored-by: Martin Mark <74692114+martin-hasura@users.noreply.github.com>
GitOrigin-RevId: 730fe024d86d46de1b53bfbc7e171294527a407e
2022-02-07 11:08:26 +00:00
Ikechukwu Eze
0e9805ee07 console: tests for hooks
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3467
GitOrigin-RevId: ebf04a379a88b47996f908a062a894fe22f7c6ab
2022-02-07 10:08:53 +00:00
Daniel Chambers
51b7d98419 console: Fix typo in Session Argument label
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3580
GitOrigin-RevId: 314da6b69551255b604cf8b38b155fcbb11e2308
2022-02-07 07:03:09 +00:00
Abhijeet Khangarot
4453745c57 console: add remote database relationships
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3412
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 22052291dcc15e6a10ed573f5044537401d366fe
2022-02-04 13:56:27 +00:00
hasura-bot
c9e998bd91 Migrate Dropdown to typescript
GITHUB_PR_NUMBER: 8065
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8065

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3436
Co-authored-by: yuta-ike <38308823+yuta-ike@users.noreply.github.com>
GitOrigin-RevId: a6a3f89ac64365c944423f7b50aaeb55cea1db1f
2022-02-04 05:51:13 +00:00
Vijay Prasanna
94eedbe07f console: enable inherited roles by default
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3554
GitOrigin-RevId: 04db7ce07931d390b2c6e507b955c65399edae71
2022-02-02 10:13:39 +00:00
Rikin Kachhia
514779dfb2 console: display version update banner only for oss
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3533
GitOrigin-RevId: 4c575b4d4a118857cc942d6e904d4f5d50ecd618
2022-02-01 12:19:25 +00:00
Varun Choudhary
670e0953fb console: radio input should auto-select on insert and edit row form
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3524
GitOrigin-RevId: 75ca446fea815b03c9a4b4edfff848bb8ce5e0f5
2022-02-01 10:33:48 +00:00
Varun Choudhary
01cd14f8e3 console: add select component
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3490
GitOrigin-RevId: 398d3b3ece16f6b279661757c0cc7bbcc2c106f6
2022-01-31 14:24:55 +00:00
Varun Choudhary
182d96ad75 console: add hooks for useRemoteSchemaRelationships
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3444
GitOrigin-RevId: df93c994c3a9c08250a94f0b88954f8ede883cf4
2022-01-31 10:50:17 +00:00
Rikin Kachhia
eb427aaf3d console: update graphiql height and remove extra scrollbars
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3473
GitOrigin-RevId: 20ad5759790e04342bf8531097a7f511a3fdd74f
2022-01-28 11:16:24 +00:00
hasura-bot
3796fd354d console: fix custom field names sort (fix #7974, #8021)
GITHUB_PR_NUMBER: 8037
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8037

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3379
Co-authored-by: arjunyel <11153289+arjunyel@users.noreply.github.com>
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: f561b7a0ac5b85a7ca8cdae1cc8f1ad50d61eb0c
2022-01-28 10:31:23 +00:00
Vijay Prasanna
e50c0c0a0c console: enable support for insert & delete permissions for mssql
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3376
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
GitOrigin-RevId: 5ad23803a7326e64f17dac88e2d1caa5f7276c5f
2022-01-28 09:51:08 +00:00
Vijay Prasanna
4cfc1eea59 console: add hooks for useTableColumns and useRemoteDatabaseRelationships
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3441
GitOrigin-RevId: eac2da4adddbdff184fabd1137cf70f551c86f21
2022-01-26 10:51:05 +00:00
Alberto Francesco Motta
576c539bcb console: add CardedTable component
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3398
GitOrigin-RevId: f0c6bc8f95a49a6544216c0764fa633ac724e5c6
2022-01-25 10:49:46 +00:00
Rikin Kachhia
613a80c82d console: fix action/remote schema permissions edit icons
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3460
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 90e46a39bdaab1386a2ff3c5dfbcfadd7526ef4f
2022-01-25 05:09:51 +00:00
Daniel Chambers
2c5cf6983b Fixed schema & table dropdowns being unsorted on 'create event trigger' page
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3385
GitOrigin-RevId: 619f1bb8b22e048b47b629a1b6b3315943f1b1fe
2022-01-18 08:50:10 +00:00
Abhijeet Khangarot
54b5088acf rename webhook transforms to REST Connectors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3334
Co-authored-by: Tirumarai Selvan <8663570+tirumaraiselvan@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 6722cc6449daa5111aa3d6afca8909c5af525bf7
2022-01-17 13:28:04 +00:00
Ikechukwu Eze
c01232ea13 console: create a hook for each loadShema sql queries
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3016
GitOrigin-RevId: 030eef3b8e71281c419f8f7ec6dcbd40a085be74
2022-01-13 09:24:31 +00:00
Vijay Prasanna
3d2dfc6077 console: fixes failing tests on modify page for tables
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3357
GitOrigin-RevId: 0672b1b7c82c7d99cf7a403cf535d435cbc8d887
2022-01-13 08:33:56 +00:00
hasura-bot
890b6714ba console: migrate some components to TypeScript
GITHUB_PR_NUMBER: 7984
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7984

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3244
Co-authored-by: yuta-ike <38308823+yuta-ike@users.noreply.github.com>
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
GitOrigin-RevId: dae29147e5675871ed698729a34da4624f3ad359
2022-01-12 09:44:32 +00:00
hasura-bot
5f37f28fda console: migrate ColumnCreator component to TypeScript
GITHUB_PR_NUMBER: 7981
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7981

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3243
Co-authored-by: yuta-ike <38308823+yuta-ike@users.noreply.github.com>
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: ce02bafa52eba26176e1295d0a526112244dadc0
2022-01-12 07:26:19 +00:00
Vijay Prasanna
b791cd3866 console: enable oss auth layer
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3269
GitOrigin-RevId: e9135475f63263512c2c3f487c1fbfed9014e2a6
2022-01-11 09:12:23 +00:00
Ikechukwu Eze
1691e93c96 console: rename Timeout to Operation time limit
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3312
GitOrigin-RevId: 8e54fd39c9193107f5c1b5c45089d9440d4b3d66
2022-01-10 13:09:59 +00:00
Abhijeet Khangarot
21d1baecb4 console: refactor getSetCommentSql signature
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3214
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: c07a47bd88f173280ad8b1f14765e85bb8ea3ed6
2022-01-07 06:54:42 +00:00
Rishichandra Wawhal
61f1b956b0 console: update README.md
Links to the team-console feature doc for folks trying to build console for Hasura Cloud/Hasura EE.
Rendered: https://github.com/hasura/graphql-engine-mono/tree/team-console-doc-ref-in-console-readme/console

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2677
GitOrigin-RevId: c4be1131907ee533013d2e3aaff94b043a1f5631
2022-01-03 05:12:30 +00:00
Abhijeet Khangarot
4ececd448b console: add remote relationships tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3188
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 90e7197351b8b1718b77a88cbe9bd18436a616d7
2021-12-23 17:57:49 +00:00
Vijay Prasanna
5ad04cc58d console: add oss auth layer
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3091
Co-authored-by: Alberto Francesco Motta <36401353+afmotta@users.noreply.github.com>
GitOrigin-RevId: 8de137b59518e9717cb9edb3f880a342a4e4371e
2021-12-23 15:12:36 +00:00
Matt Hardman
19c7002a7b Console/fix update column comment
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3201
GitOrigin-RevId: 7a04cf2b94cccebe31041df76b2260dfae2b66bc
2021-12-22 06:40:28 +00:00
Matt Hardman
aabc5189be console: fix remote schema permissions default args
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3067
GitOrigin-RevId: cff7555b8ff0d99f1f21148281147bc6f97adaf2
2021-12-22 05:09:57 +00:00
Ikechukwu Eze
eeeb3f7816 console: prepare for new loadschema hooks
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3051
GitOrigin-RevId: 71bd296fb918c40750fec877410cc50cde1ceaee
2021-12-17 13:26:54 +00:00
Antoine Leblanc
bacadc30da Fix several issues with remote relationships.
## Remaining Work

- [x] changelog entry
- [x] more tests: `<backend>_delete_remote_relationship` is definitely untested
- [x] negative tests: we probably want to assert that there are some APIs we DON'T support
- [x] update the console to use the new API, if necessary
- [x] ~~adding the corresponding documentation for the API for other backends (only `pg_` was added here)~~
  - deferred to https://github.com/hasura/graphql-engine-mono/issues/3170
- [x] ~~deciding which backends should support this API~~
  - deferred to https://github.com/hasura/graphql-engine-mono/issues/3170
- [x] ~~deciding what to do about potentially overlapping schematic representations~~
  - ~~cf. https://github.com/hasura/graphql-engine-mono/pull/3157#issuecomment-995307624~~
  - deferred to https://github.com/hasura/graphql-engine-mono/issues/3171
- [x] ~~add more descriptive versioning information to some of the types that are changing in this PR~~
  -  cf. https://github.com/hasura/graphql-engine-mono/pull/3157#discussion_r769830920
  - deferred to https://github.com/hasura/graphql-engine-mono/issues/3172

## Description

This PR fixes several important issues wrt. the remote relationship API.

- it fixes a regression introduced by [#3124](https://github.com/hasura/graphql-engine-mono/pull/3124), which prevented `<backend>_create_remote_relationship` from accepting the old argument format (break of backwards compatibility, broke the console)
- it removes the command `create_remote_relationship` added to the v1/metadata API as a work-around as part of [#3124](https://github.com/hasura/graphql-engine-mono/pull/3124)
- it reverts the subsequent fix in the console: [#3149](https://github.com/hasura/graphql-engine-mono/pull/3149)

Furthermore, this PR also addresses two other issues:
- THE DOCUMENTATION OF THE METADATA API WAS WRONG, and documented `create_remote_relationship` instead of `<backend>_create_remote_relationship`: this PR fixes this by adding `pg_` everywhere, but does not attempt to add the corresponding documentation for other backends, partly because:
- `<backend>_delete_remote_relationship` WAS BROKEN ON NON-POSTGRES BACKENDS; it always expected an argument parameterized by Postgres.

As of main, the `<backend>_(create|update|delete)_remote_relationship` commands are supported on Postgres, Citus, BigQuery, but **NOT MSSQL**. I do not know if this is intentional or not, if it even should be publicized or not, and as a result this PR doesn't change this.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3157
Co-authored-by: jkachmar <8461423+jkachmar@users.noreply.github.com>
GitOrigin-RevId: 37e2f41522a9229a11c595574c3f4984317d652a
2021-12-16 20:29:19 +00:00
Vijay Prasanna
ae124e2ee8 console/hotfix: use legacy create_remote_relationship for pg
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3149
GitOrigin-RevId: 578d0bdf916df04beb5900fb99a2d063370fc7c7
2021-12-15 11:53:42 +00:00
Abhijeet Khangarot
5726852c54 console: add sample context section to request transforms
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3110
GitOrigin-RevId: 1c11b8d1a465802490ce12cefce1469a9d24522d
2021-12-14 09:29:18 +00:00
Abhijeet Khangarot
d7ac98db44 console: request transform bugfixes
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3089
GitOrigin-RevId: ed251ea81c77f3cb2832c7f6cc6dbf801464afae
2021-12-08 12:00:06 +00:00
Abhijeet Khangarot
16006a1cbc console: fix console crash while selecting columns in event trigger
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3075
GitOrigin-RevId: 82096c9ab3b42d58fd150a8efc4077e18baa9335
2021-12-08 07:14:33 +00:00
Ikechukwu Eze
ac14e9a3f4 console (chore): upgrade typescript to 4.5.2
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3048
GitOrigin-RevId: 3a19ce1a4bb5ec9102e5da18dad84fefc2b5fc3e
2021-12-06 12:40:01 +00:00
Vijay Prasanna
2abd5a464a console: remove raw sql timeout for postgres
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3011
GitOrigin-RevId: 7363b58fdf015dbe653c604eacc328899c90d265
2021-12-02 08:45:26 +00:00
Matt Hardman
58829693e8 Permissions Component Showcase stories (close #2863)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2985
GitOrigin-RevId: 6d0410fcfb9252e71e6e6cc969284b084eca22a0
2021-12-02 06:23:42 +00:00
Rishichandra Wawhal
0c3cd7f092 console: vpc banner improvements
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2838
Co-authored-by: Martin Mark <74692114+martin-hasura@users.noreply.github.com>
GitOrigin-RevId: cce5e465aa2da0e45cdcfc2fd5f8a81298eaa827
2021-11-30 11:14:29 +00:00
Varun Choudhary
bc467a283a console: Add select all columns option while selecting the columns in event triggers
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2688
Co-authored-by: Abhijeet Khangarot <26903230+abhi40308@users.noreply.github.com>
GitOrigin-RevId: 0b98d2f388c7f8428f3c282e8c1662f8b046f4dd
2021-11-29 12:29:47 +00:00
Matt Hardman
6451fba595 console: create permissions table components
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2840
GitOrigin-RevId: a6dbc4d7e3278006465b44cfc4392afec1f9d426
2021-11-26 12:32:04 +00:00
Abhijeet Khangarot
0f07f944ba console: request transformations for events
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2498
Co-authored-by: Sooraj <8408875+soorajshankar@users.noreply.github.com>
GitOrigin-RevId: d1c331fb989e247ed807167eefa92b226fe4afb9
2021-11-26 08:50:44 +00:00