Commit Graph

5990 Commits

Author SHA1 Message Date
Daniel Harvey
e58ebb10e0 [server/test] Postgres cross-schema tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7437
GitOrigin-RevId: f324fd4ede516238ec4904dd19c0094e21b69b7d
2023-01-06 15:36:19 +00:00
Varun Choudhary
5726ef56fe console/fix: creating async action from UI gets created as a sync action
[GS-347]: https://hasurahq.atlassian.net/browse/GS-347?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7432
GitOrigin-RevId: 4b27329ee84a51566b451e7a921d493f8659241d
2023-01-06 13:21:00 +00:00
Krushan Bauva
9a5ab43a15 docs: add note regarding audience in auth0
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7452
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 44e3371c1ac901dc45672bee20cd66ca994bf61f
2023-01-06 10:37:20 +00:00
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
Puru Gupta
bf201e534c server: refactor serverctx data types
## Description
This PR merges the data type `ServeCtx` into `ServerCtx` to create a single data type which has all the required context to run HGE.

## Motivation
This consolidated data type will be easier to update/maintain in case of any changes to the user config.

### Related Issues
https://hasurahq.atlassian.net/browse/GS-301

[GS-301]: https://hasurahq.atlassian.net/browse/GS-301?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7396
GitOrigin-RevId: f37594d15855bb50e556a4b11a58609af3f9f312
2023-01-06 09:34:44 +00:00
Puru Gupta
f047b7dd17 server: update the jwt refresh thread to poll
## Description
This PR updates the JWK refresh thread to poll every second instead of the previous behaviour where the thread used to sleep based on the expiry time in `Cache-Control`/`Expires` response headers.

## Motivation
As a part of dynamically updating environment variables on cloud without restart the user projects, we want to implement a mechanism which makes HGE aware of any changes in the user configuration by updating a shared variable data type which can be accessed by relevant threads/core functionality before their execution.

The above updates requires us to make the threads polling in nature such that before executing their code, any change in the user config is captured and the appropriate behaviour is channelised. In the case of JWK updating thread, the thread used to sleep for the time as mentioned in the `Cache-Control` or `Expires` headers which make the thread unware of any new changes in the user config in that period of time, hence requiring a restart to propogate the new changes.

To solve this problem we have now updated the JWK update thread to poll every second for change in `AuthMode`(from a shared variable in subsequent changes to implement the dynamic env var update feature) and update the JWK accordingly such that it does not use any stale configurations and works without HGE restart.

### Related Issues
https://hasurahq.atlassian.net/browse/GS-300

### Solution and Design
- We store the expiry time in the `JWTCtx`
- On every poll check whether the current time exceeds the expiry time, in which case we call the JWK url to fetch the new JWK and expiry.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7177
Co-authored-by: Krushan Bauva <31391329+krushanbauva@users.noreply.github.com>
Co-authored-by: Anon Ray <616387+ecthiender@users.noreply.github.com>
GitOrigin-RevId: bc1e44a8c3823d7554167a7f01c3ce085646cedb
2023-01-06 06:40:40 +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
Rob Dominguez
cda38563bc docs: add slug to front matter for event trigger clean up
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7457
GitOrigin-RevId: b6acc4dac457eceaaedff4265f1e5cf70d12e785
2023-01-05 20:21:22 +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
Rikin Kachhia
e9d98448f4 docs: improve graphiql styles
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7434
GitOrigin-RevId: dc4ffd853672882a34e0732e6f778002a950555e
2023-01-04 12:19:20 +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
Gil Mizrahi
09d053c7ad Show RQL IR Select
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7423
GitOrigin-RevId: 0bd669c49bf27b409787f168be5c2778d74bceda
2023-01-04 08:29:43 +00:00
Philip Lykke Carlsen
b1f065447f server/tests: Update README.md files
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7426
GitOrigin-RevId: b16cbe61c5274146c9adc1434a48dc95c964dd8c
2023-01-03 14:27:22 +00:00
Philip Lykke Carlsen
67280023a2 server/tests: Ability to run HGE via external process.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7329
Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com>
GitOrigin-RevId: 74b293a1d5fb7de52a85e42cfcb0314af0006822
2023-01-03 14:05:02 +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
paritosh-08
9309d2512a server: quote object names for MSSQL event triggers
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7398
GitOrigin-RevId: 47565981e0b5b5a198e2cd06e29b58d16693d75e
2023-01-03 06:47:38 +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
Rob Dominguez
880182c805 docs: improve Long values for CLI
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7399
GitOrigin-RevId: 6e848f6eae2e5418c386f814623c122646db12c7
2022-12-30 03:52:33 +00:00
Mohd Bilal
e75edb0629 cli: Add support for data connectors metadata changes.
closes https://hasurahq.atlassian.net/browse/PLAT-181

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7178
GitOrigin-RevId: f4c1c39ac33586870e38623bb85f09d5c98a3817
2022-12-29 14:37:47 +00:00
Mohd Bilal
06b7952149 cli: refactor migrate/migrate.go to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7232
GitOrigin-RevId: 51ed7ae004957d94568e16c8309920a5960cbc0d
2022-12-28 13:30:16 +00:00
paritosh-08
0b7ed96c46 server/telemetry: add experimental feature list
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7395
GitOrigin-RevId: f6a8c847c42c65616e816175135f0002e5f8c684
2022-12-28 07:16:35 +00:00
awjchen
1ec5efd5d3 server: replicate log-based data transfer metrics as prometheus metrics
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7354
GitOrigin-RevId: 3f49b8ebba515b42a9d7b22e83e6f39d9d6087c6
2022-12-28 03:49:33 +00:00
Meet Zaveri
3070470728 docs: document a new breaking change for v2 (related to extra GQL params)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7378
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 6dc830ed22e8e7196993f683c8cbed2c2bd2f4b5
2022-12-27 15:03:46 +00:00
Marion Schleifer
7dffbc6a0d docs: add bullet point on infinitive verb form in headings to docs wiki
## Description

This PR adds a bullet point on using the infinitive verb form in docs headings to the docs wiki.

## Quick link

[/docs/wiki/style/headings](https://marion-docs-update-wiki-to-u.hasura-docs-mono.pages.dev/docs/wiki/style/headings/)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7397
GitOrigin-RevId: 88b38d6c771f8e9fc7a70189cea15e6c9caf9f57
2022-12-27 14:49:31 +00:00
Rakesh Emmadi
9a3488920f docs: add an info note documenting known limitation with multiplexed subscriptions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7382
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: ce1a39d4ddb2f8500a5e2408acf6f3cfddcb44f6
2022-12-27 14:35:20 +00:00
Manas Agarwal
68f4f8a819 Docs: Add metrics_config metadata API docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7337
Co-authored-by: Anon Ray <616387+ecthiender@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
Co-authored-by: Marion Schleifer <5722022+marionschleifer@users.noreply.github.com>
GitOrigin-RevId: e852f95917491504a44e425a6ee8176c3644416b
2022-12-27 14:27:24 +00:00
Rob Dominguez
3fc7320fbd docs: add hotfix links
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7391
GitOrigin-RevId: 836f7878bf169073f91af5524f13e19b3a75a046
2022-12-23 21:47:11 +00:00
Jesse Hallett
4f996fcb2f server: codecs for some health check types
Small PR with codecs for a few health check types. This adds a `HasCodec` implementation for `Seconds` to `hasura-prelude`.

Ticket: https://hasurahq.atlassian.net/browse/GDC-585

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7328
GitOrigin-RevId: 8da2d9115d76be7177e5cc72a333c5a9cf6f759a
2022-12-23 18:16:58 +00:00
Rob Dominguez
f27146dec4 docs: update EE quickstarts
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7388
GitOrigin-RevId: d90898f4e1e2ddb1ed33d6776a1731a2889acf09
2022-12-23 16:51:27 +00:00
Daniel Chambers
c7bb13a776 Add Data Connector agent by default in our sample Docker Compose files
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7379
GitOrigin-RevId: 90a33845c924b464ab3c2c10316f7665a575e520
2022-12-23 15:46:28 +00:00
Marion Schleifer
6fad57dc3b docs: update title / sidebar capitalization & use infinitive verb form in headings (close #8885)
## Description

Close: https://github.com/hasura/graphql-engine/issues/8885.

This PR introduces the following changes:
- Capitalize `#1` headings.
- Change sidebar labels to only capitalize features.
- Add missing 'Cloud & EE:' (example) information to title to show in browser tabs.
- Use infinitive verb form in sidebar and `#1` headings to make it consistent with the rest of docs and to save space.
- Updated the `data-federation/data-federation-types` page.

Question to the reviewer:
- `Use infinitive verb form in sidebar and #1 headings`: Should we add this to the wiki?

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7365
GitOrigin-RevId: 309156a0e7c945edaab950e347025b9e5e1ea9e7
2022-12-23 14:28:26 +00:00
Rob Dominguez
21900dde2d docs: fix vars and headers showing
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7348
GitOrigin-RevId: 57ff08f3159b7e8e62a7c02d7f1a5f2949c81364
2022-12-23 13:44:24 +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
paritosh-08
825e256523 server: respect custom column name for graphql-default
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7289
GitOrigin-RevId: a1d0174034c9f2ee3577b05932db6a159aca4220
2022-12-23 11:03:48 +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
awjchen
ee78e32c6e server: implement trace sampling
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7300
GitOrigin-RevId: d96d7fa5aaf0c1e71d1c4c0fa8f0162abce39e18
2022-12-22 19:48:51 +00:00
Rakesh Emmadi
e1bf220b37 fix the issue with multiplexed queries, where a run-time exception caused by one subscription causes all subscriptions to fail (fix #9281)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7230
GitOrigin-RevId: e94764a4652e7ee99e0e39d64436aa05620086cb
2022-12-22 17:09:30 +00:00
Daniel Harvey
ebe8f72f25 [tooling] reduce CRDB sleep in docker healthcheck
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7373
GitOrigin-RevId: 12032bdd29ce59ac65eff9e79a0f2f4fd8c729bf
2022-12-22 16:34:39 +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
Tom Harding
8490874eab Show instance for GlobalTestEnvironment
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7370
GitOrigin-RevId: 77dbcfb686219ce23e4d751c8d934f81c04a222d
2022-12-22 13:19:34 +00:00
Tom Harding
8325c03500 Update the fixture repl macro
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7366
GitOrigin-RevId: f34a42c4dfd2dc257ffe39f4a0db12beb2630629
2022-12-22 11:26:48 +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
Rikin Kachhia
c256dcef7b cli: add option to apply seeds with the hasura deploy command
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7231
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 3cc7510bb16e8bceeb6cd2a678881a3459b6721f
2022-12-22 07:56:56 +00:00
Jesse Hallett
f4fa960ec6 server: safely signal backend support for event triggers
Hooks up event trigger codecs from #7237. This required fixing a problem where some backend types implemented `defaultTriggerOnReplication` with `error` which caused the server to crash when evaluating those for default values in codecs. The changes here add a type family to `Backend` called `XEventTriggers` that signals backend support for event triggers, and changes the type of `defaultTriggerOnReplication` to from `TriggerOnReplication` to `Maybe (XEventTriggers b, TriggerOnReplication)` so that it can only be implemented with a `Just` value if `XEventTriggers b` is inhabited. This emulates some existing type families in `Backend`. (Thanks to @daniel-chambers for this suggestion!)

I used the implementation of `defaultTriggerOnReplication` as a signal for event triggers support to prune the Metadata API so that event trigger fields will not appear in the OpenAPI spec for backend types that do not support event triggers. The codec version of the API will also not emit or accept those fields for those backend types. I think I could use `Typeable` to test whether `XEventTriggers` is `Void` instead of testing whether `defaultTriggerOnReplication` is `Nothing`. But the codec implementation will crash anyway if `defaultTriggerOnReplication` is `Nothing`.

I checked to make sure that graphql-engine-pro still compiles.

Ticket: https://hasurahq.atlassian.net/browse/GDC-521

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7295
GitOrigin-RevId: 2b2dd44291513266107ca25cf330319bf53a8b66
2022-12-21 17:15:31 +00:00