Nicolas Inchauspe
f2b76b7da7
console: replace bootstrap modal with radix one
...
[PLAT-511]: https://hasurahq.atlassian.net/browse/PLAT-511?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8622
GitOrigin-RevId: 8387bad11c7529ded8a89c551f5858f3f1ee0c27
2023-04-05 08:24:06 +00:00
Varun Choudhary
6bf0a49cd6
console: e2e snapshot testing for remote schema
...
This PR adds e2e snapshot testing for remote schema.
We are testing it in 2 ways -
1. testing the shortest possible path to create RS and then modifying it to the longest possible path
2. testing the longest possible path to create RS and then modifying it to shortest possible path
3. [ see doc](https://docs.google.com/document/d/1NjZsvd6xOq90lNMai8nKBaWl-LqBWrkiZCHSQ7wusdE/edit ) for more detail
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8383
GitOrigin-RevId: d045219ca7db00e797492e9d61efb25283c1b3b3
2023-04-05 07:42:53 +00:00
Daniel Chambers
fde4c0fae5
Enhance insert table schema with extra info and remove need for cached schema usage in Super Connector mutations
...
[GDC-643]: https://hasurahq.atlassian.net/browse/GDC-643?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8560
GitOrigin-RevId: 0e965da447eb6a5acf5a0f291f9e205882630e6e
2023-04-05 02:23:20 +00:00
awjchen
a4db4c225f
docs: enterprise edition telemetry
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8575
Co-authored-by: Manas Agarwal <5352361+manasag@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 83afe631cf0cb20a0d26fc28b1151f1e30376101
2023-04-04 22:37:56 +00:00
Antoine Leblanc
e6a8bcb1c9
Make flag value a part of the cache's dynamic config.
...
### Description
If i understand correctly, the _value_ of a feature flag **can** change at runtime. Since this has an impact on how the schema cache is built, this PR makes the value of the flag a part of the cache's "dynamic" config, therefore making it an arrow-ish argument for the incremental framework. It also removes `CheckFeatureFlag` from the static config, now obsolete.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8631
GitOrigin-RevId: 2ca898e4193e8552c40d2b21a819d3dd414601fe
2023-04-04 19:39:39 +00:00
Varun Choudhary
18e0ae0783
console: fix flaky test for event trigger
...
This PR fixes the flaky test, discussed [here ](https://hasurahq.slack.com/archives/C04E6U4TUM6/p1680545040680069?thread_ts=1680544673.299789&cid=C04E6U4TUM6 )
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8613
GitOrigin-RevId: 79deee9bd4e1abfcde19cc848ce1de2b5bf248a5
2023-04-04 16:35:06 +00:00
Antoine Leblanc
306162f477
Remove ServerConfigCtx
.
...
### Description
This PR removes `ServerConfigCtx` and `HasServerConfigCtx`. Instead, it favours different approaches:
- when the code was only using one field, it passes that field explicitly (usually `SQLGenCtx` or `CheckFeatureFlag`)
- when the code was using several fields, but in only one function, it inlines
- for the cache build, it introduces `CacheStaticConfig` and `CacheDynamicConfig`, which are subsets of `AppEnv` and `AppContext` respectively
The main goal of this is to help with the modularization of the engine: as `ServerConfigCtx` had fields whose types were imported from several unrelated parts of the engine, using it tied together parts of the engine that should not be aware of one another (such as tying together `Hasura.LogicalModel` and `Hasura.GraphQL.Schema`).
The bulk of this PR is a change to the cache build, as a follow up to #8509 : instead of giving the entire `ServerConfigCtx` as a incremental rule argument, we only give the new `CacheDynamicConfig` struct, which has fewer fields. The other required fields, that were coming from the `AppEnv`, are now given via the `HasCacheStaticConfig` constraint, which is a "subset" of `HasAppEnv`.
(Some further work could include moving `StringifyNumbers` out of `GraphQL.Schema.Options`, given how it is used all across the codebase, including in `RQL.DML`.)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8513
GitOrigin-RevId: 818cbcd71494e3cd946b06adbb02ca328a8a298e
2023-04-04 16:01:42 +00:00
Tom Harding
794690f30c
Implement get_source_tables
command for all backends
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8619
GitOrigin-RevId: 5e1b2c11775d801a77dc6d92de4c5abc1c9b8c60
2023-04-04 15:27:19 +00:00
Sean Park-Ross
9c779a64bf
docs/sean/small-fixes-03
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8536
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 422c938f13d850caa22b01b867d48f515e1f7038
2023-04-04 14:49:52 +00:00
Gil Mizrahi
352d8ff09c
validate logical models custom return type against postgres
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8563
GitOrigin-RevId: 462a608e0e90d1923bc1d735257f4506825f5db1
2023-04-04 14:02:59 +00:00
Puru Gupta
8a6a8459ab
server: zero-downtime env vars update on cloud
...
[GS-232]: https://hasurahq.atlassian.net/browse/GS-232?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8475
Co-authored-by: Anon Ray <616387+ecthiender@users.noreply.github.com>
Co-authored-by: Naveen Naidu <30195193+Naveenaidu@users.noreply.github.com>
GitOrigin-RevId: fb47f02f4e0d6d889c0348abc50fd46382f1bd5e
2023-04-04 13:26:21 +00:00
Daniel Harvey
9c99bcb6f8
chore(server): move perms to custom return types
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8604
GitOrigin-RevId: ff024429b3f06e4867334665f35d4bd404a85cba
2023-04-04 12:46:51 +00:00
Julian@Hasura
71a00338ff
console: Mongo Schema Form DSF-205
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8557
GitOrigin-RevId: 292043907095e37c7bb99725a754fb7da9f71743
2023-04-04 12:10:27 +00:00
Antoine Leblanc
0177510b8f
Fix haskell error in example code block
...
Fix trivial error in documentation.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8620
GitOrigin-RevId: 1b8410ae213b1e5f0954bdf4e957d29f1a668696
2023-04-04 11:28:35 +00:00
Antoine Leblanc
e9ae080d28
Add ManagedT
deep dive.
...
### Description
This small documentation PR explains why and how we use `ManagedT`, and how it solves problems we would have with `Managed`.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8615
GitOrigin-RevId: 5b7710a8cb6373fefb69bb4e9e8eda389c14c2da
2023-04-04 10:34:58 +00:00
Tom Harding
4854d3ca21
Add extremely basic support for BigQuery JSON fields
...
[NDAT-501]: https://hasurahq.atlassian.net/browse/NDAT-501?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8614
GitOrigin-RevId: 24530130499174a1a02e0fb4510859fcfeed207d
2023-04-04 09:45:17 +00:00
Philip Lykke Carlsen
df12c7cf46
fix(api-tests): Ensure the test runner runs the logger cleanup function.
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8602
GitOrigin-RevId: 7e07b8b0556a22edf4e058e23ff020cc5e8528f6
2023-04-04 09:01:44 +00:00
Vijay Prasanna
73509d865d
console: add missing variable in useDatabaseLatencyCheck
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8611
GitOrigin-RevId: e582afe1f8ebe3aacc341464ea9b78622ffff85d
2023-04-04 08:19:20 +00:00
Vijay Prasanna
880da0feaf
feature (console): add component to list and manage database connections in the manage DB section
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7970
GitOrigin-RevId: 18e26e4ce660611c8f5dc3f440f156ec9311be13
2023-04-04 07:21:44 +00:00
Shraddha Agrawal
f454a41c29
docs: add docs for logs & metrics exported by Cloud APM integrations
...
[CPS-275]: https://hasurahq.atlassian.net/browse/CPS-275?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8145
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: e01e7ee166cdf423d8585ab1eb041d806f47ad70
2023-04-04 06:11:41 +00:00
Amit
2e6250f349
Professional plan: billing by active hour
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8591
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 88d023af9d8f2ac949ec897854b7e0cd61662282
2023-04-04 00:08:10 +00:00
Varun Choudhary
6621dc6adb
console: e2e snapshot testing for event triggers
...
This PR adds e2e snapshot testing for event triggers.
We are testing it in 2 ways -
1. testing the shortest possible path to create ET and then modifying it to the longest possible path
- here we are testing the shortest path and see no extra fields are added to avoid regression. Then we modify the shortest path to the longest one and see nothing will break on the metadata side
2. testing the longest possible path to create ET and then modifying it to the shortest possible path
- here we are testing the longest path and see if all the fields are passing to avoid regression. Then we modify the longest path to the shortest one and see nothing will break on the metadata side
3. More info in the [doc](https://docs.google.com/document/d/1NjZsvd6xOq90lNMai8nKBaWl-LqBWrkiZCHSQ7wusdE/edit )
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8341
GitOrigin-RevId: f44d5297e70fe50fc4f2a2ac43a1707b71398ba1
2023-04-03 17:24:41 +00:00
Luca Restagno
c3451bd622
Allow users to track relationships from the manage database view
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8568
Co-authored-by: Julian@Hasura <118911427+julian-mayorga@users.noreply.github.com>
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 6741cd59cd5432b18f72ffa965ccb84f2503fb4e
2023-04-03 15:35:57 +00:00
Rob Dominguez
4b2344f646
docs: fix sidebar icons
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8589
GitOrigin-RevId: 24f7310233bdd75c34a2053aebd4f6ad4d27385c
2023-04-03 15:01:12 +00:00
pranshi06
e6c8abf7d4
server: add connection_template as an argument in pg_test_connection_template
API
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8520
GitOrigin-RevId: 525bba9015ad4e143e94124e42ec4518252932cb
2023-04-03 14:27:12 +00:00
Auke Booij
7cc33dd8ec
server: refactor Hasura.Metadata.Class
...
- Remove `MonadMetadataStorageQueryAPI` which was only implemented by a default implementation
- Introduce `TransT` which can be used to easily derive `lift`ing implementations for `MonadBlaBlaBla` classes
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8579
GitOrigin-RevId: 4f804fda7e2de5c9d75ee4df269f500ebd46b8c9
2023-04-03 13:36:50 +00:00
Gil Mizrahi
ed4f3b7406
feature(server): CockroachDB now supports distinct. Document and test
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8596
GitOrigin-RevId: 3dbc5fccb1d4387041a5a80794158c4f50b70848
2023-04-03 11:51:22 +00:00
Nicolas Beaussart
c08dc03d72
frontend: change lint staged to only show warnings
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8598
GitOrigin-RevId: 075ef047ced13a95087b10b64584bd21c611f884
2023-04-03 10:53:20 +00:00
Daniel Harvey
cb9f822fc0
chore(server): move user-defined-functions into Hasura.Function.*
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8595
GitOrigin-RevId: b3b7dec8504fe4daf324125e4017fa7d1945b3ca
2023-04-03 10:20:20 +00:00
Rikin Kachhia
0bfe558345
docs: update cloud getting-started and project pages
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8582
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: bfd8f4fbdfea6e54da1a9a9335ff3d2efbe8f851
2023-04-03 09:43:45 +00:00
Rishichandra Wawhal
80ec1c0684
frontend: remove telemetry notification on first load
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8327
GitOrigin-RevId: 7f2e7a2be2d3b74584c407e99f7491db69df661c
2023-04-03 09:11:25 +00:00
Rikin Kachhia
6a75ca1283
docs: update database quickstart
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8585
GitOrigin-RevId: b556d017eba8c73a024b1b430dbaf59cd1be03e5
2023-04-03 08:12:57 +00:00
ananya-2410
ff759bfbe1
ci: update base image of graphql-engine to focal-20230308
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8592
GitOrigin-RevId: ae36c41a7c0f012845d4d782ffa25aef566ae000
2023-04-03 07:01:40 +00:00
Tom Harding
7e06b30e4d
Add metadata commands for custom return type permissions
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8587
Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com>
GitOrigin-RevId: 660f2eda9cf1c7c612d66745064b3998c77804e0
2023-03-31 16:29:24 +00:00
Daniel Harvey
79682e0598
chore(server): move custom types out of logical models
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8565
Co-authored-by: Tom Harding <6302310+i-am-tom@users.noreply.github.com>
GitOrigin-RevId: 38bf56cc420a6c818a9ca7d6f846f5018535c808
2023-03-31 15:35:13 +00:00
Varun Choudhary
25c830a487
console[storybook]: fix interaction test for modify cron trigger
...
This PR fix interaction test for modify cron trigger storybook component.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8551
GitOrigin-RevId: 1da9bcf5b9b70f17598e029df5b5907485c2da79
2023-03-31 14:47:21 +00:00
Stefano Magni
2359322feb
feat(console): Add the IsFeatureEnabled core
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8410
GitOrigin-RevId: 2fc16f678fcb49226f2028c324d06314749e27f2
2023-03-31 10:54:22 +00:00
Sameer Kolhar
40921f20bc
console: fix issue to clear admin secret key on logout
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8503
GitOrigin-RevId: 7f94a2da01001b1b295151aa41c2e456c120f972
2023-03-31 09:20:32 +00:00
Vijay Prasanna
004dedca83
console: enable new data tab UI for BigQuery
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8474
GitOrigin-RevId: 21a4af7d9ebf9b78702785019b385066f63d09b7
2023-03-31 07:03:40 +00:00
Jesse Hallett
1e4a79e131
server: update metadata.openapi.json
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8574
GitOrigin-RevId: 456a7d6cad66b6281e90b0c2623274c04fe15f47
2023-03-30 21:56:46 +00:00
Auke Booij
79b8a6a07b
chore(server): move some query tags code to a sensible place
...
Also add a `default` implementation for `MonadQueryTags`.
This avoids a bunch of imports on `Hasura.GraphQL.Execute.Backend` which is a big module with lots of (transitive) dependencies.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8571
GitOrigin-RevId: 8ecca452721b77953e6d088c79d8d6f003f2996f
2023-03-30 21:19:38 +00:00
Jesse Hallett
b5ac49d1b5
server: codec for dataconnector ConnSourceConfig
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8271
GitOrigin-RevId: b5aaa86a5e453fecb1e88c2afb223857e50c8b7d
2023-03-30 18:37:51 +00:00
Daniel Harvey
4905dc1675
chore(tests): pass BigQuery service account env var through to HGE
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8532
GitOrigin-RevId: 68e4c846e23369f476fa672b987d6769fad43cbf
2023-03-30 17:59:01 +00:00
Anon Ray
5a81eaa9b6
server: core changes for zero-downtime env vars update on cloud
...
[GS-232]: https://hasurahq.atlassian.net/browse/GS-232?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7207
Co-authored-by: pranshi06 <85474619+pranshi06@users.noreply.github.com>
Co-authored-by: Rakesh Emmadi <12475069+rakeshkky@users.noreply.github.com>
Co-authored-by: Puru Gupta <32328846+purugupta99@users.noreply.github.com>
Co-authored-by: Naveen Naidu <30195193+Naveenaidu@users.noreply.github.com>
GitOrigin-RevId: 90a771036da5275cd277f3daaf410381955c69de
2023-03-30 16:33:39 +00:00
Jesse Hallett
bd9f93eaef
server: codecs for backend configs
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8269
GitOrigin-RevId: 34330f383ca82fb159842a171a763c178b462788
2023-03-30 15:53:55 +00:00
Daniel Harvey
7227e96278
feature(server): custom return types as discreet metadata entity
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8556
Co-authored-by: Tom Harding <6302310+i-am-tom@users.noreply.github.com>
GitOrigin-RevId: b7dcbcf378279c3bf4c8d223174b90c2cb4b9e53
2023-03-30 15:15:11 +00:00
Auke Booij
cfd33e0dba
ci(server): fix hlint ignore pragmas
...
Some fixes as a followup to #8311 . In particular, some pragmas were referring to a now-nonexistent hlint rule.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8569
GitOrigin-RevId: 2a180427b3e93a71c47569ff10b6c8b6b407f7a2
2023-03-30 14:31:59 +00:00
hasura-bot
22d9b54eae
Support _is_null operator in MSSQL permissions. fix #8479
...
GITHUB_PR_NUMBER: 9414
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9414
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7800
Co-authored-by: Nakano as a Service <20109935+NKNaaS@users.noreply.github.com>
GitOrigin-RevId: 9a409bd023a21cbc43c13f028d088bde7a21c62f
2023-03-30 13:46:49 +00:00
Erik Magnusson
eb3833516b
console: allow support for geometric type columns on the permissions UI
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8457
GitOrigin-RevId: 5c8708523f26e67bacd37a8a2c010c473d9a7a5c
2023-03-30 13:09:33 +00:00
Rakesh Emmadi
454fbc7f69
server/pro/cloud: add resolved connection template context in error response in dev mode
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8541
GitOrigin-RevId: 57f97ac336be8e656dcfcf4e339ad2ccc5c62393
2023-03-30 12:09:32 +00:00