Commit Graph

6082 Commits

Author SHA1 Message Date
Daniel Harvey
dc99e919d9 server/tests: search for 'things containing db name' not just 'db name'
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7343
GitOrigin-RevId: 2c8be65c71eec1ada4a0ca716d0b95ba21325a0d
2022-12-21 11:58:32 +00:00
Tom Harding
aa63e58d79 Fix regression test for Yugabyte
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7347
GitOrigin-RevId: 073a5a121440b822b0b393ee3bf3fea640ffb47f
2022-12-21 10:32:58 +00:00
Stef Moreno
81a9e5318f docs: add default values to db matrix
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7327
GitOrigin-RevId: 9b4db597de62adfff17dc6715352a39068d391a1
2022-12-21 09:50:27 +00:00
Samir Talwar
8625228ab3 pool: Add test coverage to the resource pool.
Adds a bunch of tests to the _resource-pool_ code to try and track down a bug.

Not surprisingly, all tests pass, which means that this didn't help. I still think it's worth keeping them.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7330
GitOrigin-RevId: 6d4deb9af5b192b3a0aa34ac0751d28e12b22b48
2022-12-21 09:45:58 +00:00
Solomon
c081f6ac6e Fix integration test for get_table_info
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7353
GitOrigin-RevId: 91fa4e8be2d022f29d17985fa241f4ff14421462
2022-12-21 04:41:07 +00:00
hasura-bot
8eaaf810a0 docs: add Hasura logo (fix #5934 )
GITHUB_PR_NUMBER: 9059
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9059

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6174
Co-authored-by: Anand Bhat <65865566+anandgvb@users.noreply.github.com>
GitOrigin-RevId: eb33d434eae74b4a6996d0f9cbcfe72f047ca8bd
2022-12-21 04:03:48 +00:00
hasura-bot
f1be3b34b1 docs: fix typo in operations tab
GITHUB_PR_NUMBER: 9322
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9322

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7352
Co-authored-by: Shahidh K Muhammed <4124733+shahidhk@users.noreply.github.com>
GitOrigin-RevId: 5098613de6b5c1edce2fd4dcbb67128f4789d05d
2022-12-20 23:47:46 +00:00
Solomon
d4700283e7 Applies template transform in get_table_info metadata call
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7349
GitOrigin-RevId: c9e7dd70bf7ff27807028f99254ce8973acdc468
2022-12-20 23:39:49 +00:00
Solomon
ca6a46790c [GDC] Add Athena Test Fixture
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6934
GitOrigin-RevId: 31c9071b9e904fbe31034157d83605e0a625bef1
2022-12-20 18:47:07 +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
Sean Park-Ross
32f992d08f Docs: Add SSO docs to deployment/cloud
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6346
Co-authored-by: Sandeep Raj Kumar <17796073+SandeepSamba@users.noreply.github.com>
GitOrigin-RevId: ad766187e34f3a1d96df40f23b6f03ffbd6ff47b
2022-12-20 10:37:41 +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
Abby Sassel
d0f31e59e8 server/tests: cleanup RemoteRelationshipStringifyNum8387Spec
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7333
GitOrigin-RevId: 91a1d4726523033e7b3018d18b45aa98babac7a7
2022-12-20 08:45:38 +00:00
Marion Schleifer
dc0dc30a06 docs: capitalize hasura features
## Description

[Jira ticket](https://hasurahq.atlassian.net/jira/software/projects/DOCS/boards/19?selectedIssue=DOCS-102).

This PR capitalizes Hasura features based on our [feature capitalization guide on the docs wiki](https://hasura.io/docs/wiki/style/hasura-features/).

It also introduces some linting by prettier.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7260
Co-authored-by: Samir Talwar <47582+SamirTalwar@users.noreply.github.com>
Co-authored-by: Luca Restagno <59067245+lucarestagno@users.noreply.github.com>
Co-authored-by: hasura-bot <30118761+hasura-bot@users.noreply.github.com>
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
Co-authored-by: Stefano Magni <173663+NoriSte@users.noreply.github.com>
Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com>
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
Co-authored-by: Daniele Cammareri <5709409+dancamma@users.noreply.github.com>
Co-authored-by: Brandon Martin <40686+codedmart@users.noreply.github.com>
GitOrigin-RevId: 5946f313cb44c639fac61e6c7fb44f704ee2a709
2022-12-19 20:03:55 +00:00
Brandon Martin
5aa1385644 Revert catalog version and migrations from #7034
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7306
GitOrigin-RevId: bf5461ed3127052d7f2b2d0521d5f59a3ec90d04
2022-12-19 18:39:58 +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
Samir Talwar
5910864845 Docker: Upgrade CockroachDB and help all databases shut down correctly.
1.  Upgrade CockroachDB to v22.2 stable, so we're no longer testing against a beta release.

2.  Use init when databases refuse to honor shutdown signals.

    Sometimes programs need help. Without this, CockroachDB and Azure SQL Edge (SQL Server for arm64) ignore the signal sent by `docker compose down` and wait to be forcibly killed, which doesn't seem very sensible.

    This might also be true for SQL Server itself, but I haven't tested it.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7321
GitOrigin-RevId: b8085d1dd2974d3aaf09194916d7ceb3f459b6b5
2022-12-19 15:33:59 +00:00
Marion Schleifer
e5db48af61 docs: add availability badge for cloud api ref
## Description

[Jira ticket](https://hasurahq.atlassian.net/jira/software/projects/DOCS/boards/19?selectedIssue=DOCS-273)

This PR adds availability badges to the [API reference](https://hasura.io/docs/latest/api-reference/index/) in docs, so that they are in line with the feature docs.

I only found one instance where the badge was missing, which is the [Cloud API reference](https://hasura.io/docs/latest/api-reference/cloud-api-reference/). Everything else (except the [Source Health Check API](https://hasura.io/docs/latest/api-reference/source-health/) - which already has an availability badge) seems to be available in all editions.

Whoever reviews this, please let me know if I'm missing something here and if more badges are required.

## Quick links

[Cloud API Reference](https://marion-docs-add-availability.hasura-docs-mono.pages.dev/docs/latest/api-reference/cloud-api-reference/)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7312
GitOrigin-RevId: 433c885d65597228039c993e29d38eee5cb140fa
2022-12-19 14:21:52 +00:00
Abby Sassel
a8500b44ed server/fix: stringify-numeric-types option in remote database relationships (fix #8387)
Fix bug where `stringify-numeric-types` option is not respected in remote database relationships

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7302
GitOrigin-RevId: a649b00b45ca0f67dc84ad893d3d98529b064c77
2022-12-19 14:04:58 +00:00
Samir Talwar
07be94c4eb server: Destroy metadata database connection pools on shutdown.
We currently let the garbage collector and/or the operating system clean up our mess. This is mostly fine in production (kind of) but a problem when we want to start many HGE servers in parallel for testing purposes.

Shutting them down should, in theory, ease the load.

There is more work to be done in the API test suite before this is very helpful. Right now the test suite actually runs the finalizers on the server context straight away and then uses the leaked resources. As there's no way to actually "close" a connection pool, it keeps working regardless. If we wanted to be strict about this we might want to add a "closed" flag to `Data.Pool` which would cause an exception on `withResource` after closing it.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7299
GitOrigin-RevId: ba02f96c7b5b06ba3ba7080a5583a56cb0efcfa7
2022-12-19 12:46:42 +00:00
Daniel Harvey
9c36e27090 [tooling] fix ghcid commands in Makefile
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7311
GitOrigin-RevId: b1ef35807667a1c154bfe4282e65688bd2a40109
2022-12-19 11:43:29 +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
Gil Mizrahi
b370ee55f1 remove references to MSSQL_DOCKER in dev.sh
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7316
GitOrigin-RevId: c562bb6a5a7d769620a4119837cfeb992ced4bda
2022-12-19 10:00:13 +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
Samir Talwar
9175ee3b33 Docker: Add explicit platforms for databases.
Some databases don't provide `arm64` Docker images, leading to warnings when running `docker compose up` on macOS arm64.

We can suppress these warnings by explicitly stating that we want the amd64 images, even on arm64 machines. (They run through virtualization.)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7309
GitOrigin-RevId: 8e5edfd2508d5c5007162ad4056c7ec32793faef
2022-12-18 23:07:22 +00:00
Rob Dominguez
8b4374202f docs: add docs devcontainer
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7296
GitOrigin-RevId: 68d9ac0bc8697aad0661480b33f65949ffdc8a80
2022-12-16 17:39:29 +00:00
Sean Park-Ross
47eeace9a6 Docs: Switch to SWC
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7304
GitOrigin-RevId: c413cc5145b54ef89b16aef792332a85b681b3d7
2022-12-16 15:54:07 +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
Daniel Harvey
2bfca9941d [server] newtypes for BigQuery projectId and dataset
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7279
GitOrigin-RevId: 878367c073280111f381eec75c5b53e9e02bd3cd
2022-12-16 13:19:05 +00:00
Sean Park-Ross
6cc40a54e1 Docs: Remove response body analysis
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7303
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 66ed5829d498b871d30883a50cfdd52412aa01e4
2022-12-16 11:05:22 +00:00
Karthikeyan Chinnakonda
0a68d00422 server: remove a redundant argument passed to replaceMetadataV2
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7291
GitOrigin-RevId: 841144cdf9e70fb682cd27ea5f918b168f2a3bbd
2022-12-16 10:21:04 +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
Jesse Hallett
4d6604ba08 server: event trigger codecs
Codecs for event triggers, including webhook transforms. These are not hooked into the higher-up table metadata codec yet because some backend implementations implement event triggers with `error` which causes an error when codecs are evaluated. I plan to follow up with another PR to resolve that.

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

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7237
GitOrigin-RevId: 8ce40fe6fedcf8b109d6ca50a505333df855a8ce
2022-12-15 20:38:21 +00:00
Daniele Cammareri
917d67154e docs: add import from openAPI doc
This PR adds the documentation for the Import Action from OpenAPI feature

<img width="959" alt="image" src="https://user-images.githubusercontent.com/5709409/207611375-913d4eb2-9af0-4ac5-82e8-0a0709ce3b1a.png">

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7276
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: 981ab2e3df7d00fabd6963eb97ee477ca7bd2c5d
2022-12-15 18:39:56 +00:00
Tom Harding
1d0b466954 Run the DefaultRootFieldSpec tests on all backends.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7293
GitOrigin-RevId: f7c22212badc11016e87a491bb0017642b3ac7c0
2022-12-15 18:18:29 +00:00
Jesse Hallett
c265e303f6 server: codecs for remote schemas metadata
These codecs should fully cover the `remote_schemas` property of the Metadata type.

Ticket: [GDC-522](https://hasurahq.atlassian.net/browse/GDC-522)

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6812
GitOrigin-RevId: 1b256f6829486295957c232b92ff184bd9a86469
2022-12-15 17:39:22 +00:00
Philip Lykke Carlsen
bd2e2080f8 server/tests: Port TestGraphQLQueryFunctions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7158
GitOrigin-RevId: a4b3ca8565df37905665303f96fd40ec4b9e76dd
2022-12-15 16:42:55 +00:00
Rob Dominguez
4d64644ae1 docs: add rules for tabs and include groupId prop
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7183
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 8647d3fcfd57c3419ef2be7864172d63861779c1
2022-12-15 16:09:53 +00:00
Tom Harding
ae33e34e2d Implement permission checks in the API tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7264
GitOrigin-RevId: 55ff8ff31609b7598d2382ded5dd96f5825ee4fd
2022-12-15 16:02:31 +00:00
paritosh-08
9f99a40f2d Revert "server: fix MSSQL event trigger next_retry_at"
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7290
GitOrigin-RevId: 4cb461dd6f25e55ba1c9bd587d98a56f71ff8223
2022-12-15 15:31:40 +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
6f5bd9cb63 frontend: re import code into new console code
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7280
GitOrigin-RevId: e403f0a05ee94ee0ddac0e263af44b15706a7d00
2022-12-15 10:04:26 +00:00
Naveen Naidu
282e94b2de pro/server: add user_id of the collaborator in http_log
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7154
GitOrigin-RevId: 6f60a7c7be5b083e6adf6c3ab9991142f62434df
2022-12-15 07:49:37 +00:00
Tom Harding
f2dd4a5eb7 Remove *Source fields from API test permissions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7275
GitOrigin-RevId: 44345ec361fdbb93f2c166825e5d78983759b5b0
2022-12-14 18:43:44 +00:00
Samir Talwar
beb20c7dab server/tests-py: Remove a check for PostgreSQL 10.
We no longer support this and therefore don't run tests against it.

This also refactors the code a little so it doesn't have to skip running a PostgreSQL-specific test against MS SQL Server.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7201
GitOrigin-RevId: 307c2ab0052162c012f7b1c55866b57f2fa6d9a6
2022-12-14 16:57:28 +00:00
Abby Sassel
57f456a4cf add run-new.sh docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7278
GitOrigin-RevId: 6c17cc846b39a4236f65dd5ab6baac4529b38f4c
2022-12-14 16:11:00 +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