Commit Graph

5520 Commits

Author SHA1 Message Date
Daniel Harvey
f4f4221d04 tests: Docker Compose healthchecks
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6282
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
Co-authored-by: Samir Talwar <47582+SamirTalwar@users.noreply.github.com>
GitOrigin-RevId: c2b1f958364ce5e1ef704fa1275d18ac810ca35b
2022-10-17 13:20:31 +00:00
Varun Choudhary
3757731228 console: Implemented batch_size API limit to tackle GraphQL batching attacks
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6337
Co-authored-by: Daniele Cammareri <5709409+dancamma@users.noreply.github.com>
GitOrigin-RevId: 826bbbf33ad9608db7807d919ba685d1b15c4e32
2022-10-17 12:39:02 +00:00
Samir Talwar
ed4d948adf server/tests-py: Make run.sh work on aarch64.
This helps with running the tests locally on a recent Mac.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6304
Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com>
GitOrigin-RevId: eb5c6a185f68b216c94df2581acf71906cce7872
2022-10-17 12:08:25 +00:00
Varun Choudhary
b60b38d70b console: show total max connections in pool settings fields for CE/EE/Cloud
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6080
GitOrigin-RevId: aafa8350f8d00d3f8ddb6e51964f06a25455aac5
2022-10-17 10:38:34 +00:00
Mohd Bilal
06138634bc cli: use github.com/stretchr/testify/require assertions in internal/hasura/catalogstate tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6360
GitOrigin-RevId: 1c0f1666fb0ca70d7cf00e6584c549f1bf044c69
2022-10-17 09:57:59 +00:00
Vijay Prasanna
f15e3f0148 feature (console): use list_source_kinds to get available drivers for the connect DB page
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6359
GitOrigin-RevId: 2d75899258d1581c840ef14b161532f0f10a7b5e
2022-10-17 09:05:34 +00:00
Rakesh Emmadi
5666161ac9 server/multitenant: resize sources' connection pools when a cloud project is scaled, global connection pooling
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5708
Co-authored-by: Naveen Naidu <30195193+Naveenaidu@users.noreply.github.com>
Co-authored-by: pranshi06 <85474619+pranshi06@users.noreply.github.com>
Co-authored-by: Puru Gupta <32328846+purugupta99@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: Anon Ray <616387+ecthiender@users.noreply.github.com>
GitOrigin-RevId: 513d497548d89b397d4a299355b11607daec3c7e
2022-10-17 08:06:12 +00:00
Solomon
4700ac44fb Webhook Transforms: Move RequestCtx into a type family
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5975
GitOrigin-RevId: 08ad528b2600379deb4cef9d39968126c7c745d8
2022-10-16 03:55:06 +00:00
Shraddha Agrawal
60411b95e5 docs: update region migration docs
fix for Jira ticket: https://hasurahq.atlassian.net/browse/CPS-251

This PR adds more context why user's should change the region of their cloud project to a region closer to their database. This is part of the changes of the MRAU project.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6312
GitOrigin-RevId: 3868b0659bc6cfcdc4861bda8433ed342049c6b5
2022-10-14 13:11:36 +00:00
Solomon
011e7be360 Dispatch JSON serialization by BackendType for Table Names in Test Suite
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6350
GitOrigin-RevId: 736a41592c3acd018fa1777dafc0b2e8098d2dc6
2022-10-14 01:47:49 +00:00
Rob Dominguez
c326cf4637 docs: reformat links
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6331
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 6c059c65f3c260c15cc565d47e13a3a479ca766c
2022-10-13 19:48:32 +00:00
Daniel Chambers
6d8231903c Reworked scalar type determination in SQLite agent [GDC-455]
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6335
GitOrigin-RevId: baf7619a0c705bddcbd75f8842bf8fcfeeaa05c9
2022-10-13 19:03:25 +00:00
Jesse Hallett
c6bcf1cd76 server: codecs for object & array relationships, and computed fields
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5923
GitOrigin-RevId: e0c7584539998f5af16795f023640aa5c659b783
2022-10-13 17:57:23 +00:00
Rob Dominguez
35ce169821 docs: add tl;dr and improve page structure
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6345
GitOrigin-RevId: 0050ee4884713d67059145436cf8c5de64ded896
2022-10-13 17:00:17 +00:00
Krushan Bauva
63f90cc93c server: add api limit - batch limit
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6183
Co-authored-by: Naveen Naidu <30195193+Naveenaidu@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
GitOrigin-RevId: 517766e10a3e94a54b754df69c47c61232d8dbb2
2022-10-13 16:54:26 +00:00
Samir Talwar
0d4d7e6b1e server/tests-py: Start helper services in the test harness.
This makes it possible for the test harness to start the test JWK server and the test remote schema server.

In order to do this, we still generate the TLS certificates in the test script (because we need to install the generated CA certificate in the OS certificate store), and then pass the certificate and key paths into the test runner.

Because we are still using _test-server.sh_ for now, we don't use the JWK server fixture in that case, as HGE needs the JWK server to be up and running when it starts. Instead, we keep running it outside (for now).

This is also the case for the GraphQL server fixture when we are running the server upgrade/downgrade tests.

I have also refactored _graphql_server.py_ so there isn't a global `HGE_URLS` value, but instead the value is passed through.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6303
GitOrigin-RevId: 06f05ff674372dc5d632e55d68e661f5c7a17c10
2022-10-13 15:45:24 +00:00
Aravind K P
2e0cd9267b cli: port v1query package to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6334
GitOrigin-RevId: 094745ed3c8e6aaab5f7f01236ddbebba0f043ba
2022-10-13 15:06:56 +00:00
Nicolas Inchauspe
c3578869be console: fix frequently used columns dropdown
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6340
GitOrigin-RevId: 242b7c1e21d2d800697b8748b794a086a756d2ae
2022-10-13 14:37:46 +00:00
Philip Lykke Carlsen
10ae79173e Mention all src-rsr files in 'extra-source-files' section
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6341
GitOrigin-RevId: 90d9a43304ab48caa67f2d0267a821ebb51a362c
2022-10-13 13:58:20 +00:00
Vijay Prasanna
ea1ed79280 fix (console): introspection type name with customization breaks getTableColumns
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6319
GitOrigin-RevId: eb2d33b564695285970ca5b07d526e96a749326c
2022-10-13 13:30:14 +00:00
Daniel Harvey
4e23afed8d tests: disable stringifyNumbers in tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6338
GitOrigin-RevId: d3819dfda342af2b70df00d49edfc05dfa9582f5
2022-10-13 12:19:32 +00:00
Erik Magnusson
b2f89f6685 console: configure currently supported cockroach features
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6323
GitOrigin-RevId: 7c5929ef8f6d3d933c361c67dd99c7a5ce051f03
2022-10-13 11:28:19 +00:00
pranshi06
dccc2cea03 server: unauthenticated behaviour with Apollo ws
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4862
GitOrigin-RevId: 14db3fa732c7d6430795193e425769b63a221f19
2022-10-13 09:33:53 +00:00
Luca Restagno
cf672a1a59 console: Enable SSL Certificates Configuration in the Console for CDB
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6325
GitOrigin-RevId: 9f6e381dda3e2fcf60bb97c30732a46abb05242f
2022-10-13 08:04:32 +00:00
Daniel Chambers
da8533526c Adds explicit main schema option to SQLite data connector agent [GDC-455]
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6307
Co-authored-by: Solomon <24038+solomon-b@users.noreply.github.com>
GitOrigin-RevId: 90433478867ffc21826f07df8587da86bd43dc88
2022-10-13 04:20:11 +00:00
Matthew Goodwin
ea6d9226d7 Sql lite testing revisions
As I have been onboarding, in order to get a working sqlite agent/db running locally, I got some helpful steps from @mattshardman which I adapted into this testing setup.

Hopefully this should ease the pain for the next person needing to do this!

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6261
GitOrigin-RevId: 03a3f04e38f118898bfd1d27de9305739dee5276
2022-10-12 20:28:24 +00:00
hasura-bot
fba98a8217 docs: update docker-compose spelling, close #8886
GITHUB_PR_NUMBER: 9046
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9046

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6157
Co-authored-by: Amit Kumar Sharma <91947037+amit-ksh@users.noreply.github.com>
GitOrigin-RevId: b2172918456617ce4da4856abb1325180b19ecdd
2022-10-12 19:23:12 +00:00
Samir Talwar
96a768e526 Upgrade HLint to v3.4.1.
This upgrades CI and anyone using Nix to HLint v3.4.1.

If you're not using Nix, this doesn't actually _do_ anything on your
local machine; it's just a suggestion.

It also applies a bunch of simple HLint refactors, using
`make lint-hs-fix`.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6324
GitOrigin-RevId: de8267e4909d6dcd3f83543188517f3aaeebc5f3
2022-10-12 19:14:56 +00:00
Jesse Hallett
332faabc24 server: codecs for remaining database configuration types
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6062
GitOrigin-RevId: f1ba9fa30267d1825ba36480103cd973616f3079
2022-10-12 16:30:05 +00:00
Rob Dominguez
ac3c054b27 docs: add neon heroku-specific migration guide
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6302
GitOrigin-RevId: 5dfc0c6a194f42c48a5226902e02b80806cf35b3
2022-10-12 15:10:02 +00:00
Tom Harding
9242aea138 Add Delete tests for Cockroach
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6283
GitOrigin-RevId: 25c075741afbc7730cf13cd79c8838e812eb8cff
2022-10-12 15:03:32 +00:00
Samir Talwar
e78dc7f4eb server/tests-py: Remove checks for PostgreSQL 9.x.
We no longer run tests against these PostgreSQL versions.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6320
GitOrigin-RevId: 175ec5bd5db5fe0a96733f948a10b141aa40ba09
2022-10-12 14:27:48 +00:00
Tom Harding
97a9ce842a Update documentation to stop supporting Postgres 9.5
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6317
GitOrigin-RevId: 6f098f26943d0e2cba1725aaf2e76aaf1f50ebef
2022-10-12 13:37:23 +00:00
Samir Talwar
bebff269a6 server/tests-py: If a port is busy, try to figure out why.
Every now and again, I see in CI that a test will abort early because port 8080 is busy. Given that we're running in a fresh Docker container, this makes no sense to me.

On failure, it will now run `lsof -i :$PORT` to try and figure out what's listening on that port.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6285
GitOrigin-RevId: 5eb58d016b2f43872e2c78a7d89d27cfc3e22312
2022-10-12 13:28:03 +00:00
Nicolas Beaussart
391d8570a1 platform: rework css import to prepare the nx migration
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6272
GitOrigin-RevId: 43d52508dac9687184f6702d312a21232051503e
2022-10-12 12:47:51 +00:00
Daniel Harvey
557bbe0327 server: remove unused imports
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6314
GitOrigin-RevId: 7e22264c0d6159cb446af28bf9834f6abda3ab03
2022-10-12 11:30:29 +00:00
Mohd Bilal
7b5d61d04f CLI: port catalogstate package to use new errors package
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6259
GitOrigin-RevId: be90386154d7906a41c2334db5cc24fe5febf774
2022-10-12 09:45:51 +00:00
Mohd Bilal
0bd013653a cli: port pgdump package to use new errors package
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6263
GitOrigin-RevId: e410548ecba70e556e41a0377952555c3b40c8ef
2022-10-12 08:47:21 +00:00
Divi
66fa31944d ci: add catalog version for v2.14.0-beta.1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6308
GitOrigin-RevId: ceba6d62264603ee5d279814677b29bcc43ecaea
2022-10-12 06:40:35 +00:00
Brandon Martin
59820c5db5 server: Add tablePermissionsCommands to DataConnector API
Adding tablePermissionsCommands metadata api commands to dataconnector api

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5877
GitOrigin-RevId: feda63a963c6059a9ad72c0f1e13ed2dbb8e0d9b
2022-10-12 01:44:36 +00:00
Rob Dominguez
43c283d6b2 docs: fix broken link causing build fail
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6300
GitOrigin-RevId: d79391392abd162af1d4ec67373331e5051e23e5
2022-10-11 19:38:33 +00:00
paritosh-08
5c774cf839 server,pro: fix batch_size behaviour for auto event trigger log cleanup
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6279
GitOrigin-RevId: 20b8e6a22a26d97cd78655027aa2f30b7838462d
2022-10-11 19:27:53 +00:00
Sean Park-Ross
4c3775ecb8 Docs: FAQs for Heroku free resource deprecation
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6274
Co-authored-by: Marion Schleifer <5722022+marionschleifer@users.noreply.github.com>
GitOrigin-RevId: 6ce9851df79ab1da8fcb3a476b933770f2f2331d
2022-10-11 18:15:52 +00:00
Sean Park-Ross
3071787cf6 Docs: Reorder Neon in menu, Add logo to cloud db index, cap Database in cloud db docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6298
GitOrigin-RevId: eceba15c687f8deb6599ba845df17147bbbe87b9
2022-10-11 18:08:28 +00:00
Sean Park-Ross
de1f820511 Docs: Metadata directory format add missing files
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5564
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 6d1c188a4f7fbc74317dfa1e0bc25634f4306eef
2022-10-11 18:02:00 +00:00
Daniel Harvey
f2f83be6cc tests: re-enable pg-dump tests for Postgres 14
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6248
GitOrigin-RevId: f64989caa0768a5f309f38b147062e0bf3a61155
2022-10-11 17:53:25 +00:00
Mohd Bilal
56a26a74ee CLI: Add utility Match and print function for the new errors package
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6258
GitOrigin-RevId: fa3148c467b527fbe62cebca3177a39f9b02b38c
2022-10-11 16:41:57 +00:00
Luca Restagno
950836849d console: fix alter primary key for cockroachdb
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6292
GitOrigin-RevId: 0f449e08837c174627fb69ee611411b44ba88b62
2022-10-11 16:09:58 +00:00
Samir Talwar
1ffc19367d Push the Nix dependency management configuration to the OSS repository.
We don't need to hide it.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6255
GitOrigin-RevId: 9b46511c6b274dd7e8e52ee74644dc86c7d75872
2022-10-11 15:33:22 +00:00
Tom Harding
2f94bcf6c7 Add Update tests for Cockroach
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6271
GitOrigin-RevId: ecb38e084f433e29e3ae4e2a6f2039907afcf6d3
2022-10-11 15:18:56 +00:00