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
Mohd Bilal
51424c0857
cli: use github.com/stretchr/testify/require
assertions in internal/hasura/pgdump
tests
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6364
GitOrigin-RevId: c6c99c092e6992d3905e1a1f58ea0373911238f8
2022-10-18 03:24:17 +00:00
Mohd Bilal
aa70c62bdd
cli: port internal/hasura/v2query
package to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6379
GitOrigin-RevId: 787e5cce03006b0d248a79797923efb8fe6fa7b4
2022-10-17 18:28:56 +00:00
Mohd Bilal
081b9163c4
cli: port internal/hausra/sourceops/postgres
to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6374
GitOrigin-RevId: 8b52f7409799d7ac3b43937cc66837ab3861cd03
2022-10-17 17:56:02 +00:00
Mohd Bilal
7044bf194d
cli: port internal/hasura/v1graphql
package to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6322
GitOrigin-RevId: 1f1c8f13bd688881c48f3381dc9e3e7bacf5fc0c
2022-10-17 17:02:00 +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
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
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
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
Aravind K P
a949af5e14
cli: refactor httpc package to use error framework
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6227
GitOrigin-RevId: fcf9ee64345309ddcba95e4369a6564defa54fc0
2022-10-11 13:40:46 +00:00
Samir Talwar
740341382f
CLI: Upgrade Dockertest to try and fix the build on CI.
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6184
GitOrigin-RevId: 796f400fd45a58a5a81212e04a0730c53f04899a
2022-10-04 12:06:32 +00:00
Mohd Bilal
c28ed6cc6c
cli: Fix query collection export missing definition object and queries array in yaml
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5954
GitOrigin-RevId: b7b29c43ca9c3b2934ea12e71bca2dadecc4c34b
2022-09-27 13:46:42 +00:00
Mohd Bilal
8d18a55212
cli: move AddDatabaseToHasura to testutil package
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6069
GitOrigin-RevId: f7a3b98685c16fec613719eaa05024cd3c9cd3d4
2022-09-27 11:16:22 +00:00
Aravind K P
451f252c0f
cli: [rfc] improve error handling
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4817
GitOrigin-RevId: 340f8d0cb3df496c1c0df1cc60fe3752dd58c75c
2022-09-21 08:29:37 +00:00
hasura-bot
df5e887098
cli: fix bug when exporting metadata to remote_schemas.yaml
...
GITHUB_PR_NUMBER: 8921
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8921
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5744
Co-authored-by: Ryohei KOMATSUYAMA <54347899+kmtym1998@users.noreply.github.com>
GitOrigin-RevId: cc0948b62c3caccfb2c814433bb1a84508e3c37e
2022-09-19 12:20:26 +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
Vishnu Bharathi
c60aed3e36
ci: changes for enabling the release of EE lite
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5528
GitOrigin-RevId: d32439aa921202d88f709df44d1d3ebfba2fff02
2022-08-29 05:20:24 +00:00
Divi
bb1020bd47
cli/docs: update hasura cli docs
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5192
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: a89fa52fad4fd1d61df3026b8d00f3a740fd806b
2022-08-16 14:29:19 +00:00
Mohd Bilal
6a90332ab1
cli: Add --disallow-inconsistent-metadata
flag to hasura metadata apply
command
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5045
GitOrigin-RevId: 1e8da16285705e3e439f1e3e3e4c495c715a902b
2022-08-16 09:59:03 +00:00
Mohd Bilal
48a0a34a92
cli: add support for health_check
metadata object in sources
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5287
GitOrigin-RevId: be7e1d19b9875cf05a52a9894cf2bda58b209733
2022-08-03 13:17:36 +00:00
Samir Talwar
349ccd3296
Use docker compose
, not docker-compose
.
...
Docker Compose is now a plugin for Docker, bundled by default in Docker Desktop and many Linux distribution packages. The standalone `docker-compose` binary has been deprecated since Docker Compose v2.
Using the new version directly allows us to write development scripts that do not require `docker-compose` to be installed.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5185
GitOrigin-RevId: c8542b8b2405d1aa32288991688c6fde4af96383
2022-08-02 10:30:57 +00:00
Divi
c1fc137075
cli: upgrade cuelang to fix memory leak
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5072
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 8c3eafe15ae1e8b8a5d47307b6739d5a4910b94d
2022-07-19 13:50:46 +00:00
kodiakhq[bot]
d8b595575d
server: more GHC 9.2 changes compatible with 8.10 ( #3550 )
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4968
GitOrigin-RevId: 1175b2fcc90e0436c99da7fa58d317a49c7704d4
2022-07-07 16:51:18 +00:00
hasura-bot
92f601587c
cli: use 2-spaces indent for graphql query in metadata ( fix #8469 )
...
GITHUB_PR_NUMBER: 8519
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8519
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4544
Co-authored-by: Yudai Shinnoki <2777896+shinnoki@users.noreply.github.com>
Co-authored-by: Divi <32202683+imperfect-fourth@users.noreply.github.com>
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 3d9f9d1bf940e528a1ad9fab67b6ae818927ffac
2022-06-27 05:27:19 +00:00
Divi
c668aa1158
cli: improve error reporting in metadata apply
command
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4454
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: ae66bdfdc140c1a2a7747fb0ff2acd6f7b577d3f
2022-06-15 15:45:38 +00:00
Divi
b50aecdae4
cli: fix perfomance regression with large metadata in metadata apply
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4661
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 48050e899592878c47c382281605a0c8666ddc8b
2022-06-15 12:39:43 +00:00
Brandon Simmons
6e8da71ece
server: migrate to aeson-2 in preparation for ghc 9.2 upgrade
...
(Work here originally done by awjchen, rebased and fixed up for merge by
jberryman)
This is part of a merge train towards GHC 9.2 compatibility. The main
issue is the use of the new abstract `KeyMap` in 2.0. See:
https://hackage.haskell.org/package/aeson-2.0.3.0/changelog
Alex's original work is here:
#4305
BEHAVIOR CHANGE NOTE: This change causes a different arbitrary ordering
of serialized Json, for example during metadata export. CLI users care
about this in particular, and so we need to call it out as a _behavior
change_ as we did in v2.5.0. The good news though is that after this
change ordering should be more stable (alphabetical key order).
See: https://hasurahq.slack.com/archives/C01M20G1YRW/p1654012632634389
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4611
Co-authored-by: awjchen <13142944+awjchen@users.noreply.github.com>
GitOrigin-RevId: 700265162c782739b2bb88300ee3cda3819b2e87
2022-06-08 15:32:27 +00:00
Divi
b7c414a875
ci: add action to release cli-ext binaries
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4342
Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com>
GitOrigin-RevId: 2b7686bda333d977aa20a1ff10f7b3179509eac3
2022-06-07 22:25:41 +00:00
Aravind K P
384756f7be
cli: support multiple admin secrets
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4566
GitOrigin-RevId: b03008099ec0b053fd24798b2b78d12471ed6fdd
2022-06-03 13:29:56 +00:00
Vishnu Bharathi
0016d3cad5
cli: avoid exporting hasura-specific schemas during hasura init
...
fixes https://github.com/hasura/graphql-engine/issues/8352
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4178
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: eff7067c34932435207eff794f9435356b55b666
2022-04-25 13:06:52 +00:00
Aravind K P
23f32c3db4
cli: fix performance regression in v2.5.0
...
closes https://github.com/hasura/graphql-engine/issues/8398
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4313
GitOrigin-RevId: 3f24434b8256ec30838ce0014a04f8dfdca7f0d5
2022-04-21 11:55:12 +00:00
Aravind K P
ff255bd065
cli: support remote relationships metadata
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4274
GitOrigin-RevId: 5a839a39cc47268e8da52d039b91fbc35fec8b13
2022-04-18 11:07:46 +00:00
Vishnu Bharathi
9d15c07a9d
cli: expose methods for marking and unmarking migration as applied
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4171
GitOrigin-RevId: cd5a4a7159c89e6e2b9e97c4b187049515637145
2022-04-13 04:54:32 +00:00
Naveen Naidu
d10b862b61
server: fix bugs in clear_metadata code path
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3927
Co-authored-by: Divi <32202683+imperfect-fourth@users.noreply.github.com>
Co-authored-by: Karthikeyan Chinnakonda <15602904+codingkarthik@users.noreply.github.com>
Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com>
GitOrigin-RevId: 6f3457698029af94e9157c23b552ac2034f9c740
2022-04-11 11:25:13 +00:00
Aravind K P
e46777b7ea
cli: fix formatting errors in query collection metadata
...
closes https://github.com/hasura/graphql-engine/issues/7616
closes https://github.com/hasura/graphql-engine/issues/8205
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3955
GitOrigin-RevId: dc97e23e78d522cb7ac4d57ad825526eaa90a4de
2022-03-31 14:02:49 +00:00
Aravind K P
649ef41e3c
cli: fix remote schema formatting errors in metadata
...
closes https://github.com/hasura/graphql-engine/issues/7608
closes https://github.com/hasura/graphql-engine/issues/7459
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3951
GitOrigin-RevId: bad3505c79fab10453580a6a43ad7e71bc2d3753
2022-03-31 08:28:30 +00:00
Vishnu Bharathi
fac5e0b2c3
ci: produce ubuntu and centos flavoured graphql-engine images
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3597
GitOrigin-RevId: f1fded72524f28f41433eea6819276932ee0b5cb
2022-03-22 12:03:25 +00:00
Sooraj
d1cdb9f0ae
console: disable search indexing with HTML meta tag [CON-28]
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3948
GitOrigin-RevId: 5af852fd7c9c131fc85c05f97c601058c99e6dcc
2022-03-16 05:51:47 +00:00
Vishnu Bharathi
2e04bd5ac2
cli: add support for customization field in sources metadata
...
closes https://github.com/hasura/graphql-engine/issues/8292
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3954
GitOrigin-RevId: cc27dcffbb71579136a3cae7d99ecd239eb37ed2
2022-03-10 16:47:03 +00:00
Aravind K P
2ff0f25e08
cli: refactor metadataobject package
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3943
GitOrigin-RevId: 4cc8f67dd8b6ba0e78f1c35d415f89bd1b901705
2022-03-10 08:13:50 +00:00
paritosh-08
a0c83b8e99
server: add inconsistency information in reload_metadata
API call
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3860
GitOrigin-RevId: 02d1963946d69fdf6886aa61806eb71db60f8931
2022-03-03 13:34:44 +00:00
hasura-bot
19415ada9c
cli: fix install script failing when specifying a version
...
GITHUB_PR_NUMBER: 8248
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8248
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3802
Co-authored-by: Christian van der Leeden <2522744+mccare@users.noreply.github.com>
GitOrigin-RevId: 470f6ab94a5b108f14f762aa49f63ba597a530b5
2022-02-25 13:52:48 +00:00
Divi
d87b961378
cli: fix metadata version being set to 3 for v2 project
...
closes https://github.com/hasura/graphql-engine/issues/8148
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3619
GitOrigin-RevId: d10b715fc71dcc89bb0874f1c115ad9e562cfd6c
2022-02-23 10:53:22 +00:00
hasura-bot
195c05f14d
cli: improve handling of wrapped errors in migrate operations
...
GITHUB_PR_NUMBER: 7992
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7992
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3259
Co-authored-by: Shoki Hata <37888628+sho-hata@users.noreply.github.com>
GitOrigin-RevId: f93f251fb6de56212f7024eef06e965f85a9182a
2022-02-08 14:30:35 +00:00
Kali Vara Purushotham Santhati
780d942fad
cli: skip tls verfication for all API requests when insecure-skip-tls-verify
flag is set
...
closes: https://github.com/hasura/graphql-engine/issues/4926
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3307
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 90222fc2e5b176fbf5721fea3f5b2af929ca93f4
2022-02-04 11:11:37 +00:00
Vishnu Bharathi
f4007596fb
tag release v2.2.0
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3558
GitOrigin-RevId: b4ba6830be191aac6ce9e8e5bef974bd5322260d
2022-02-02 12:49:55 +00:00
Antoine Leblanc
d66d2d81fd
server: use placeholder to prevent empty query roots
...
### Description
The GraphQL spec has to conflicting requirements:
1. an object must contain at least one field: the schema may not contain empty objects
2. the _query_root_ must always be present
Given _1_, the schema generation code removes from the schema all fields that would result in empty objects, such as a table for which a user does not have select permissions. But, as a result, our code also potentially removes _query_root_ if it is empty, breaking _2_.
This PR introduces a dummy "placeholder" field in the query root if it's empty, to ensure we never remove it from the schema.
### Remaining work
- [x] changelog entry
- [x] tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/148
GitOrigin-RevId: bfd6bfcc2f3de92900b6ba566012f093399ca037
2022-01-27 18:08:11 +00:00