Commit Graph

476 Commits

Author SHA1 Message Date
Mohd Bilal
c35add2a9c Revert "cli: refactor migrate/migrate.go to use internal/errors"
Reverts hasura/graphql-engine-mono#7005

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7228
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: d35202ee97b51db61c4598bb1a42e9551b1a89e3
2022-12-12 14:04:28 +00:00
Mohd Bilal
a2fb3de1ce cli: refactor migrate/migrate.go to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7005
GitOrigin-RevId: ee70ef351ed1915adef5b865773a2210c7dd1073
2022-12-12 12:48:49 +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
Varun Dey
030f9f44f2 cli: Add cli-ext path option for Deploy API [GT-307]
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7114
GitOrigin-RevId: 643639717f3bb18984a29b6f95dfbb3179c92064
2022-12-01 06:04:25 +00:00
Mohd Bilal
9335e40d76 cli: remove os.IsNotExist and os.IsExist error checks
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7068
GitOrigin-RevId: 37735c0020df23857015871890d2f6774166d7b1
2022-11-28 08:45:42 +00:00
Varun Dey
248ea61600 cli: expose deploy command in public API [GT-307]
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6994
GitOrigin-RevId: 915e60952bc7c8f21169e4d49bb7733988a8ee40
2022-11-24 11:43:05 +00:00
Mohd Bilal
c55cca3061 cli: refactor migrate/ to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7006
GitOrigin-RevId: bfa2be15cef0460b32576e8297cfa177ed59031a
2022-11-23 17:15:19 +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
11484f5699 cli: refactor migrate/source/file, migrate/source/stub and migrate/stub/testing to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6666
GitOrigin-RevId: db16b44d5abe3d63357a5806a0c479a6fc690a01
2022-11-17 14:27:20 +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
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
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
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
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
Aravind K P
ef8ff76209 cli: fix plugins subcommands
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6811
GitOrigin-RevId: 0a6537d8d487a032ea3338ef1ad90e8e39dcfc63
2022-11-10 06:43:46 +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
Mohd Bilal
b44443941f cli: refactor cli to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6662
GitOrigin-RevId: 3b9199ae80c587f8d763df4889f4f81c73ccd3d3
2022-11-03 08:09:07 +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
Nicolas Inchauspe
b0d5238c3b console: globally add missing <!DOCTYPE html>
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6661
GitOrigin-RevId: ee45e493c76ad81569731dcd5468c846ba01cd12
2022-11-03 07:06:06 +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
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
d63686f8d4 cli: refactor plugins to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6562
GitOrigin-RevId: 8ab6252bd5e3fa716f3c9d546418dfedefd837be
2022-11-02 11:11:54 +00:00
Mohd Bilal
52f21e7261 cli: refactor update package to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6524
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 919262c2618a1319441ce3730802c06bd5bd450a
2022-11-02 07:20:53 +00:00
Mohd Bilal
1538490bdd cli: refactor migrate/database/hasuradb package to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6514
GitOrigin-RevId: c4d83b28d8550f61167b6f4270166b9513f89891
2022-11-02 06:14:46 +00:00
Mohd Bilal
5cffe3d723 cli: refactor migrate/source package to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6512
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: ea3fd23e2783a2934eda061c31aed82a69f691f4
2022-10-31 10:17:15 +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
Mohd Bilal
fa06d48b03 cli: refactor pkg/console package to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6521
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: bf85f0561441360295fddaf6cda100c7b17af76a
2022-10-31 07:19:44 +00:00
Mohd Bilal
3760b377b1 cli: refactor version package to use internal/errors
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6509
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 56c534327883de52ee93eeb4a83c9329fde6ec94
2022-10-28 10:00:12 +00:00
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