Commit Graph

5215 Commits

Author SHA1 Message Date
Vijay Prasanna
854edd07c4 feature (console): update gdc methods to fetch config schema from metadata API
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5875
GitOrigin-RevId: e0f0a5c17251fbdab4955cfc1abc2ba3fc4e27b5
2022-09-19 08:24:51 +00:00
Daniele Cammareri
df06d5cb0c console: new remote schema preview tab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5896
GitOrigin-RevId: 43c2a1b1331c58ad502c3da1ea87e29df6d9ab8c
2022-09-19 07:48:16 +00:00
Abby Sassel
71597778c9 server/postgres: fix non-latin text elements in array literals (copy). close hasura/graphql-engine#8961
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5916
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: 9063f7ff39f684c4ab43f093706b872021b67b13
2022-09-18 16:08:15 +00:00
Daniele Cammareri
f34bd93e9c console: remove allow list feature flag
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5889
GitOrigin-RevId: b9a3bab2bd83edb94137603850b405df1766e43b
2022-09-18 15:39:51 +00:00
Rikin Kachhia
30bc2185e6 install manifests: add offline console assets env var to docker-compose files
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5833
GitOrigin-RevId: 44007a91f06ea9a1abdfc98dd3ca512ab83b85a2
2022-09-17 22:49:33 +00:00
Philip Lykke Carlsen
26cdc03aa4 fix(#8904): Make BigQuery Computed Fields arguments optional
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5909
GitOrigin-RevId: 0d7c7de273c27bbd2338f42253754be0a06ea66e
2022-09-17 22:41:19 +00:00
Solomon
85cfd91908 allow exporting dc-agent test descriptions
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5925
GitOrigin-RevId: a508e942c61c775823dff440a37fd8769ca42e21
2022-09-17 02:20:31 +00:00
awjchen
c3840fe2d1 server: graphql-ws: stop sending pings in response to pongs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5882
GitOrigin-RevId: 07fad6a24bb6eed9807e785e8201517126f7c302
2022-09-17 00:01:53 +00:00
Sean Park-Ross
56589b9f9a Docs: Add Hasura Cloud section in deployment. Add disaster recovery information
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5712
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: f50f51172675153db388e360e85e31190dc77f3a
2022-09-16 17:10:37 +00:00
Sean Park-Ross
cabc8bd3ce Docs: Change some Citus Hyperscale references to Postgres and amend info to specify Postgres flavours
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5893
GitOrigin-RevId: 0a8bb0fa7df101691e71ddf4b16953893e59499d
2022-09-16 16:11:53 +00:00
Rob Dominguez
bd60a01571 Docs: update feedback component
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5856
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: 5b2ca6a4079d53a2c38fc99436d59978195da03d
2022-09-16 16:01:07 +00:00
Poojan Savani
d0af976ac2 Remove cron_trigger/scheduled_events using scheduled_time field
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5915
GitOrigin-RevId: ea4fa8eaf47185465bb9545c07dc4dbaab91b718
2022-09-16 15:24:04 +00:00
Abby Sassel
3056678e04 server/postgres: Implement execution of aggregation predicates
PR for the translation / execution step of [aggregation predicate filters](https://github.com/hasura/graphql-engine-mono/issues/5174).

[`translateAVAggregationPredicates`](translateAVAggregationPredicates) is the main change of note, everything else is a supporting or helper function. Please note this doesn't yet include [tests relating to permissions](https://hasurahq.slack.com/archives/C01RZPEPF0W/p1662560092197769); I decided to raise a PR without them for slightly faster feedback. I may include them in this PR or a separately if it's not trivial.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5724
GitOrigin-RevId: fcac258b64066e2bd45108372165a16fd957f5ab
2022-09-16 15:01:03 +00:00
Daniel Harvey
4bb4c91c0c tooling: add coreutils to macos install docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5914
GitOrigin-RevId: 4a7383b7537987a5ab5f744ab49713c0f532a1b4
2022-09-16 14:16:21 +00:00
Rob Dominguez
d67e717524 Docs: update cloud db guides
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5901
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: a9c5cb43437d31c08b2ced0ea156f56a4224ba5d
2022-09-16 13:50:46 +00:00
Matt Hardman
35873b1897 console: create new form component without using forwardRef
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5755
GitOrigin-RevId: 9078553499377484b15d53bfbe0c19eaee9a376a
2022-09-16 10:50:07 +00:00
Rikin Kachhia
bd071ddc7f docs: update Kriti reference
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5898
GitOrigin-RevId: ef2227eea519dde332eb20ecb5610413576599dc
2022-09-16 09:07:51 +00:00
Karthikeyan Chinnakonda
cb2349d5a0 server, pro server, console: provide an option to not include rows count while fetching scheduled events
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5650
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
Co-authored-by: Daniele Cammareri <5709409+dancamma@users.noreply.github.com>
GitOrigin-RevId: 8a55f3ca52cfbda4d4e75372b813b7acd421eabb
2022-09-15 19:12:04 +00:00
Abhijeet Khangarot
6762e7b28c pro-console: integrate survey form in pro console
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5854
GitOrigin-RevId: 69904a84bd823db0000f3c81ed297d1006d785af
2022-09-15 18:02:13 +00:00
Stefano Magni
a0f4f00bfd console: Add Sentry
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5699
Co-authored-by: Rishichandra Wawhal <27274869+wawhal@users.noreply.github.com>
Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com>
GitOrigin-RevId: 00f2c5d25012b21f4e8763ef578598a3a11896e4
2022-09-15 17:00:44 +00:00
Daniel Harvey
913f3f12e4 console: use query/v2 endpoint to run sql for CockroachDB
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5879
GitOrigin-RevId: f90fee0a646b540402eb501b790d2e0c0b09373b
2022-09-15 14:32:58 +00:00
Samir Talwar
a24cdd9b49 Prepare PostgreSQL for running tests in parallel.
This makes two changes to the Docker Compose files that we use for local testing:

1. We disable `fsync`. On my machine, this decreases the time taken to create a new database from ~5s to less than 0.1s. The trade-off is that you might lose data, which we don't care about, as this is for testing.
2. We increase the maximum number of connections from the default, 100, to 1000. This allows us to run more tests in parallel without hitting connection limits.

These changes won't have any meaningful effect for now; they simply allow us to parallelize tests against PostgreSQL in the future.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5892
GitOrigin-RevId: 5d0d0ab37fdfbf4c9e20084d3cbedf647f54a04e
2022-09-15 14:03:23 +00:00
Samir Talwar
1a5aaae9cf server/tests-py: Add a --hge-bin argument to the Pytest runner.
This argument allows the user to specify how to run HGE, rather than starting it beforehand. The runner will start a new instance of HGE for each test class.

This does not provide isolation, as the database is still re-used, but it helps us get closer.

You can try it yourself by executing:

```
$ cabal build graphql-engine:exe:graphql-engine
$ ./server/tests-py/run-new.sh
```

This doesn't affect CI at all.

I also fixed a few warnings flagged by Pylance.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5881
GitOrigin-RevId: ea6f0fd631a2c278b2c6b50e9dbdd9d804ebc9d4
2022-09-15 12:31:12 +00:00
paritosh-08
ab71adc3a0 server, pro: event trigger auto cleanup (increment 3)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5823
Co-authored-by: pranshi06 <85474619+pranshi06@users.noreply.github.com>
Co-authored-by: Puru Gupta <32328846+purugupta99@users.noreply.github.com>
Co-authored-by: Karthikeyan Chinnakonda <15602904+codingkarthik@users.noreply.github.com>
GitOrigin-RevId: 3d4af905d5df4c05107ad46ef29f4c0a567ff754
2022-09-15 11:46:22 +00:00
Lyndon Maydwell
ba0a685211 CI Support for Data Connector Agent Tests - GDW-336
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5808
GitOrigin-RevId: 817575185cdbd21985c647f22d5b643ce0852ef6
2022-09-15 09:47:24 +00:00
Anon Ray
1d9844ee4e server: use metadata DB ID as ProjectID for EE lite projects
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5874
GitOrigin-RevId: 63a4016227eeeceb0143cf84ed4c13b14f424d4b
2022-09-15 09:13:56 +00:00
Varun Choudhary
8bc3b27bb1 console: fix loading state while modifying/creating rest endpoint
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5870
GitOrigin-RevId: baa5d82b327f8aa0b4bc3e9c64047d21e8c41b95
2022-09-15 08:38:39 +00:00
Daniele Cammareri
85d5082322 console: add new allow list manager under feature flag
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5816
GitOrigin-RevId: e240a08524ad688d36d362d2be03697b7889fd7f
2022-09-15 08:04:56 +00:00
Lyndon Maydwell
118b03e329 RMGetSourceKindCapabilities doesn't modify metadata
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5883
GitOrigin-RevId: dbf69fd3f6086eca0e9b2ed9b47d19ae56339e63
2022-09-15 07:35:09 +00:00
Mohd Bilal
9552b38d1b Docs: Update CLI docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5585
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 655bdb574eb609fbef79a4dd68be77449585db44
2022-09-15 05:37:46 +00:00
Lyndon Maydwell
64189b96e2 CI Tests for Data Connectors SDK - GDW-91
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5830
GitOrigin-RevId: b2df558dc9fdfe0b1f9c49e8a43f2fd315dd5b58
2022-09-15 04:44:03 +00:00
Samir Talwar
bff1309344 server/tests-py: Make HGECtxGQLServer a fixture.
Starting it and stopping it for the various tests that actually use it.

There are only a few.

This also removes some dead code and fixes warnings in _test_webhook_request_context.py_.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5846
GitOrigin-RevId: 7760467f9de7b1f9718e7482275c298eeaa3ad3a
2022-09-14 21:42:40 +00:00
Samir Talwar
f1ff3ceb76 Tidy up the .envrc file a little.
* Improve the error messages.
* Use Bash syntax rather than sh syntax where possible.
* Fix shellcheck warnings.
* Return early to reduce indentation.
* Use the `use` function.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5868
GitOrigin-RevId: 78d76a6eba5beccabb18c39a9b16ef59b936bacb
2022-09-14 20:40:10 +00:00
Chris Martin
2736ee27b9 Guides - Best Practices for Production Environments
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5695
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 108ecf326678f717c0e496d5120371a6e0a14845
2022-09-14 16:41:48 +00:00
Luca Restagno
ee52fd5d2c console: remove CockroachDB from the connect db form
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5878
GitOrigin-RevId: b3db0e459735982c5525e1415810b05152fb016a
2022-09-14 15:30:43 +00:00
kodiakhq[bot]
f2931a4d32 server: import pg-client-hs with history
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5735
Co-authored-by: Vamshi Surabhi <6562944+0x777@users.noreply.github.com>
Co-authored-by: Alexis King <759911+lexi-lambda@users.noreply.github.com>
Co-authored-by: Rakesh Emmadi <12475069+rakeshkky@users.noreply.github.com>
Co-authored-by: Auke Booij <164426+abooij@users.noreply.github.com>
Co-authored-by: Brandon Simmons <210815+jberryman@users.noreply.github.com>
Co-authored-by: Lyndon Maydwell <92299+sordina@users.noreply.github.com>
Co-authored-by: Anon Ray <616387+ecthiender@users.noreply.github.com>
Co-authored-by: Evie Ciobanu <1017953+eviefp@users.noreply.github.com>
Co-authored-by: Swann Moreau <62569634+evertedsphere@users.noreply.github.com>
Co-authored-by: jkachmar <8461423+jkachmar@users.noreply.github.com>
Co-authored-by: Robert <132113+robx@users.noreply.github.com>
Co-authored-by: awjchen <13142944+awjchen@users.noreply.github.com>
Co-authored-by: Karthikeyan Chinnakonda <15602904+codingkarthik@users.noreply.github.com>
Co-authored-by: Tom Harding <6302310+i-am-tom@users.noreply.github.com>
GitOrigin-RevId: 6a3940b2596fc178379b85d5fa79bd9ac83457e2
2022-09-14 14:51:34 +00:00
Luca Restagno
82528f515c console: set big query as GA release type
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5864
GitOrigin-RevId: a4825fe4d41f99b62c7f52430eb46ae68b7ab18b
2022-09-14 14:08:07 +00:00
Rikin Kachhia
255310f9ed console: show cache button in EE console
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5840
GitOrigin-RevId: 3ba01eaa04ae66ee62b60403643e71bb720f961a
2022-09-14 13:36:37 +00:00
David Overton
cbddcce26b Data connector cache invalidations
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5820
GitOrigin-RevId: ded80e378901cc0c0ca12eb67d9264756a8d6ff4
2022-09-14 13:00:47 +00:00
Stefano Magni
0f665279bd console: improve is_generated types
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5834
GitOrigin-RevId: 64ad30b0e4af08dc71e98baecae3fe1fb08989c0
2022-09-14 08:52:49 +00:00
Solomon
4a0446852c Adds configSchema to get_source_kind_capabilities
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5860
GitOrigin-RevId: 9bc13af5104251c509194d28ece81066643ab2a2
2022-09-14 07:07:04 +00:00
Lyndon Maydwell
2ef11a4766 Add --dry-run switch to graphql-engine:test:tests-dc-api [GDW-338]
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5847
GitOrigin-RevId: 97011a617f0a305109f6f8d29293a4898e0bac10
2022-09-14 06:27:29 +00:00
Samir Talwar
ee995aacc1 Extract out functions from columnParser in Backend.
The intent is to generalize `columnParser` to the point where it is the same across all backends, and then remove the interface in favor of a single implementation.

This extracts out `enumParser` and `possiblyNullable` as the two main areas that differ across backends. We may split `possiblyNullable` further so that we can extract some of that logic out into a common function too.

With these changes, the various `columnParser` implementations become semantically equivalent. They still do different things, and so reconciling them will require further changes.

Co-Authored-By: Antoine Leblanc <antoine@hasura.io>

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5841
GitOrigin-RevId: eec1770931eed5d72da70c97d7d0f00e33fa15d2
2022-09-13 21:22:25 +00:00
Sean Park-Ross
8e91478d94 Docs: New What's New Section
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5455
GitOrigin-RevId: d3782b934989e6893416cf3044e48146461edf1d
2022-09-13 20:23:43 +00:00
Samir Talwar
e12923a1b3 Demand Python 3.9 to run the server's Python integration tests.
CI has already been upgraded.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5857
GitOrigin-RevId: 28a56c5fd61f425b76df478fd230e6944ce8122f
2022-09-13 20:20:19 +00:00
Brandon Simmons
82f129ff7c PLAT-75: Log uncompressed_response_size
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5827
GitOrigin-RevId: c98e5075f38737d9eb9cf467a62032ca5984304e
2022-09-13 15:37:14 +00:00
Matt Hardman
3fd5ea3965 feature (console): enable table tracking for GDC sources
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5772
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: d04d2a1f1dccc383c9a17b9fb63ea2b435adb7e9
2022-09-13 09:06:59 +00:00
paritosh-08
db710d38b7 server, pro: event trigger auto cleanup (increment 2)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5746
Co-authored-by: pranshi06 <85474619+pranshi06@users.noreply.github.com>
Co-authored-by: Puru Gupta <32328846+purugupta99@users.noreply.github.com>
Co-authored-by: Karthikeyan Chinnakonda <15602904+codingkarthik@users.noreply.github.com>
GitOrigin-RevId: f4e5e06389ca57bdb5f7771f459c07418787111d
2022-09-13 08:34:52 +00:00
Sooraj
f728f55565 console: add data-trackid to actions, events and remote schema create journeys
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5785
GitOrigin-RevId: 887f7f53adc097b99648228010d5ea9f84e1adcb
2022-09-13 05:56:52 +00:00
Naveen Naidu
005dbf43cb server: event triggers should be dropped when a previously present source is dropped in replace_metadata
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5739
Co-authored-by: paritosh-08 <85472423+paritosh-08@users.noreply.github.com>
GitOrigin-RevId: 772de8bb6a55a0002885e08a778c16f22ea0b113
2022-09-13 04:18:21 +00:00