Commit Graph

5820 Commits

Author SHA1 Message Date
Mohd Bilal
e814260ccc cli: refactor util package to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6508
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 41f4842593a7226966c53ffd6314809adbd72266
2022-10-28 09:32:21 +00:00
hasura-bot
3ca779797d server: deduplicate Postgres function names with HashSet (close #8888)
GITHUB_PR_NUMBER: 9112
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9112

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6353
Co-authored-by: Daniel Shuy <17351764+daniel-shuy@users.noreply.github.com>
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: ebfb57b98fe93b86d5319dc78ac1308e00941a2e
2022-10-28 08:24:25 +00:00
Aravind K P
22ec874069 cli: port statestore/settings to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6492
Co-authored-by: Mohd Bilal <24944223+m-Bilal@users.noreply.github.com>
GitOrigin-RevId: 409b220908d773cc6b45bc7ebe11a6ea950e9d35
2022-10-28 07:51:58 +00:00
nevermore
f36b5697c0 console: Analytics cleanup in Neon Components
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6539
GitOrigin-RevId: 3e257247e65a9349e76e1485a2ab36383d94bcc6
2022-10-28 07:17:46 +00:00
Aravind K P
f82fc6d420 cli: port pkg/metadata to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6490
Co-authored-by: Mohd Bilal <24944223+m-Bilal@users.noreply.github.com>
GitOrigin-RevId: 10b2ddbd534895c28bc69a6cf1a68229f67e8e3d
2022-10-28 06:47:58 +00:00
Erik Magnusson
03b76e40e1 console: refactor browse rows to decouple redux
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6439
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 2088552f782faebbe3edfba8a2707733a67e89dc
2022-10-28 06:10:51 +00:00
Vishnu Bharathi
348668a3c5 ci: tag release v2.13.1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6593
GitOrigin-RevId: f91405a0ea5b7204c944b7f247e10f0d88c88d57
2022-10-28 05:38:33 +00:00
Erik Magnusson
b19f41280b console: enabled cockroachdb as beta
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6565
GitOrigin-RevId: 615fd753618e87662456d68c3006c79abaa210e8
2022-10-28 05:21:05 +00:00
David Overton
87bcdb97c7 Use JSON instead of GraphQL for comparison operators
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6563
GitOrigin-RevId: 0819414df199292e0146ce3009295ce3e49f2439
2022-10-28 01:14:09 +00:00
Matt Hardman
72dbafc319 console: add permissions form to work with GDC
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6558
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: 6ec7ca366a9a1aea987ca1a2c14811d4c44e4d60
2022-10-27 21:50:16 +00:00
Rob Dominguez
b30dc55321 docs: add alloydb guide
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6556
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: 783a111ef13d16f55806929ada5fafd9a339aa1d
2022-10-27 19:45:43 +00:00
Auke Booij
98ac94ae27 Benchmark the incremental metadata API
This introduces an adhoc operation to the benchmark of `huge_schema`, so that we can track performance of the incremental Metadata API.

This untracks a table that is not referenced by anything else in the `huge_schema` metadata, so that we don't need to cascade any changes. And then it tracks it again.

Benchmarking this will be valuable for working on `Hasura.Incremental`.

Results will start showing up in the benchmark report when this is merged to `main`.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6553
GitOrigin-RevId: 65dad4f7a5fe1c230c5def136640bb68f4a4aa9b
2022-10-27 19:40:24 +00:00
Daniel Harvey
8ad0c65051 [tests] api-tests use separate metadata database
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6573
GitOrigin-RevId: baa425216fc7394d01d0e2923d7c7e54598da40b
2022-10-27 19:08:45 +00:00
Daniel Harvey
2eb021fda5 [docs] Include details on how to setup Network Authorization on CRDB serverless
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6554
GitOrigin-RevId: 5ed581015e8f7d4f4b3842ce0758dd65c394e573
2022-10-27 18:26:01 +00:00
Sean Park-Ross
6f484431fc Docs: Add FAQs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5371
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
GitOrigin-RevId: 08c5f9cf9926a97a200270065b05809d9e76be1f
2022-10-27 18:09:47 +00:00
Daniel Harvey
b3471f27b8 [server] enable Cockroach subscriptions and re-add CustomFieldsSpec test
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6568
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: 678c4fcb55a576d52cdb8f40dcfe2bf7948e8863
2022-10-27 17:27:32 +00:00
Erik Magnusson
fa98bfc8ee console: fixed misspelled cockroachdb in database connect form
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6564
GitOrigin-RevId: ce19d5ec3b74cca6f34435cbe96aa0da3ca5aed7
2022-10-27 16:55:57 +00:00
Aravind K P
283866526f cli: port pkg/migrate to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6491
Co-authored-by: Mohd Bilal <24944223+m-Bilal@users.noreply.github.com>
GitOrigin-RevId: 37640b3f888f6ca68df6894fa1d0f9a5368136b6
2022-10-27 16:17:24 +00:00
hasura-bot
a649967d40 Update enable-https.mdx [ADD Traefik] #7571
GITHUB_PR_NUMBER: 9064
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9064

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6177
Co-authored-by: Azanul Haque <42029519+Azanul@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
Co-authored-by: Marion Schleifer <5722022+marionschleifer@users.noreply.github.com>
GitOrigin-RevId: 90dc86dae4b3c5a63996bb32de0d48045ad9dd07
2022-10-27 15:41:52 +00:00
Naveen Naidu
938a0a66cc server: do not apply default tenant time limits to Hasura EE
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6552
Co-authored-by: Anon Ray <616387+ecthiender@users.noreply.github.com>
GitOrigin-RevId: 2e4466308c3a9b5aba6dd55a79dae7de096a0f27
2022-10-27 15:37:00 +00:00
Erik Magnusson
2029e20d0c updated ssl certs to only be enabled on pro/cloud versions for cockroach
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6529
GitOrigin-RevId: 7281a213b382c5801fc4583cfdf178102b676470
2022-10-27 14:44:12 +00:00
Varun Choudhary
bdf1aee641 console: console support for actions response transform
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6455
Co-authored-by: Sooraj <8408875+soorajshankar@users.noreply.github.com>
GitOrigin-RevId: 82040e5a05c035f3319a94cfb6dd94acb5259505
2022-10-27 14:07:25 +00:00
Vijay Prasanna
4589af44b4 fix (console): unable to remove custom_name for a GDC table's column
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6566
GitOrigin-RevId: 518a99ae63b3157fb0331be0eec49146a8499a54
2022-10-27 12:56:53 +00:00
Tom Harding
78f3754953 Add Cockroach and Postgres to DataValidation tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6343
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: 9f5d98e180721eaf12fd4c4e60a42b6dee6b5cca
2022-10-27 12:20:41 +00:00
Samir Talwar
6a81bdd0b9 server/tests-py: Generate random ports for a few more helper services.
I missed these.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6481
GitOrigin-RevId: 8bc92c27c8de25bc3518be5b788e7b5c55867df8
2022-10-27 11:49:06 +00:00
Abhijeet Khangarot
6b1bda87b4 console: remove feature access check for neon
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6470
GitOrigin-RevId: 99d7ab426fedb086693af35d07958be7f7b6df75
2022-10-27 11:16:41 +00:00
Rob Dominguez
7891e3cee2 docs: add cosmos db cloud guide
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6507
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
GitOrigin-RevId: bc8e41a3641f960a72e3467425d33cb4f377f884
2022-10-27 10:05:25 +00:00
Rob Dominguez
1c8c88981e docs: improve Heroku FAQ
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6427
GitOrigin-RevId: 1c4f473b31a607e85524f48dfa2b6ae6e8312d96
2022-10-27 10:00:07 +00:00
Rob Dominguez
ce30f615a9 docs: fix admonition
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6560
GitOrigin-RevId: 8175bdccfc5ff36c2942cd47996a7b044f810084
2022-10-27 09:56:30 +00:00
Aravind K P
e73a8f74e4 cli: port metadataobject/inherited_roles to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6406
GitOrigin-RevId: 4dcf132634578a8defd3678e11c03fce94bfb827
2022-10-27 09:51:42 +00:00
Samir Talwar
6f85498a44 server/tests-py: Use non-deprecated TLS code.
`ssl.wrap_socket` is deprecated in favor of `SSLContext.wrap_socket`.

Also throws in a quick speed improvement to _server/tests-py/run.sh_ on x86_64.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6498
GitOrigin-RevId: 7bbe5f86daf45677e2a39cfcfe183794ffcd2954
2022-10-27 09:17:22 +00:00
Aravind K P
ca6605a036 cli: port metadataobject/apilimits to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6397
Co-authored-by: Mohd Bilal <24944223+m-Bilal@users.noreply.github.com>
GitOrigin-RevId: ff266638f767da75da584f366d1a464ba6b70f0c
2022-10-27 08:28:23 +00:00
Aravind K P
a19a0c4b30 cli: port metadataobject/actions to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6425
GitOrigin-RevId: 87cb9f0244874065ed862f73eef93cfe73b82852
2022-10-27 07:49:44 +00:00
Aravind K P
7669b01e3a cli: port metadataobject/remoteschemas to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6413
GitOrigin-RevId: 3ffdf4076ba454bbbfe09cc61e401a64488637a8
2022-10-27 07:07:37 +00:00
Aravind K P
5217c5f0c1 cli: port metadataobject/network to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6408
GitOrigin-RevId: e3fb8e2b2bcef32b072818ac4c4a32124d7876d4
2022-10-27 06:18:50 +00:00
Matthew Goodwin
7ecc6849e0 fix (console): submitting GQL table customisation erases other table config info on metadata
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6561
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: a72c349d74faf9ef8f55ff17fc904aed9c741798
2022-10-27 05:45:19 +00:00
Mohd Bilal
3394c97fdc cli: refactor plugins/download to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6526
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: b12bbdf7bfac7eb3313b3e814aa6e1d73e77d3ce
2022-10-27 03:18:33 +00:00
David Overton
9921823915 GDC-189 custom aggregations
>

## Description
->

This PR allows DC agents to define custom aggregate functions for their scalar types.

### Related Issues
->

GDC-189

### Solution and Design
>

We added a new property `aggregate_functions` to the scalar types capabilities. This allows the agent author to specify a set of aggregate functions supported by each scalar type, along with the function's result type.

During GraphQL schema generation, the custom aggregate functions are available via a new method `getCustomAggregateOperators` on the `Backend` type class.
Custom functions are merged with the builtin aggregate functions when building GraphQL schemas for table aggregate fields and for `order_by` operators on array relations.

### Steps to test and verify
>

• Codec tests for aggregate function capabilities have been added to the unit tests.
• Some custom aggregate operators have been added to the reference agent and are used in a new test in `api-tests`.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6199
GitOrigin-RevId: e9c0d1617af93847c1493671fdbb794f573bde0c
2022-10-27 00:44:06 +00:00
Samir Talwar
78e0480bb2 docs: Info on (lack of) subscription support for CockroachDB documentation.
And some small fixups while I was in the area.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6559
GitOrigin-RevId: 97612af20e18c3ea9af364ec519f7891f4a7aa80
2022-10-26 20:52:20 +00:00
Daniel Harvey
63ed52ef7e tests: more through DC agent healthchecks
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6478
GitOrigin-RevId: 460317dfcc3f3d085cbe08877cd11d49a3ad7c07
2022-10-26 17:10:44 +00:00
Rishichandra Wawhal
68ba302bcf console: remove code related to the sample DB experiment
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6467
GitOrigin-RevId: 5a3fbc3c7d8d3947b5e7bad66140aaf11fa6ad8d
2022-10-26 15:55:15 +00:00
Vijay Prasanna
374846b63b refactor (console): sub routes for managing gdc tables
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6546
GitOrigin-RevId: 3876c171558dbd2b72881b79b181c52e3a331b11
2022-10-26 14:59:34 +00:00
hasura-bot
a2e6e50e27 Fix broken links
GITHUB_PR_NUMBER: 9138
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/9138

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6462
Co-authored-by: arpitpandey0209 <9442768+arpitpandey0209@users.noreply.github.com>
GitOrigin-RevId: 85ce1a190477803f553deb31c1c95b512fa3fca0
2022-10-26 14:22:19 +00:00
Stefano Magni
b74050db09 console(fix): Fix the frequent target.closest.querySelector error
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6528
GitOrigin-RevId: 6895c8ecd2bc1bf6add265ab3520397c229033a9
2022-10-26 12:46:03 +00:00
Abhijeet Khangarot
9834acdb8a console: add tests for install metadata and migration template hooks
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6110
GitOrigin-RevId: 4ea89f60ba719ae8210d700893fcf30a4c4aab0a
2022-10-26 11:04:35 +00:00
ananya-2410
e2dc37ab60 ci: tag release v2.14.0-beta.2
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6540
GitOrigin-RevId: 20cfc7b281e3664b67b4fa8be44a307716efef63
2022-10-26 08:47:06 +00:00
Matthew Goodwin
2a64d1a002 feature (console): allow user to update GQL configuration for GDC source tables from the Modify Tab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6463
Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com>
GitOrigin-RevId: b583d1d7e4eef4e796b820903a6be9c4e32fa316
2022-10-26 08:28:12 +00:00
Mohd Bilal
edc40ea7be cli: refactor internal/scripts package to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6458
GitOrigin-RevId: 579a7cba6780feee81f9ee06cab6ccb5f7a4cae3
2022-10-26 07:30:25 +00:00
Matt Hardman
0ed17e543c console: implement permissions builder for GDC
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6429
GitOrigin-RevId: ce956e93920f7edcd032814e6f7b4daad068bb77
2022-10-26 06:58:15 +00:00
Mohd Bilal
6ecf34ade6 cli: refactor seed package to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6506
GitOrigin-RevId: cd7fbe3404b337e946022b351188f58b8bfbf6d3
2022-10-26 06:02:09 +00:00