Commit Graph

243 Commits

Author SHA1 Message Date
Mohd Bilal
54125f2ae6 cli: Update docs for hasura metadata reload and hasura migrate create
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7338
GitOrigin-RevId: 35aeca6704d802c2e09903395335641704e61186
2023-02-18 06:12:08 +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
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
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
f82eaf7ea5 cli: Add --console-hge-endpoint to hasura console command that allows CLI to be configured to run inside a container
Closes: https://hasurahq.atlassian.net/browse/PLAT-370

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7408
GitOrigin-RevId: 79ca71a1b711f993410e2dbaafa717c11b459dce
2023-01-11 14:10:18 +00:00
Rob Dominguez
9bde77ab36 docs: update cli long punctuation and update commands
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7504
GitOrigin-RevId: dec1f870b9049ccc5cb793e960fb4040d18a3834
2023-01-11 13:34:08 +00:00
Smit Shah
5595e85e27 cli: make update prompts non-intrusive
## Description
This PR makes the blocking update prompt when running Hasura CLI non-blocking. Further details of the change can be found here, [PLAT-376](https://hasurahq.atlassian.net/browse/PLAT-376).

## Changelog ✍️

__Component__ :  cli

__Type__: enhancement

__Product__: community-edition

### Short Changelog

cli: make the update notifications when running Hasura CLI non-blocking [#9367](https://github.com/hasura/graphql-engine/issues/9367)

### Kodiak commit message
Information used by [Kodiak bot](https://kodiakhq.com/) while merging this PR.

#### Commit title
Make the update prompt non-intrusive

[PLAT-376]: https://hasurahq.atlassian.net/browse/PLAT-376?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[PLAT-376]: https://hasurahq.atlassian.net/browse/PLAT-376?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

closes https://github.com/hasura/graphql-engine/issues/9367

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7449
GitOrigin-RevId: 73cd019982b9355a8aaa9c6b2592f0413b17f410
2023-01-11 10:32:18 +00:00
Mohd Bilal
8cee3c53b9 cli: Use - instead of * in unordered list in docs and fix char cases
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7492
GitOrigin-RevId: 5b76d0a970193da4412ff1b595caec23996f265c
2023-01-11 08:39:18 +00:00
Rikin Kachhia
50a5462857 cli: improve log messages to highlight database names
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7363
GitOrigin-RevId: 2b58511c374ee4d93a202e23c87c48b54ec363a6
2023-01-09 08:03:13 +00:00
Rob Dominguez
1128753069 docs: add links to feature docs for CLI commands
[DOCS-520]: https://hasurahq.atlassian.net/browse/DOCS-520?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[DOCS-520]: https://hasurahq.atlassian.net/browse/DOCS-520?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7419
GitOrigin-RevId: 52e8e54bf7068ee91fce19831db99d7a24afb00c
2023-01-09 04:27:34 +00:00
Rob Dominguez
880182c805 docs: improve Long values for CLI
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7399
GitOrigin-RevId: 6e848f6eae2e5418c386f814623c122646db12c7
2022-12-30 03:52:33 +00:00
Rikin Kachhia
c256dcef7b cli: add option to apply seeds with the hasura deploy command
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7231
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 3cc7510bb16e8bceeb6cd2a678881a3459b6721f
2022-12-22 07:56:56 +00:00
Mohd Bilal
00f5df3e47 cli: expose hasura migrate delete command as an API
Closes https://hasurahq.atlassian.net/browse/PLAT-292

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6955
GitOrigin-RevId: 41d77ebbe830b29e0ba0cdf6c3a67527e5580bdf
2022-12-07 03:02:14 +00:00
Aravind K P
695bd632f4 cli: port migrate create migrate apply to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6634
Co-authored-by: Mohd Bilal <24944223+m-Bilal@users.noreply.github.com>
GitOrigin-RevId: 90db2db2b98bfe5e2948ae2866443f6d9501f402
2022-11-21 12:08:51 +00:00
Mohd Bilal
7f7640f988 cli: refactor commands/metadata_handlers.go to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6719
GitOrigin-RevId: 92540116b5aa8c106f6543a2a12096c69d93dbd9
2022-11-14 21:31:58 +00:00
Mohd Bilal
913b8a8059 cli: refactor metadata diff and metadata export commands to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6703
GitOrigin-RevId: 50d72be3f5de0e1f4bdcc2067f06ce136cd200d1
2022-11-14 07:29:37 +00:00
Mohd Bilal
b3f783d1b8 cli: refactor metadata apply and metadata clear commands to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6702
GitOrigin-RevId: fe2cbe9eccadc0191f524d407d0c3f0e0d17ae11
2022-11-08 14:25:47 +00:00
Mohd Bilal
7ba2409fb8 cli: refactor metadata inconsistency status and metadata reload to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6722
GitOrigin-RevId: 2dece53c8575627ffe98155261161a07f2195cef
2022-11-08 13:53:17 +00:00
Mohd Bilal
bdd30540b9 cli: refactor metadata inconsistency list and metadata inconsistency drop commands to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6720
GitOrigin-RevId: 1927535edc12fb1008b1050625f815036485151b
2022-11-08 13:05:31 +00:00
Aravind K P
2f92abbda9 cli: port commands/scripts to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6733
GitOrigin-RevId: 57a65c6ea5175d54c2943e238a321a1219b7aa9b
2022-11-08 12:23:15 +00:00
Mohd Bilal
46d7bb97f1 cli: refactor metadata command to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6725
GitOrigin-RevId: 20110c7eee19de9090a9128023be3a6dcb6f2578
2022-11-08 10:56:18 +00:00
Mohd Bilal
7db823b8d9 cli: refactor plugins install and plugins list to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6728
GitOrigin-RevId: 742f8308b48332b3cb80ab7b05767eb8c10d8e84
2022-11-08 10:27:33 +00:00
Mohd Bilal
be8b46d37a cli: refactor plugins uninstall and plugins upgrade commands to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6736
GitOrigin-RevId: d155a2abce4dd8094ff071a8d05af4174a96f3b9
2022-11-08 09:58:45 +00:00
Mohd Bilal
ce251d7a28 cli: refactor plugins command to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6737
GitOrigin-RevId: a0636dcaa03ba43cadcdad84e4e688f8e35dfda8
2022-11-08 09:19:52 +00:00
Aravind K P
3da905c851 cli: port commands/docs command to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6745
GitOrigin-RevId: 609368683839c092bc88bf946e4a0f1d246a3256
2022-11-08 03:54:59 +00:00
Aravind K P
584c2ae6c4 cli: port commands/deploy to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6731
GitOrigin-RevId: 9017fd936ba256aea62a86e238127fb227b497db
2022-11-08 03:54:44 +00:00
Aravind K P
6cce5ed190 cli: port commands/console to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6730
GitOrigin-RevId: 231741d701c81bbf0de9eaba411226aa4ae0282f
2022-11-08 03:54:37 +00:00
Mohd Bilal
82ceb0886b cli: refactor actions and actions use-codegen to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6740
GitOrigin-RevId: fa5283ff3dbabf1ad1279408e05cd9b2dfe3a2d9
2022-11-08 03:54:29 +00:00
Mohd Bilal
91ae5f0518 cli: refactor actions codegen and actions create commands to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6738
GitOrigin-RevId: 6fc4f17651a200b98c5698ea4c9948ba370bbb43
2022-11-08 03:54:21 +00:00
Mohd Bilal
6dbd905055 cli: refactor seed apply and seed create command to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6742
GitOrigin-RevId: dbe1f047fc840b221ccfd9bc732bffe575bca310
2022-11-08 03:54:13 +00:00
Mohd Bilal
fe81275445 cli: completion.go refactored to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6750
GitOrigin-RevId: 19c9cfe8a98e9f44bee7d3aa24d4b8987dc77b42
2022-11-08 03:53:58 +00:00
Mohd Bilal
c1058fac70 cli: update and version commands updated to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6746
GitOrigin-RevId: d8271cdb890eecc861c33d765b3a364e904bee38
2022-11-08 03:53:51 +00:00
Mohd Bilal
6f537c1417 cli: refactor seed command to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6743
GitOrigin-RevId: 05c04cd8fd8dd90f25e28266b1a40e965f3f99f4
2022-11-08 03:53:43 +00:00
Aravind K P
e982a492d6 cli: port migrate squash and migrate delete to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6548
GitOrigin-RevId: 21771cb44655788be71c61b7ee3b4159341907a1
2022-11-03 07:38:03 +00:00
Aravind K P
061f6b96ed cli: port migrate, migrate status to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6547
GitOrigin-RevId: edef43331e06b227484e84a39f4b81b5fdaf1658
2022-11-03 05:56:00 +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
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
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
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
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
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
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
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
hasura-bot
f530b3ac6f cli: fix regression with --address flag of hasura console command
GITHUB_PR_NUMBER: 8039
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8039
closes https://github.com/hasura/graphql-engine/issues/8005

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3381
Co-authored-by: Shoki Hata <37888628+sho-hata@users.noreply.github.com>
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 6ca7c091ebf7c240e97b65fbfc1713cccb5a5b82
2022-01-20 06:41:05 +00:00
Divi
5723baaab4 cli: fix migrate create command behaviour when no data provided
closes https://github.com/hasura/graphql-engine/issues/7971

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3292
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 4f7e38d649c1f414132d576d0f288ca8d3cdb53d
2022-01-12 16:16:50 +00:00
Kali Vara Purushotham Santhati
695164b176 cli: misc changes
- Hasura CLI shows metadata diff in YAML for type `json` in directory mode. The expected behaviour is to show the diff in JSON
- The unified-json shows diff in YAML, not in JSON.
- Add new diff type unified-yaml which shows the diff in YAML unified format.
- Check the flag value of type in `hasura metadata diff --type`
- The help text of `seed apply`( `hasura seed apply --file seeds/1234_add_some_seed_data.sql`) should be updated to `hasura seed apply --file 1234_add_some_seed_data.sql --database-name default` and similarly in docs.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3246
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 1d16ad9ea4dd366af32498ce878ae132bd239be9
2022-01-12 13:25:22 +00:00
Kali Vara Purushotham Santhati
f0bef2b482 cli: add All option for migrate sub-commands (apply, delete and status) and seed apply command
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2509
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 03ee878072b58c6dc7f43af9d26d30a5594d9a50
2021-12-23 15:59:56 +00:00