Commit Graph

1404 Commits

Author SHA1 Message Date
Varun Choudhary
7671759010 console: feature flag banner is hide behind ace editor
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7369
GitOrigin-RevId: 3d6a3e279bbf8fdf52eeaeca29e20a3ab0f63c0b
2023-01-03 08:45:23 +00:00
Stefano Magni
a60f7116d0 console: Introduce the OpenTelemetry form components in Storybook
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7093
GitOrigin-RevId: a0b164c4411d5e20075069ea46d9d0a2ba15a461
2023-01-02 14:20:08 +00:00
Nicolas Inchauspe
eb0c9d563e console: fix wrong illustration is displayed for Prometheus enabled screen
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7383
GitOrigin-RevId: 78c4cc9a1fe95c7c889423ad85f853ba4f255379
2022-12-30 11:08:23 +00:00
Julian@Hasura
523500ef97 console: Interaction tests for TrackedTables GDC-296
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7220
Co-authored-by: Julian <843342+okjulian@users.noreply.github.com>
GitOrigin-RevId: d6e96f813126802e384e13e7b824b29a87e64795
2022-12-23 13:06:17 +00:00
Stefano Magni
78936fd78b console: Add the OpenTelemetry banners in Storybook
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7361
GitOrigin-RevId: 0a098000acf94b7957c67af6178d0b3d22ab46a6
2022-12-23 09:55:57 +00:00
Julian@Hasura
082f83fc20 Allow user to view their table's foreign key info
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7130
Co-authored-by: Julian <843342+okjulian@users.noreply.github.com>
GitOrigin-RevId: f2e015ff317edd71d628b58f8eaebad3cf2a3c69
2022-12-22 15:12:32 +00:00
Luca Restagno
bcb46c863d [GCU-50] Export to CSV or JSON
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7359
GitOrigin-RevId: d0ebde91206e5ba750301151ddd2ee283fb31be4
2022-12-22 14:30:41 +00:00
Rikin Kachhia
73e333a412 clarify computed field fns need not be tracked
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6151
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: e5afbf12bdf2ed7439e535e168152e876a6260cb
2022-12-22 10:51:45 +00:00
Daniele Cammareri
a8a36bf7ee console: use new cron trigger form
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7236
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 2b32f418258d1cd6ba269de3e88fee939d1b640b
2022-12-22 09:36:29 +00:00
Matthew Goodwin
3e54787035 console: new drop down menu [GCU-49]
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7269
Co-authored-by: Luca Restagno <59067245+lucarestagno@users.noreply.github.com>
GitOrigin-RevId: e3625001b4196171d2f62920f56451a1984f9377
2022-12-21 13:12:34 +00:00
Erik Magnusson
e94440f397 console: user notitications for slowly running queries
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7319
GitOrigin-RevId: 3ef719bb2097d744e39965a458466ceb184619bd
2022-12-21 12:28:26 +00:00
Daniele Cammareri
70e9d3c21b fix: fix actionWithTransform e2e test
## Description

This PR fixes the test `actionWithTransform.e2e.test.ts`, failing only on CI (not on local builds). I've added some timeout when clearing the text areas; this probably fixes some issues due to debounce time.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7254
GitOrigin-RevId: 98052fa8e4ffd261f1944845d7eef2fcc1c6db37
2022-12-20 11:45:00 +00:00
Daniele Cammareri
6d64c67b4a fix: fix performance issue for event triggers invocation logs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7155
GitOrigin-RevId: c72512a1638944d64354b36e57dd4ca77626f276
2022-12-20 09:48:50 +00:00
Daniele Cammareri
209895988a test: fix one-off event e2e test
This PR fixes the one-off trigger failing e2e test.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7323
GitOrigin-RevId: 44f1e4ce316ec488985d0c17b2da75719515fa94
2022-12-19 17:10:07 +00:00
Stefano Magni
9ab0aecc06 console: Unify all the Analytics stories
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7274
GitOrigin-RevId: 8f9f3f750d564411385c4d74552554d8e8e54afb
2022-12-19 11:34:35 +00:00
hasura-bot
6270ff4d0d [GQL-19] #8537 Move the scroll/count of rows facility to a position that is above the table, not below as currently
GITHUB_PR_NUMBER: 8708
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8708

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5127
Co-authored-by: GitStart <1501599+gitstart@users.noreply.github.com>
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
Co-authored-by: Erik Magnusson <32518962+ejkkan@users.noreply.github.com>
GitOrigin-RevId: e9fb1fb8e8ae272f6095a4bf4e1fda934a90026f
2022-12-19 04:32:04 +00:00
Luca Restagno
a7d34b030b Create the hook to fetch the table rows from the server and download as CSV/JSON
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7292
GitOrigin-RevId: 65ee45e8b21b5bb4be23f046e69d0442f03559d7
2022-12-19 04:01:18 +00:00
Vijay Prasanna
32b56723a9 fix (console): Invalidate metadata global hook cache after tracking/untracking GDC tables
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7308
GitOrigin-RevId: bdb81c162bb6bf489464201907e75571920b129f
2022-12-16 15:13:59 +00:00
Nicolas Beaussart
55307f1797 ci: introduce frontend related ci
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6991
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nicolas Inchauspe <710410+nicoinch@users.noreply.github.com>
GitOrigin-RevId: 88173064e50d3e05cd1606f7c2a5b9edf1d5857b
2022-12-16 14:37:27 +00:00
Stefano Magni
9fd0a2a773 console: Skip some flaky E2E tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7284
GitOrigin-RevId: 045ad9e03f68d598255221d7253ad39659b8d876
2022-12-16 06:52:21 +00:00
Varun Choudhary
0e9c7c4ab9 console: integrate new one-off scheduled event form with console
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7283
GitOrigin-RevId: f29c20b8b2f49415b948198086ff0aafa5b39e81
2022-12-15 14:44:10 +00:00
Sameer Kolhar
ebe94ea11d console: fix issues with MRAU feature(s)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7211
GitOrigin-RevId: 6dff9629b413f692e248582cd08e9ad2fb49a407
2022-12-15 13:44:43 +00:00
Nicolas Beaussart
df7234fe7d frontend: upgrade to jest 27
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7208
Co-authored-by: Rishichandra Wawhal <27274869+wawhal@users.noreply.github.com>
Co-authored-by: Nicolas Inchauspe <710410+nicoinch@users.noreply.github.com>
GitOrigin-RevId: 52f4fb7e17a27bd181ad6bb030e5947c9ce4f819
2022-12-14 16:00:54 +00:00
Nicolas Inchauspe
1579e334cb Fix/form component
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7124
GitOrigin-RevId: fbaaa9f2e4377ebefccacc399472ead6a64927c6
2022-12-14 15:13:14 +00:00
Varun Choudhary
cd3942f15e console: refactor one-off scheduled event
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7252
GitOrigin-RevId: 4c463aa0c88879363c7a5d57c64f7444e2e59c15
2022-12-14 11:51:32 +00:00
Rishichandra Wawhal
82be6f0b3b console: add control plane ws url to endpoints; minor refactor
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7233
GitOrigin-RevId: 62d92c9021030d6ae23116f9ef8f5a664e5750ff
2022-12-14 09:14:42 +00:00
Vijay Prasanna
6648621fbe fix(console): update read replica payload to contain ssl_configuration, isolation_level and use_prepared_statements
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7253
GitOrigin-RevId: d55fb3e6fbd98ce8f1031fa2292e030057b6b8f7
2022-12-14 05:40:03 +00:00
Vijay Prasanna
941179bfee fix (console): handle case sensitive SQL generation for table schema and names
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7224
GitOrigin-RevId: cbfa88a278282bcf12a5d19219093a34d93c830c
2022-12-13 08:08:41 +00:00
Matthew Goodwin
bffdc2f930 console: refactor modify tab metadata hooks [GDC-666]
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7165
GitOrigin-RevId: b46408b3395198ac84f62eeae31a6bde3133c65f
2022-12-12 18:47:22 +00:00
Rikin Kachhia
8eb24229f9 console: move header navbar tooltips to bottom
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7193
Co-authored-by: Luca Restagno <59067245+lucarestagno@users.noreply.github.com>
GitOrigin-RevId: a2002d9f58e3b2a7f3f873caa34e9a1da24b5393
2022-12-12 13:29:15 +00:00
Luca Restagno
5e0bbc80de console: support alloydb
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6764
Co-authored-by: Erik Magnusson <32518962+ejkkan@users.noreply.github.com>
GitOrigin-RevId: 091525fd86342df5371e8545bba6ebff31132d53
2022-12-12 12:13:44 +00:00
Sooraj
df5c946174 console: import generated types in actions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6313
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
Co-authored-by: Daniele Cammareri <5709409+dancamma@users.noreply.github.com>
GitOrigin-RevId: f522eef50e37412f2ae84f63efa08c32848ccc93
2022-12-09 18:13:39 +00:00
Brandon Martin
c0aa2e8773 super-connector: Add display_name to super-connector
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7182
GitOrigin-RevId: 30c896a7ef52c44e90c324a4b2bb9fc5668863fa
2022-12-08 21:24:54 +00:00
Vijay Prasanna
e1064c34e0 feature (console): View browse rows relationships for GDC tables (WIP)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6875
GitOrigin-RevId: d905d84c3cf21790415ec22294e1efabaf93f185
2022-12-07 14:53:13 +00:00
Nicolas Inchauspe
fec3707e2e GraphiQL style bugs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7172
GitOrigin-RevId: 8381852fd0c9ac22dce22911d933b446f6e8de59
2022-12-06 19:30:22 +00:00
Sameer Kolhar
dc065cb98d console: hotfix minor issues in Check Database Latency feature
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7176
GitOrigin-RevId: 8f86ee64d44c67bbea0ccfead14d0bc2cd92b03a
2022-12-06 17:28:08 +00:00
Julian@Hasura
4aee57b174 console: Use custom display name for drivers in dropdown - GDC-653
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7098
Co-authored-by: Julian <843342+okjulian@users.noreply.github.com>
GitOrigin-RevId: cf92d6c9c5d5116ce5b0ce972e859308afe886c2
2022-12-06 12:59:05 +00:00
Varun Choudhary
d10591daf3 console: add negative badge to show inconsistent remote schema
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7067
GitOrigin-RevId: 6eeae6945639e98fda9ab90ff05a6af5fc668454
2022-12-06 10:57:46 +00:00
Rishichandra Wawhal
7f0e4b2092 console: hide onboarding for users who onboarded before onboarding was launched
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7168
GitOrigin-RevId: 8e119129b2a910fefd692e93a19007cdfd564bf5
2022-12-06 06:10:34 +00:00
Luca Restagno
1ce631132a console: fix scenario in which data is not ready yet
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7161
GitOrigin-RevId: 4b03fba03b2c1b8a4d855d2db852e8ce4f82d579
2022-12-05 15:23:51 +00:00
Gil Mizrahi
f45c379866 add concurrent_bulk api for parallel processing of read-only queries
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7087
Co-authored-by: Tom Harding <6302310+i-am-tom@users.noreply.github.com>
Co-authored-by: Luca Restagno <59067245+lucarestagno@users.noreply.github.com>
GitOrigin-RevId: 0d7a212d004908bc014def9d3828647545c9e062
2022-12-05 13:50:19 +00:00
Matthew Goodwin
12d4de57c0 console: Revisions to #6931
For context: https://github.com/hasura/graphql-engine-mono/pull/6931

This PR makes some revisions that I had originally intended to be in the code, but due to some mixup, was refactored without discussion. @vijayprasanna13 and I synced up to try and make a decision about how to resolve it, but ultimately wanted to get more eyes on it to weigh in.

For context, when I refer to "premade selectors" I am talking about [this file](8a9264b14c/console/src/features/hasura-metadata-api/selectors.ts (L34))

And when I refer to "utility functions" (or metadata utility functions), I am talking about [this file](8a9264b14c/console/src/features/hasura-metadata-api/utils.ts (L38))

The changes I am suggesting here mostly about maintaining (IMHO) clearer separation of concern for selectors vs utility functions, and improving DX.

Here's how I see it high level:

![flows (light theme)](https://user-images.githubusercontent.com/49927862/204630900-aca2aad1-d760-409d-8ec6-446942b2d6ff.png#gh-light-mode-only)
![flows (dar theme)](https://user-images.githubusercontent.com/173663/204755227-e8850dbf-1012-4c7b-8087-dd6f16e5ca23.jpg#gh-dark-mode-only)

In other words, I want to avoid using pre-made selectors within a custom selector as it creates a pattern of multiple layers of curried functions and beings to (IMHO) look confusing and blur the separation of concern.

What I am proposing is that we have a convention of doing either

1) Developer wants the entire table object of a specific table. They can easily do this using one of the **premade** selectors and pass directly into `useMetdata()`:

```ts
const { isLoading, data: metadataTable } = useMetadata(
    MetadataSelectors.findTable(dataSourceName, table)
  );
```

2) Developer wants to get a specific piece of information on a specific table. They can leverage the `findMetadataTable()` utility function within a custom inline selector like this and avoid extra currying and double selector confusion:

  ```ts
const { isLoading, data: savedComment } = useMetadata(
    m => MetadataUtils.findMetadataTable(dataSourceName, table, m)?.configuration?.comment
  );
```

This is somewhat of a stylistic preference, but also one that I think makes a cleaner separation of concern in the way we are building the api and supportive pieces. In other words, premade selectors are _always_ a selector and not used to compose other selectors. It also makes available utility functions that are easy to pull of the shelf to do common metadata tasks whether in the scope of `useMetadata` or not.

## Simpler Approach?

We could also just go with **Flow # 2** and eliminate the premade selectors. The dev would then pass a custom selector into `useMetadata()` and if they prefer, use a utility function to support their task.

With that aside, whatever the team agrees makes more sense, I will gladly get on board with, but I wanted to make my case here : )

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7095
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 7ecc2db172def0d2f714cbbb2f95a4b56a528093
2022-12-02 18:28:40 +00:00
Erik Magnusson
ffdc9ceca8 console: fix clone value handling for the insert tab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7097
Co-authored-by: Luca Restagno <59067245+lucarestagno@users.noreply.github.com>
GitOrigin-RevId: 483ce76f24234f76f3b557c892c62d891e542eb7
2022-12-02 10:55:56 +00:00
Daniele Cammareri
5f205a3f7d test: add snapshot check to action e2e test
## Description 🔖

This PR adds snapshot testing to e2e tests. The goal is to avoid regressions that involve metadata by checking:

- the payload of requests sent
- the metadata after modification (only relevant part of the metadata)

![image](https://user-images.githubusercontent.com/8408875/204244610-4486b689-d220-40ab-bc1d-9c7b1a1b232f.png)

We implemented this feature for one test, `actionWithTransform.e2e.test.ts` but this approach can be potentially used for other tests as well.

## Review checklist. 📋

- [ ] Run e2e tests

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7058
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
GitOrigin-RevId: 618147fad3f7d6849a0815b16c077efddef751ca
2022-12-02 10:03:39 +00:00
Daniele Cammareri
eec886da7b fix(console): fix action with transform e2e test
## Description

This PR fixes the test `actionWithTransform.e2e.test.ts`, failing only on CI (not on local builds). I've added some timeout when clearing the text areas; this probably fixes some issues due to debounce time.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7109
GitOrigin-RevId: 30efbc32bb804cc11d3e4af0f70b552512c6ded1
2022-12-01 09:49:16 +00:00
Abhijeet Khangarot
1d9d48a165 console: update heap custom tracking event names
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7115
GitOrigin-RevId: 4017f0aec418d78f24f78e0a5b0cc28faa7b45d8
2022-12-01 05:28:38 +00:00
Erik Magnusson
e084126c73 console: upgrade nudging for oss users wanting to use ssl cockroach db
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7084
Co-authored-by: Luca Restagno <59067245+lucarestagno@users.noreply.github.com>
GitOrigin-RevId: 4706cb52d46e22cfd3396233e6222f83dbc43cf7
2022-11-30 11:42:15 +00:00
sfarqu
5b95e4f778 console: Remove x-hasura-admin-secret header from DB latency requests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7101
GitOrigin-RevId: 48dd66ded2cfd7c440db67f8edb267196757c75c
2022-11-30 07:19:14 +00:00
Sandeep Raj Kumar
3c3c8d6895 Add Login with SSO option to EE lite
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6881
GitOrigin-RevId: d4603a0252c2924851c09fff9debe4d699a20fca
2022-11-30 05:21:35 +00:00
Daniele Cammareri
16561d2c9a feat(console): add import single endpoint from openAPI
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6970
GitOrigin-RevId: 14bbca9efbda6fa71f6b00ab5d45062d71abd794
2022-11-29 19:09:53 +00:00