Commit Graph

1207 Commits

Author SHA1 Message Date
Matthew Goodwin
bc15959bb7 fix (console): submitting GQL table customisation fails to merge correctly for root fields
This is a small continuation of this PR. It got merged before I could get these additional fixes in:

https://github.com/hasura/graphql-engine-mono/pull/6561

This PR addresses:

- Issues correctly merging custom root fields when saving that resulted in saved changes sometimes not saving
- Implements a fix @vijayprasanna13 made to issues with saving custom column names in a slightly refactored version of the same concept.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6575
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 161ad46a8c667e022447a89aca057fd7f07379a7
2022-10-28 13:55:50 +00:00
nevermore
f36b5697c0 console: Analytics cleanup in Neon Components
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6539
GitOrigin-RevId: 3e257247e65a9349e76e1485a2ab36383d94bcc6
2022-10-28 07:17:46 +00:00
Erik Magnusson
03b76e40e1 console: refactor browse rows to decouple redux
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6439
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 2088552f782faebbe3edfba8a2707733a67e89dc
2022-10-28 06:10:51 +00:00
Erik Magnusson
b19f41280b console: enabled cockroachdb as beta
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6565
GitOrigin-RevId: 615fd753618e87662456d68c3006c79abaa210e8
2022-10-28 05:21:05 +00:00
Matt Hardman
72dbafc319 console: add permissions form to work with GDC
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6558
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 6ec7ca366a9a1aea987ca1a2c14811d4c44e4d60
2022-10-27 21:50:16 +00:00
Erik Magnusson
fa98bfc8ee console: fixed misspelled cockroachdb in database connect form
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6564
GitOrigin-RevId: ce19d5ec3b74cca6f34435cbe96aa0da3ca5aed7
2022-10-27 16:55:57 +00:00
Erik Magnusson
2029e20d0c updated ssl certs to only be enabled on pro/cloud versions for cockroach
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6529
GitOrigin-RevId: 7281a213b382c5801fc4583cfdf178102b676470
2022-10-27 14:44:12 +00:00
Varun Choudhary
bdf1aee641 console: console support for actions response transform
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6455
Co-authored-by: Sooraj <8408875+soorajshankar@users.noreply.github.com>
GitOrigin-RevId: 82040e5a05c035f3319a94cfb6dd94acb5259505
2022-10-27 14:07:25 +00:00
Vijay Prasanna
4589af44b4 fix (console): unable to remove custom_name for a GDC table's column
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6566
GitOrigin-RevId: 518a99ae63b3157fb0331be0eec49146a8499a54
2022-10-27 12:56:53 +00:00
Abhijeet Khangarot
6b1bda87b4 console: remove feature access check for neon
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6470
GitOrigin-RevId: 99d7ab426fedb086693af35d07958be7f7b6df75
2022-10-27 11:16:41 +00:00
Matthew Goodwin
7ecc6849e0 fix (console): submitting GQL table customisation erases other table config info on metadata
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6561
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: a72c349d74faf9ef8f55ff17fc904aed9c741798
2022-10-27 05:45:19 +00:00
Rishichandra Wawhal
68ba302bcf console: remove code related to the sample DB experiment
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6467
GitOrigin-RevId: 5a3fbc3c7d8d3947b5e7bad66140aaf11fa6ad8d
2022-10-26 15:55:15 +00:00
Vijay Prasanna
374846b63b refactor (console): sub routes for managing gdc tables
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6546
GitOrigin-RevId: 3876c171558dbd2b72881b79b181c52e3a331b11
2022-10-26 14:59:34 +00:00
Stefano Magni
b74050db09 console(fix): Fix the frequent target.closest.querySelector error
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6528
GitOrigin-RevId: 6895c8ecd2bc1bf6add265ab3520397c229033a9
2022-10-26 12:46:03 +00:00
Abhijeet Khangarot
9834acdb8a console: add tests for install metadata and migration template hooks
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6110
GitOrigin-RevId: 4ea89f60ba719ae8210d700893fcf30a4c4aab0a
2022-10-26 11:04:35 +00:00
Matthew Goodwin
2a64d1a002 feature (console): allow user to update GQL configuration for GDC source tables from the Modify Tab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6463
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: b583d1d7e4eef4e796b820903a6be9c4e32fa316
2022-10-26 08:28:12 +00:00
Matt Hardman
0ed17e543c console: implement permissions builder for GDC
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6429
GitOrigin-RevId: ce956e93920f7edcd032814e6f7b4daad068bb77
2022-10-26 06:58:15 +00:00
Vijay Prasanna
7452472726 feature (console): allow user to add/update/delete local relationships for GDC sources
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6443
GitOrigin-RevId: bb4537438cd256c80be10759a1475d666014a284
2022-10-25 21:31:02 +00:00
Rikin Kachhia
a1b2882c70 console: fix API explorer headers action icons alignment
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6525
GitOrigin-RevId: 535e7d74ae0397fa34fc2aefcb99fc2377e6a498
2022-10-25 16:04:56 +00:00
Erik Magnusson
e40b10b428 console: added ssl mode information to cockroach db
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6522
GitOrigin-RevId: aa5f1d881522c304d424d6927477d063d52467dc
2022-10-25 14:01:01 +00:00
Vijay Prasanna
f5c7eac7fd feature (console): allow user to edit column comments and custom GQL field names for GDC tables
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6469
GitOrigin-RevId: b08f45788966e7bf1636adf55939308432d64397
2022-10-25 12:16:48 +00:00
Erik Magnusson
4c216cd2e7 removed dependency of needing gdc to be enabled to reach connect db page
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6516
GitOrigin-RevId: 8c9a42fd87b16b48d0b296a7160566df129b3b80
2022-10-25 09:57:03 +00:00
Erik Magnusson
3fee21f2a0 console: disable connection parameters field for cockroachdb
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6495
GitOrigin-RevId: e23a1212c3e35bc2dec5dccca5a8eda0a1636402
2022-10-25 06:25:58 +00:00
Stefano Magni
040a281392 platform(console): Refactor everything Analytics
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6153
GitOrigin-RevId: e0dea3acf995d8f73eed8fabae374e215ebcd964
2022-10-24 08:30:01 +00:00
Samir Talwar
c3afa0fdd7 Install and use ODBC Driver 18 for SQL Server (msodbcsql18).
This installs the ODBC Driver 18 for SQL Server in all our shipped Docker images, and update our tests and documentation accordingly.

This version supports arm64, and therefore can run natively (or via Docker) on macOS on aarch64.

`msodbcsql17` is still installed in production-targeted Docker images so that users do not _have_ to migrate to the new driver.

Nix expressions are packaged for the new driver, as it is not yet available in nixpkgs.

In this version, [the default encryption setting was changed from "no" to "yes"](https://techcommunity.microsoft.com/t5/sql-server-blog/odbc-driver-18-0-for-sql-server-released/ba-p/3169228). In addition, "mandatory" and "optional" were added as synonyms for "yes" and "no" respectively.

I have therefore modified all connection strings in tests to specify `Encrypt=optional` (and changed some from `Encrypt=no`). I chose "optional" rather than "no" because I feel it's more honest; these connection strings will work with or without an encrypted connection.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6241
GitOrigin-RevId: 959f88dd1f271ef06a3616bc46b358f364f6cdfd
2022-10-21 16:25:04 +00:00
Luca Restagno
b591d68d81 Console: refactor the table Modify tab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6419
GitOrigin-RevId: 620e37be5275e339bff2d3da6758d894f035987f
2022-10-21 09:52:06 +00:00
Erik Magnusson
631f3994c2 console: added cloned row values to payload if they exist
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6447
GitOrigin-RevId: 23e7dd1e5a4cd3c79835f750fff1404fdf134da2
2022-10-20 14:36:50 +00:00
Vijay Prasanna
a9c887cd16 tests (console): add tests for getTableName util function
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6375
GitOrigin-RevId: 82acd22d60a878c6619158637290c923cd8b43f0
2022-10-20 11:35:16 +00:00
Nicolas Inchauspe
c274cb8a44 console: Prometheus settings in console
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5743
GitOrigin-RevId: 6c6a10cabaf70437508b377fc9bb30b40537429e
2022-10-20 10:35:27 +00:00
Matthew Goodwin
afa1b27969 GDC Modify Tab - Table Comment and Table Columns
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6349
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 6053990f341b1fcc4e20371f14fa60dccc4c40f0
2022-10-20 05:18:47 +00:00
Daniele Cammareri
e91cba835b fix remote schema permissions with null default value
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6414
GitOrigin-RevId: 1b902b1ac7c541bdd79f933ef6fc008f875b517a
2022-10-19 06:46:55 +00:00
Vijay Prasanna
67087043c9 feature (console): allow user to view and update existing filter/sort(s) on GDC browse rows
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6344
GitOrigin-RevId: 5118ca2299753a0c8742662e5493bb97baf16d9c
2022-10-19 03:46:22 +00:00
Daniele Cammareri
e13ff5babe fix remote schema permissions with interfaces
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6417
GitOrigin-RevId: c3df729df040ea11ec61cf75536c8dec6b7cdbed
2022-10-18 21:21:29 +00:00
Daniele Cammareri
fbb0fbbe0b fix remote schema permmission when there are arguments
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6407
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
GitOrigin-RevId: faa0d05bcee2ad033c7a610d5c6cf27bd6af09bf
2022-10-18 13:53:38 +00:00
Vijay Prasanna
2298c21ae0 feature (console): add storybook components for local relationships for GDC
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6290
GitOrigin-RevId: aadac5dc29db2d1fa6550a604e04a6baa3b7c661
2022-10-18 04:58:13 +00:00
Abhijeet Khangarot
49a2822dbe console: UI fixes for neon banner in connect db page
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6376
Co-authored-by: Rishichandra Wawhal <27274869+wawhal@users.noreply.github.com>
GitOrigin-RevId: 8f2ec961be370097b48b684211606d34dbaa002d
2022-10-17 19:04:52 +00:00
Erik Magnusson
63ef6e722c console: refactor the data pages edit tab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6380
GitOrigin-RevId: 15a96fd2f743d84570026aeeb75efbcbd9386c2a
2022-10-17 16:10:42 +00:00
Varun Choudhary
3757731228 console: Implemented batch_size API limit to tackle GraphQL batching attacks
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6337
Co-authored-by: Daniele Cammareri <5709409+dancamma@users.noreply.github.com>
GitOrigin-RevId: 826bbbf33ad9608db7807d919ba685d1b15c4e32
2022-10-17 12:39:02 +00:00
Varun Choudhary
b60b38d70b console: show total max connections in pool settings fields for CE/EE/Cloud
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6080
GitOrigin-RevId: aafa8350f8d00d3f8ddb6e51964f06a25455aac5
2022-10-17 10:38:34 +00:00
Vijay Prasanna
f15e3f0148 feature (console): use list_source_kinds to get available drivers for the connect DB page
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6359
GitOrigin-RevId: 2d75899258d1581c840ef14b161532f0f10a7b5e
2022-10-17 09:05:34 +00:00
Nicolas Inchauspe
c3578869be console: fix frequently used columns dropdown
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6340
GitOrigin-RevId: 242b7c1e21d2d800697b8748b794a086a756d2ae
2022-10-13 14:37:46 +00:00
Vijay Prasanna
ea1ed79280 fix (console): introspection type name with customization breaks getTableColumns
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6319
GitOrigin-RevId: eb2d33b564695285970ca5b07d526e96a749326c
2022-10-13 13:30:14 +00:00
Erik Magnusson
b2f89f6685 console: configure currently supported cockroach features
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6323
GitOrigin-RevId: 7c5929ef8f6d3d933c361c67dd99c7a5ce051f03
2022-10-13 11:28:19 +00:00
Luca Restagno
cf672a1a59 console: Enable SSL Certificates Configuration in the Console for CDB
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6325
GitOrigin-RevId: 9f6e381dda3e2fcf60bb97c30732a46abb05242f
2022-10-13 08:04:32 +00:00
Nicolas Beaussart
391d8570a1 platform: rework css import to prepare the nx migration
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6272
GitOrigin-RevId: 43d52508dac9687184f6702d312a21232051503e
2022-10-12 12:47:51 +00:00
Luca Restagno
950836849d console: fix alter primary key for cockroachdb
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6292
GitOrigin-RevId: 0f449e08837c174627fb69ee611411b44ba88b62
2022-10-11 16:09:58 +00:00
Vijay Prasanna
690c05d33a feature (console): Enable browse rows for GDC sources (supports pagination, filter, limit & sort)
Adds a browse rows component for GDC sources
Cleans up the implementation of the FilterSection and additonal refactoring

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6178
GitOrigin-RevId: 82c3f729edb05778e81b08254608797617b45aaf
2022-10-11 14:17:42 +00:00
Tom Harding
4fdbda05ec Enable Postgres enums for Cockroach
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6232
GitOrigin-RevId: cc29e4932c3a24039efaf28f890a3dad97b51c3e
2022-10-11 09:09:26 +00:00
Matthew Goodwin
ae00089cd4 Add GQL Customization to connect DB form [GDW-333]
## Description 🔖

This adds the ability to edit **GraphQL Field Customization** when either connecting or editing a db connection for an agent.

This was implemented using the newest form and form components:

<img width="548" alt="Screen Shot 2022-09-29 at 3 42 16 PM" src="https://user-images.githubusercontent.com/49927862/193155139-c0eb71fb-4829-42d9-8ec1-90582fe8054a.png">

## Solution and Design 🎨

This is a fairly minimal addition that makes use of the existing `react-hook-form` compatible `Form` and components. I had to edit the zod schema with the correct properties from the spec for GQL Sources.

I created a new dir for the `CustomizationForm` and implemented it in both the Connect and Edit components.

A quick note on a directory convention I am using here:

It's fairly common to have a components folder, and then within that, have sub-directories for more complicated components.

In that model, I have found it useful to use a `parts` directory as a next level of granularity within a component directory.
This helps to avoid cluttered components folder, by optionally adding a `parts` folder inside a component's folder for pieces that you want to break out but are NOT shared with anything else.

I've done this here with a fairly simple component `src/features/ConnectDB/components/Customization/parts/SectionHeader.tsx`, but one that benefits from having it's own component.

## Review Setup 💻

Video of feature:

https://www.loom.com/share/d737afca4be04da28f6943c1c8164d6f

### Tests

Added new customization form to storybook here ->> http://localhost:6006/?path=/story/data-connect-graphql-field-customization--primary

### Note on commit history

We had some issues trying to fix my accidental commital of a package-lock.json file and ended up doing some song and dance which involved @solomon-b ending up with credit for the first few commits. Just as a note for history, his name is on them, but it's my code, so if there's something to comment on, direct it to me.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6134
Co-authored-by: Solomon <24038+solomon-b@users.noreply.github.com>
GitOrigin-RevId: 0c8891e246e5d048e70b6a8a91331f21049d1c8c
2022-10-11 07:49:03 +00:00
Vijay Prasanna
2835a1aa98 fix (console): tree nav auto-select when table/database is present in the route
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6205
GitOrigin-RevId: 61d89f4dbd2fac0fca58c0c7eefe735856637a42
2022-10-10 12:47:01 +00:00