Commit Graph

7148 Commits

Author SHA1 Message Date
Vishnu Bharathi
7ecf9dafeb ci: tag release v2.27.0-beta.1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9369
GitOrigin-RevId: 5dc966791905d9e6d0db6bccb79b424b58049ea8
2023-05-31 08:28:53 +00:00
Vijay Prasanna
03daf994b5 console: tree nav storybook component
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9225
Co-authored-by: Matthew Goodwin <49927862+m4ttheweric@users.noreply.github.com>
GitOrigin-RevId: b4772448e7ebceee49c0b49cd7fcf2091ddf88c9
2023-05-31 07:39:26 +00:00
Varun Choudhary
4c0a7cc46a console: fix scheduled trigger e2e tests
This Pr fixes the failing e2e test for scheduled triggers

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9366
GitOrigin-RevId: 600dad7a9b04e14027d9dd4f39c6e9ed81d14317
2023-05-31 07:04:56 +00:00
Daniel Chambers
bfd046b224 Add additional tracing spans to HGE GraphQL queries and the Super Connector
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9332
GitOrigin-RevId: ecde2383a42acf93fa8c6abb8bbd4c3b074b77fb
2023-05-31 05:49:12 +00:00
Daniel Harvey
9de3db4729 chore(server): respect logical model array nullability
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9303
GitOrigin-RevId: 4d38a125a6889e2b0be34905e21a78036a77881e
2023-05-31 00:15:47 +00:00
Daniele Cammareri
866ce9c3e7 fix: fix cron trigger invocation logs status
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9348
GitOrigin-RevId: 72ba393e7f945260397b337cec489224f86230fc
2023-05-30 14:52:10 +00:00
Rob Dominguez
b3393cc344 docs: add skip_onboarding query param
[DOCS-990]: https://hasurahq.atlassian.net/browse/DOCS-990?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9266
GitOrigin-RevId: 1dc772f6b4e1f6235b56f8a42e8b6a4120302334
2023-05-30 14:15:31 +00:00
David Overton
26dfa3e718 Replace TableObjectType, etc. with the corresponding Logical Model types
## Description

This is the first step in making use of Logical Models with document databases such as MongoDB. As part of schema introspection, a data connector agent can supply a set of custom types that can be used to describe the schema for columns within the tables of the database (or _fields_ within a _document collection_ in MongoDB terminology).

Previously, we were storing these custom types as `TableObjectType`s within the `TableCoreInfo` for each table.

In this PR we
- replace the `TableObjectTypes` with `LogicalModel` types
- store these directly within the `DBObjectsIntrospection` instead of within the `TableCoreInfo` for each table. (The custom types are shared at the source level so there was no reason to have a separate set of types for each table.)
- When building the `SourceInfo`, we combine the `LogicalModel`s from `DBObjectsIntrospection` with `LogicalModel`s from the user's metadata to create the set of `LogicalModels` in the `SourceInfo` within the `SchemaCache`. I.e. we combine the set of types obtained by database introspection with the set of types specified by the user in the metadata. If two types have the same name, we use the type defined in the metadata.

## Limitations and future work

- Provide a way for the user to associate a meta-data defined `LogicalModel` with a table instead of requiring one to be provided by DB introspection
- Provide a way for the user to edit the  `LogicalModel` types provided by introspection and add them to the metadata.
- Allow a `LogicalModel` object type to describe and entire table rather than just individual columns.
- Better handling for "unknown" types, e.g. if the type of a collection (or part of a collection) is unknown we should treat it as a JSON scalar value. This may also involve adding an `_everything` field which returns the full document as a JSON scalar.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9345
GitOrigin-RevId: 5cec72fc1be1380d8600f7be547bbf71aad770bd
2023-05-30 14:05:46 +00:00
Gil Mizrahi
2c3663b706 Catch ErrorCall in runHandler and expose it as a message with status 200
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9340
GitOrigin-RevId: b18fe167c8d26027d70da239606bd66d61e9bb43
2023-05-30 12:32:45 +00:00
Rob Dominguez
3ac749fbfb docs: improve pg views docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9325
GitOrigin-RevId: e2c668e6efd0a348fbc4bffbf63fb577f094e02d
2023-05-30 11:38:43 +00:00
Tom Harding
82d3cd477e "Better" Python version checking in dev.sh
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9347
GitOrigin-RevId: 952253a3683e30f59181e9cba2e77941635e5922
2023-05-30 11:29:52 +00:00
Rob Dominguez
372b5b54c1 docs: add admin secret header
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9323
GitOrigin-RevId: c4b08adcd75d0cc67551615c9e71c1dd7ab2ee05
2023-05-30 11:03:53 +00:00
Rikin Kachhia
5b449909eb ci: update latest stable release as v2.26.0
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9342
GitOrigin-RevId: d2463dad59a98e7236065d90efa0e8892bf012a3
2023-05-30 09:11:44 +00:00
Gil Mizrahi
7c1ab39637 bugfix: quote columns in postgres nq validation
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9337
GitOrigin-RevId: e8e4c23efe9e3a028596f485d8e6f966b0c1a30a
2023-05-29 12:40:40 +00:00
Vijay Prasanna
972c6ebb4d console: remove outdated feature flags from the settings tab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9190
Co-authored-by: Luca Restagno <59067245+lucarestagno@users.noreply.github.com>
GitOrigin-RevId: 910fcc9ca4c5a6b18f07b47b60e0470b01db6bb7
2023-05-29 12:10:13 +00:00
ananya-2410
3303690fc4 ci: tag release v2.26.0
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9336
GitOrigin-RevId: bbbae990f9d39941a4fbc25d24227738522298c1
2023-05-29 11:26:37 +00:00
Karthikeyan Chinnakonda
318bffa28d Fix performance regression introduced in #8922
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9310
Co-authored-by: Sameer Kolhar <6604943+kolharsam@users.noreply.github.com>
Co-authored-by: paritosh-08 <85472423+paritosh-08@users.noreply.github.com>
GitOrigin-RevId: 82697ea7d0f4a5cc39f05938f92a7ba49d9b6098
2023-05-29 07:06:18 +00:00
Rob Dominguez
b63046f4a8 docs: add dex info for google sso
[DOCS-946]: https://hasurahq.atlassian.net/browse/DOCS-946?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9154
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: b3f75e8dbb1c2f29ed68c45da9cb45f21b057ab1
2023-05-26 15:53:44 +00:00
Luca Restagno
4dec50ba5b Relationship new UI, array relationships shown with the wrong details
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9315
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: cb61006a21ca0ef17033d68d2769a9d150ba409d
2023-05-26 15:50:52 +00:00
Rob Dominguez
cee83014e1 docs: backport hotfix for product badges on NQ and LM
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9319
GitOrigin-RevId: 4559d3df3e1f94831ff266d9863b31ae4973708b
2023-05-26 13:15:41 +00:00
Sooraj
e607e302d2 Docs:Remove EE trails banner from Import OAS docs page.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9311
GitOrigin-RevId: 5ed474e8be33ebb592f15f8430b4d5c2eb300fb6
2023-05-26 11:43:18 +00:00
Lyndon Maydwell
f088eabdf3 Docs for Snowflake UDFs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9267
Co-authored-by: Brandon Martin <40686+codedmart@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: de656b5cebc3894045b1dc6daf2d2d4ae0b036a0
2023-05-26 11:37:08 +00:00
Varun Dey
ea3c640943 frontend: default to use case onboarding on console
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9253
Co-authored-by: Rishichandra Wawhal <27274869+wawhal@users.noreply.github.com>
GitOrigin-RevId: 08a7905acfc17d84ffcbb0f84867a5d44a999805
2023-05-26 10:59:29 +00:00
Daniele Cammareri
81636e0a48 fix: show cache warning to pro-lite console users
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9304
GitOrigin-RevId: 1acd4b070dd89ac83d19229b20d5d5c5c34d8d55
2023-05-26 06:36:42 +00:00
Vijay Prasanna
01b54b49b6 console: add confirm dialog before untracking stored procedures
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9305
GitOrigin-RevId: 5764f00a7558f2a9f5c16b220ebceb63f0685d5f
2023-05-25 19:42:44 +00:00
Matthew Goodwin
8f0451ce42 storybook: Migrate stories from CSF-2 to CSF-3
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9236
GitOrigin-RevId: 262b9bf5070835f625c690673bf71f2fe9e49d20
2023-05-25 19:08:20 +00:00
Philip Lykke Carlsen
cce7239da3 feat(BigQuery): Add object relationship support for Native Queries
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9302
GitOrigin-RevId: 9bf623bdbca33a5919f3c7834d9b6605119fa8cb
2023-05-25 16:15:38 +00:00
Luca Restagno
5a2821bb01 Add console support for Snowflake UDFs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9268
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 046afcab867c3a91aea989bed92de894f4b67b16
2023-05-25 14:05:11 +00:00
Daniel Harvey
39396c50b8 feature(server): comparable computed field aggregations for Postgres
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9300
GitOrigin-RevId: 92e4afaf2c029304e9ddb1d9541aa78c2b9b3027
2023-05-25 12:55:29 +00:00
Daniel Harvey
090a41ebf4 Move Logical Model parsers to Hasura.LogicalModel.Schema
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9298
GitOrigin-RevId: 8a4fdff7381495c94eede9d91437b635c8a60eac
2023-05-25 12:30:32 +00:00
Anon Ray
2fc448d9a5 docs: move cache metrics page to last position in the sidebar
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9296
GitOrigin-RevId: 7ba30b3c03af3c35800dba185c9e154d2a93c9f9
2023-05-25 11:59:26 +00:00
Naveen Naidu
d8cbde20ab docs: event trigger observability and performance
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9263
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: ca2565b8559ef884129667f1c9d2ca310a30a55a
2023-05-25 11:56:08 +00:00
paritosh-08
3e3e73b81f docs: subscription observability and performance
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9254
GitOrigin-RevId: 464ae1c7b67ff8bcacdea899d2612d57ad8bf443
2023-05-25 11:08:13 +00:00
Nicolas Beaussart
e7f0a521b8 console: have better time and payload size estimation in graphiql
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9243
GitOrigin-RevId: 74ab50ed908da659246c4fada3742d33e0fa3cd2
2023-05-25 11:02:43 +00:00
Tom Harding
3492484034 Implement get_table_info for Postgres, Citus, and Cockroach
[NDAT-621]: https://hasurahq.atlassian.net/browse/NDAT-621?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9201
GitOrigin-RevId: 91886f5f8d125d49c35647cfbfc3c6621d932761
2023-05-25 09:32:12 +00:00
Mihir A Khandekar
a7fa1befd8 console: update enterprise users query
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9292
GitOrigin-RevId: 692e2c66f6689426f5f9d369cc03b06978acfecf
2023-05-25 08:08:35 +00:00
Daniel Chambers
7e4c24aea0 Fix WebSockets api-tests breaking for Data Connector backends
[GDC-1024]: https://hasurahq.atlassian.net/browse/GDC-1024?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9291
GitOrigin-RevId: f7a2306268fc1a22744dd9393ac17648551434b0
2023-05-25 07:06:28 +00:00
Samir Talwar
f2fe9f9579 Nix: Upgrade Ormolu to v0.7.0.0.
This requires serious monkey-patching.

We start with v0.6.0.1, upgrade its `src`, and override dependencies to make the version constraints happy.

We build it with GHC 9.4 because it bundles text v2, which is required for Ormolu v0.5.3 and up. This means we can't just override the Hackage package; instead, we override the root-level package and use that directly.

Because of this, HLS will use the wrong Ormolu version. We can resolve this once we upgrade to GHC 9.4 *and* a version of hls-ormolu-plugin is released which supports this version of Ormolu (at the time of writing, only v0.5.x and older are supported).

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9289
GitOrigin-RevId: 438fe045bc74834d99b80b8822bfb609ac11ada1
2023-05-24 23:02:03 +00:00
Lyndon Maydwell
bd513ea704 Adding functionCommands to DC API for UDF Incrementaion Function APIs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9288
Co-authored-by: Brandon Martin <40686+codedmart@users.noreply.github.com>
GitOrigin-RevId: b7242146480ff38a53cfdf95b1a44d44cbd37c5b
2023-05-24 22:36:25 +00:00
Varun Choudhary
1a68d766fc console: add tolerance time in cron trigger e2e test
This PR adds e2e test for tolerance time in already existing cron trigger e2e tests.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9280
GitOrigin-RevId: e3159c89f39e74fb9feb5c332d1ba609f96939bd
2023-05-24 15:29:50 +00:00
Rishi Divate
bb290c38fe docs: GA readiness for MySQL, MariaDB and Oracle
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9252
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 45abdb23b215e5cb6ae1628b8a42131f2df207ca
2023-05-24 14:44:26 +00:00
Gil Mizrahi
209fec7bb1 fix: nq relationships - throw an error instead on unexpected relationship
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9282
GitOrigin-RevId: 82ffda0d93de976181bae7befa9b62868355cd16
2023-05-24 14:37:57 +00:00
Tom Harding
e0c0043e76 Upgrade Ormolu to 0.7.0.0
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9284
GitOrigin-RevId: 2f2cf2ad01900a54e4bdb970205ac0ef313c7e00
2023-05-24 13:53:53 +00:00
Krushan Bauva
e3df24507d server: add dynamic labels trigger_name and source_name to existing event trigger metrics
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9265
GitOrigin-RevId: 6fb6504f1a476ea6c8b810e067770920757e8dc6
2023-05-24 13:23:43 +00:00
Sameer Kolhar
6d27ad97ae server: send request to schema_registry service every time the GQL schema is updated
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8922
Co-authored-by: Naveen Naidu <30195193+Naveenaidu@users.noreply.github.com>
GitOrigin-RevId: a0f3b0c2b2d039e9137ff816b41611e239ed2201
2023-05-24 12:51:19 +00:00
Vijay Prasanna
17f1e5ebb2 console: remove beta lables for mysql, oracle, mariadb & snowflake
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9278
GitOrigin-RevId: 731ffbe49a8e6c20535fe291e2d4e9c8c8984472
2023-05-24 12:21:13 +00:00
Tom Harding
10b773066a Run ormolu on the contrib directory
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9279
GitOrigin-RevId: 4b45fad3983394722034f9d8267a8bd0d2358453
2023-05-24 10:20:01 +00:00
Nicolas Beaussart
cad58e0c43 console: fix storybook lagging promises
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9132
Co-authored-by: Divi <32202683+imperfect-fourth@users.noreply.github.com>
Co-authored-by: Nicolas Inchauspe <710410+nicoinch@users.noreply.github.com>
GitOrigin-RevId: c92295b98c8db2b0ecc6f964b02f49820db4d77d
2023-05-24 09:57:29 +00:00
Rob Dominguez
25436bcea9 docs: add the dalles to gcp regions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9274
GitOrigin-RevId: 67a17c6d5902eec25ae70ab3cbe637073745d897
2023-05-24 09:12:43 +00:00
Nicolas Inchauspe
324dd8b1ad Fix monitoring tab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9022
GitOrigin-RevId: e2c1cad5d419a827a36403d297d08cdeffd26160
2023-05-24 09:07:40 +00:00