Commit Graph

1411 Commits

Author SHA1 Message Date
Luca Restagno
d2e9a2d643 Add VS Code setting to correctly show TailwindCSS rem units in pixels
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7453
GitOrigin-RevId: afb78ebf5a2de34f164e338a93f030a43119cdb2
2023-01-06 10:33:10 +00:00
Vijay Prasanna
f3bdd3d11d fix (console): react table header offset in Run SQL result UI
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7454
GitOrigin-RevId: 79a3e825c0dbc20cf25039de64a5bb776010015d
2023-01-06 05:44:42 +00:00
Erik Magnusson
31ab5bfc65 console: browse row truncation and row details dialog
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7314
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: bd6fe7eb80f0b7296519a6c3bcea74e051ad84c3
2023-01-05 11:33:46 +00:00
Abhijeet Khangarot
f896b1ad22 console: one click deployment
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7022
Co-authored-by: nevermore <31686586+OjasWadhwani@users.noreply.github.com>
Co-authored-by: Rishichandra Wawhal <27274869+wawhal@users.noreply.github.com>
GitOrigin-RevId: f174a5260bc65273fdb45d6bc25a79b74b3e8207
2023-01-05 05:36:18 +00:00
Luca Restagno
7b48088898 Fix the import of a function
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7433
GitOrigin-RevId: 47766e730804fc77115bec47d50a16554c75e3d1
2023-01-05 02:40:12 +00:00
Varun Choudhary
237dbee415 console: fix indefinite loading state when modifying rest endpoints with null comments that created by older Hasura version
[GS-347]: https://hasurahq.atlassian.net/browse/GS-347?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7421
GitOrigin-RevId: 67671b8a1974f0c5c937005355ab335153bf37ce
2023-01-04 11:20:45 +00:00
Abhijeet Khangarot
3f87bb0aba console: remove global cursor disabled bootstrap style
[GT-403]: https://hasurahq.atlassian.net/browse/GT-403?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7402
GitOrigin-RevId: b4fecaefb89e820e61a1c6c76bebc93d563025b3
2023-01-04 10:25:21 +00:00
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