Daniel Chambers
d421cdb726
Put the message property first when encoding error JSON
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9379
GitOrigin-RevId: 385035810190786f54a1db86e3a2e4a2c3bd5dee
2023-06-02 05:29:50 +00:00
Samir Talwar
f42f1111cc
CLI: Add test coverage for stored procedures.
...
This asserts that reading and writing metadata does not modify the stored procedures. We do not provide any support for working with them; this just ensures we do not accidentally corrupt them.
[NDAT-640]: https://hasurahq.atlassian.net/browse/NDAT-640?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9081
GitOrigin-RevId: 7c9b31f060325cbdffd8803ea085d4957dc1c680
2023-05-08 14:46:37 +00:00
Tom Harding
457127a6e2
Remove TemplateHaskell
Aeson instances from RQL.Types
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8997
GitOrigin-RevId: 741318f65281af7b26a616260baf3a9953707007
2023-05-05 14:38:00 +00:00
Samir Talwar
397e95fc6a
Upgrade Citus to v11.3.0 in tests.
...
Upgrades Citus to v11.3.0 in tests.
This breaks an assumption made by the tests for the `get_source_tables` metadata API, in which data is expected to be ordered. We fix it by explicitly ordering rather than relying on the goodwill of the database.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9039
GitOrigin-RevId: ee86db7e1c264d5009bb0203ac2f3fb2cda7b39f
2023-05-04 11:40:10 +00:00
Samir Talwar
c1705a09df
api-tests: Fix the error messages to match those reported by Citus v11.3.0.
...
I also pinned Citus to v11.3. This should hopefully stop us from being surprised with random test failures in the future. We will need to bump this every now and again.
I have updated the Makefile to standardize Docker commands, and made sure we start all the containers even when running tests for a single database, as we need to test cross-DB remote joins. This ensures `make test-citus` actually works and runs all tests.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9035
Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com>
GitOrigin-RevId: 9c36ab65eb05206bfddd639c257d6c5c5cedd2bd
2023-05-03 20:22:26 +00:00
Gil Mizrahi
930df62de7
Stored procedures api commands
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8975
GitOrigin-RevId: c71a9f74bf01bb8c0bc8c8cd4b744b530d99476a
2023-04-28 13:38:34 +00:00
Philip Lykke Carlsen
983fc2ad47
Rename "Custom Return Types" → "Logical Models"
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8800
GitOrigin-RevId: e5e10f31c6cc8953a8ee947441a7f80b0e9b5e5e
2023-04-19 09:05:25 +00:00
Philip Lykke Carlsen
0346224444
Rename "Logical Models" → "Native Queries"
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8769
GitOrigin-RevId: 66f2cbfb620d641e672a4074554d9d324a18c591
2023-04-13 16:12:20 +00:00
Samir Talwar
6747ee9872
cli: Add the custom_return_types
field.
...
This has been split out from logical models.
Name pending; it may change in the future.
[NDAT-593]: https://hasurahq.atlassian.net/browse/NDAT-593?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8712
GitOrigin-RevId: 25776af883e94bead05af7c97cdf258f4b65c5d1
2023-04-11 13:49:28 +00:00
Daniel Harvey
7227e96278
feature(server): custom return types as discreet metadata entity
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8556
Co-authored-by: Tom Harding <6302310+i-am-tom@users.noreply.github.com>
GitOrigin-RevId: b7dcbcf378279c3bf4c8d223174b90c2cb4b9e53
2023-03-30 15:15:11 +00:00
Mohd Bilal
de128e726a
cli: add support for sources.logical_models
in metadata
...
[PLAT-394]: https://hasurahq.atlassian.net/browse/PLAT-394?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8426
GitOrigin-RevId: a9480c4b77a0ab016b7d5c66e589301bc03740ac
2023-03-27 08:00:27 +00:00
Gil Mizrahi
625e41cd77
rename naqi to logimo part 3 - data types
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8068
GitOrigin-RevId: 435527a98e645ed69c9be484ff0bd21af8181d69
2023-02-22 13:46:54 +00:00
Mohd Bilal
3be7c9b1e6
cli: increase max wait time for docker images to 5 minutes
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7971
GitOrigin-RevId: 5ee5c93d5d0d9befc0e1f9741a0ffe829e8e64c3
2023-02-14 13:30:29 +00:00
Aravind K P
0166f1892b
cli: show expanded error information in debug logs
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7431
GitOrigin-RevId: e261261b8da409fc68776e62a9d62e0b8b286054
2023-02-13 09:45:35 +00:00
Toan Nguyen
22d515dcb6
cli: introduce BigQuery source
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5766
Co-authored-by: Mohd Bilal <24944223+m-Bilal@users.noreply.github.com>
GitOrigin-RevId: 1bd4718dbf7b0368e99e5d7c6dd08f362dbf5c2b
2023-02-13 08:31:42 +00:00
Antoine Leblanc
30e772d3fa
add content-length header.
...
## Description
Adds a content-length response header to all endpoints. This PR tests this feature by checking the content-length of every request we send in the tests.
## Changelog ✍️
__Component__ : server
__Type__: enhancement
__Product__: community-edition
### Short Changelog
add a content-length response header to all endpoints
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7444
Co-authored-by: Manas Agarwal <5352361+manasag@users.noreply.github.com>
GitOrigin-RevId: a0a811852053c5dde4b11b71ba11a7d456c84d76
2023-02-01 21:32:50 +00:00
Philip Lykke Carlsen
70c8bc8700
Integrating Native Query metadata and schema
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7657
Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com>
GitOrigin-RevId: d5047559e3560f5d7870eac6e07c89704146ccab
2023-01-30 16:06:34 +00:00
Aravind K P
a0c5e1669b
cli: support ee-lite in CLI console
...
Closes https://hasurahq.atlassian.net/browse/PLAT-351
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7256
Co-authored-by: Sooraj <8408875+soorajshankar@users.noreply.github.com>
Co-authored-by: Manas Agarwal <5352361+manasag@users.noreply.github.com>
GitOrigin-RevId: 5096e76f11ab2860fae9fa7cd71c9afaead20cc0
2023-01-30 09:28:28 +00:00
Mohd Bilal
094b5e6db2
cli: Support migrations for Cockroach DB in CLI Console
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7550
GitOrigin-RevId: eb9d6c8dae1c1f7980df45f5080f8d7cab8791c9
2023-01-19 10:51:17 +00:00
Daniel Harvey
06b284cf33
[server] metadata API for native access
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7476
Co-authored-by: Tom Harding <6302310+i-am-tom@users.noreply.github.com>
GitOrigin-RevId: 781c29666e92004dc82918c2292fdacc27fded4c
2023-01-16 17:21:22 +00:00
Aravind K P
b906410b20
cli: fix missing usages of errors package
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7424
GitOrigin-RevId: 59fccdd90437fc39e4c2cd2581676b67dad87ac9
2023-01-16 09:42:31 +00:00
Mohd Bilal
e75edb0629
cli: Add support for data connectors metadata changes.
...
closes https://hasurahq.atlassian.net/browse/PLAT-181
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7178
GitOrigin-RevId: f4c1c39ac33586870e38623bb85f09d5c98a3817
2022-12-29 14:37:47 +00:00
Mohd Bilal
62d997a590
cli: add support for opentelemetry
in metadata
...
closes https://hasurahq.atlassian.net/browse/PLAT-297
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7267
GitOrigin-RevId: d35f50b8abdc726446ee583a4abfabde2a496721
2022-12-14 04:23:12 +00:00
Aravind K P
fbfea5437c
cli: support metrics_config
metadata object
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7225
GitOrigin-RevId: e0d6f940d4b62b520948ca179cac39474f4d6d84
2022-12-13 02:48:11 +00:00
Mohd Bilal
8fa2d4ffa2
cli: refactor internal/metadatautil
package to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6391
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 3ec15e9517fd9e8822631717a89a5ad35fc56ebd
2022-11-15 09:00:12 +00:00
Mohd Bilal
3353d77c50
cli: refactor internal/metadataobject/actions/cli_extension
and internal/metadataobject/actions/editor
packages to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6828
GitOrigin-RevId: 0f86da5c4a0bd0f3b6b49cc37cf7fc83279f9fb5
2022-11-15 08:24:15 +00:00
Mohd Bilal
cd72240450
cli: refactor internal/diff
to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6696
GitOrigin-RevId: e668b0acf73f9598489f07e25577be997b211c28
2022-11-14 20:58:46 +00:00
Mohd Bilal
8e2a18b256
cli: refactor internal/cliext
to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6695
GitOrigin-RevId: 11c1519e082103775ce3ffb1e2a95c766a299469
2022-11-10 15:41:57 +00:00
Mohd Bilal
4c24e6d56b
cli: refactor internal/fsm
to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6694
GitOrigin-RevId: 96938d65f8de857c87e37b7d0fc508cee6436340
2022-11-10 14:58:49 +00:00
Mohd Bilal
1cb217725a
cli: fix response_transform
field missing from actions metadata object
...
closes https://github.com/hasura/graphql-engine/issues/9182
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6814
GitOrigin-RevId: 8d89610938bfc42191abce561affcef9cf2036db
2022-11-10 13:10:46 +00:00
Mohd Bilal
24b98e1900
cli: refactor internal/projectmetadata
package to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6435
GitOrigin-RevId: d48b0412cb8f7d252018861cbbe65123eddfc412
2022-11-02 12:10:25 +00:00
Mohd Bilal
27875e0260
cli: port internal/hasura/v1metadata
package to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6378
GitOrigin-RevId: 5551a12f19f492bd34de6bb56b44f33d9386b53d
2022-10-31 09:14:10 +00:00
Mohd Bilal
a8a37b246b
cli: port internal/hausra/sourceops/mssql
to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6369
GitOrigin-RevId: a1dee4ec7bf2e3ef2d5b457e47cc4e0d1a6f7c07
2022-10-31 08:40:44 +00:00
Mohd Bilal
5a13c271f8
cli: port internal/hausra/sourceops/citus
to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6367
GitOrigin-RevId: c71fdcf8c0422df899ca5054ae69eeedc157ac0d
2022-10-31 07:45:06 +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
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
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
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
Aravind K P
5d759189d0
cli: port metadataobject/query_collections
to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6410
GitOrigin-RevId: d82eb90669f3a915f2a2fc9d87347ff64f4ee97b
2022-10-24 03:22:47 +00:00
Aravind K P
1aa5cbb195
cli: port metadataobject/allowlist
package to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6396
GitOrigin-RevId: 180eaa60613985334681bd9011f910c3f3d6afb2
2022-10-21 16:57:31 +00:00
Samir Talwar
c3afa0fdd7
Install and use ODBC Driver 18 for SQL Server (msodbcsql18).
...
This installs the ODBC Driver 18 for SQL Server in all our shipped Docker images, and update our tests and documentation accordingly.
This version supports arm64, and therefore can run natively (or via Docker) on macOS on aarch64.
`msodbcsql17` is still installed in production-targeted Docker images so that users do not _have_ to migrate to the new driver.
Nix expressions are packaged for the new driver, as it is not yet available in nixpkgs.
In this version, [the default encryption setting was changed from "no" to "yes"](https://techcommunity.microsoft.com/t5/sql-server-blog/odbc-driver-18-0-for-sql-server-released/ba-p/3169228 ). In addition, "mandatory" and "optional" were added as synonyms for "yes" and "no" respectively.
I have therefore modified all connection strings in tests to specify `Encrypt=optional` (and changed some from `Encrypt=no`). I chose "optional" rather than "no" because I feel it's more honest; these connection strings will work with or without an encrypted connection.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6241
GitOrigin-RevId: 959f88dd1f271ef06a3616bc46b358f364f6cdfd
2022-10-21 16:25:04 +00:00
Aravind K P
3cec172f6f
cli: port metadataobject/rest_endpoints
to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6424
GitOrigin-RevId: 3b210e6f6b47756e7941fcb14e960674718855a1
2022-10-21 14:51:38 +00:00
Mohd Bilal
0c8b80ee71
cli: port commonmetadata
package to use internal/errors
package
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6318
GitOrigin-RevId: 2274c535f5475d50fbfdf645572b8553625a87fc
2022-10-20 15:18:46 +00:00
Aravind K P
754fb6e8b9
cli: port metadataobject/crontriggers
to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6398
GitOrigin-RevId: 25f9964b3eecb2f89d482401d425752bd7d33708
2022-10-20 07:54:31 +00:00
Aravind K P
3d7effbcc1
cli: refactor metadataobject.WriteDiff
to use std error
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6389
GitOrigin-RevId: 731b74ae5bb1ad0479c141f1e66795d9fd21e9e3
2022-10-20 06:58:52 +00:00
Aravind K P
e89895b5f1
cli: refactor metadataobject.GetFiles
to use std error
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6388
GitOrigin-RevId: 4ae565fc7d7a9275473a736aac78a2da7d031260
2022-10-20 04:36:56 +00:00
Aravind K P
4b1ab8bf67
cli: refactor metadataobject.Object
interface to use std error
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6387
GitOrigin-RevId: 5a18fb9b26eaf9bc9a1b55ae79ce18e4147f4aa3
2022-10-19 12:52:46 +00:00