Aravind K P
c1fd8beeef
Revert "cli: add exclude-schema & full flags to migrate create command ( #1564 )" ( #1566 )
...
This reverts commit b4441cbde667c66f3ae203d752d6b33a0833f34e.
GitOrigin-RevId: 33ddf5c3d94e888497eb909ccb18d35bb5614ea2
2021-06-14 12:28:34 +00:00
hasura-bot
6e5186475c
cli: add exclude-schema & full flags to migrate create command ( #1564 )
...
GITHUB_PR_NUMBER: 5713
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/5713
https://github.com/hasura/graphql-engine-mono/pull/1564
Co-authored-by: Sameer Kolhar <6604943+kolharsam@users.noreply.github.com>
Co-authored-by: Kali Vara Purushotham Santhati <72007599+purush7@users.noreply.github.com>
GitOrigin-RevId: b4441cbde667c66f3ae203d752d6b33a0833f34e
2021-06-14 12:11:31 +00:00
Kali Vara Purushotham Santhati
8bfc56b7c4
cli: remove the unnecessary empty lines in actions.graphql generated by metadata export command
...
closes https://github.com/hasura/graphql-engine/issues/5338
GitOrigin-RevId: 83bd8492beb9f52c761d5857ca369425c69691a4
2021-06-09 10:46:05 +00:00
Vishnu Bharathi
4b76289d03
cli: add interactive prompt to get input when --database-name
flag is missing
...
GitOrigin-RevId: f92478d0ca6a4f6d0cfaa7aca3b4bb8a215a5cad
2021-06-09 07:13:46 +00:00
Kali Vara Purushotham Santhati
7ab5dd4265
cli: use go:embed to embed console static assets
...
GitOrigin-RevId: 3bb86dec853ebfdacd049b9424dd58c51c930cb7
2021-06-04 07:28:22 +00:00
Aravind K P
d8198a8bad
cli,ci: testsuite enhancements
...
- remove `HASURA_TEST_CLI_HGE_DOCKER_TAG` & `HASURA_TEST_CLI_HGE_DOCKER_REPO` env variables
- add `HASURA_TEST_CLI_HGE_DOCKER_IMAGE` environment variable to configure hge image used in tests
- add template test project directories
- add helper functions to manipulate the template projects in individual tests
- add config v2 tests
Co-authored-by: Kali Vara Purushotham Santhati <72007599+purush7@users.noreply.github.com>
GitOrigin-RevId: 009a74c042861ff0a8dec2b06002e55de3a8a629
2021-06-03 13:27:24 +00:00
Aravind K P
757327d94c
cli: use stdout logger in version
command
...
closes https://github.com/hasura/graphql-engine/issues/6998
GitOrigin-RevId: 202eecc6085970aa5433e652cfafd34195252dbf
2021-05-31 04:13:34 +00:00
Aravind K P
ea6a2c9a14
cli: config v3 update script improvements
...
GitOrigin-RevId: cbd80af1334916e6d5af54a925a14b3849034646
2021-05-28 06:05:33 +00:00
Aravind K P
8ebf5eef2b
cli: disable reading metadata from pipe
...
closes https://github.com/hasura/graphql-engine/issues/6987
GitOrigin-RevId: f12b7475055d2f9767a6dd20eee531042bdbcbc5
2021-05-27 14:17:25 +00:00
hasura-bot
2a24947e57
🐛 [3897] Squash fails when down
/metadown
empty ( close #3897 )
...
GITHUB_PR_NUMBER: 6934
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6934
Co-authored-by: Appréderisse Benjamin <8669741+bappr@users.noreply.github.com>
Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com>
GitOrigin-RevId: 13c7bcdcac9e2bcb659734e0e91d676525f8adcc
2021-05-24 06:05:54 +00:00
Kali Vara Purushotham Santhati
5e92ce028e
cli: migrate delete
command, update migration state on server after squash
...
It contains 2 flags
all - To delete all migrations locally and on database
version - To delete a single migration locally and on database
Usage :
`hasura migrate delete --all`
`hasura migrate delete --version <version_number>`
Additional fix :
The `migrate squash` will deletes the migration history on server after squashing if user opts to delete the migrations.
closes https://github.com/hasura/graphql-engine-mono/issues/292
closes https://github.com/hasura/graphql-engine/issues/5373
closes https://github.com/hasura/graphql-engine/issues/6434
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: fa7ceae7a1970d6724fb601a147900e880ad2e6f
2021-05-24 02:34:33 +00:00
Antoine Leblanc
60a119ae22
server: also collect types from directives into the schema
...
GitOrigin-RevId: 0736570fd8781e66d558bde313d26ad62f7cf6ca
2021-05-21 04:55:32 +00:00
Antoine Leblanc
5238bb8011
server: support for custom directives
...
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: f11b3b2e964af4860c3bb0fd9efec6be54c2e88b
2021-05-20 10:03:50 +00:00
Vishnu Bharathi
9e3f5a9f01
cli: validate pro plugin version
...
GitOrigin-RevId: 2bcb64256b357d07d0f06d8347260c649bfcc132
2021-05-20 09:14:29 +00:00
Kali Vara Purushotham Santhati
5884b8d17c
cli: fix cli compatibility check message
...
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 6e0fe655f45e60610e61a39a0bfb9d61d676945d
2021-05-19 09:32:33 +00:00
Abby Sassel
3ba5d1e540
server: include more detail in inconsistent metadata error messages ( fix #6684 )
...
GitOrigin-RevId: 1a0d8fa2b465320e9ab4ea43259d0e8d92364473
2021-05-19 05:02:53 +00:00
Kali Vara Purushotham Santhati
8edd3f03a5
cli: using forward slash as filepath separator irrespective of os.
...
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 6ad93a11830868a05a1c02333d482a2978b704c2
2021-05-19 03:36:23 +00:00
Vishnu Bharathi
b408b04e33
cli: allow space in database name
...
GitOrigin-RevId: 470bcc6926c19998b2d30787f1ea4649c35bfa41
2021-05-18 10:49:05 +00:00
Aravind K P
9dfed5da57
cli: fix applying migrations in a different environment after config v3 update
...
GitOrigin-RevId: 2f5d554dba50da1d45ea9689afca07f4d0f2c1e5
2021-05-17 15:20:08 +00:00
Vishnu Bharathi
6d340b58c6
cli: adds support for graphql_schema_introspection
metadata object
...
GitOrigin-RevId: a0c372bfa7ee0620bdd80d110da4b1e85e45f73f
2021-05-17 04:53:34 +00:00
Vishnu Bharathi
ebc01c2378
cli, ci: enables docker based tests
...
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: d7a53e512d296bdd4b2119bb1d0b89e30da7d476
2021-05-17 00:30:08 +00:00
Kali Vara Purushotham Santhati
489835eb36
cli: metadata apply,export enhancements
...
- modified the `dry-run` flag of metadata apply command.
- added new flag `o` which takes "json" or "yaml" as parameters for metadata apply command.
- added new flag `o` which takes "json" or "yaml" as parameters for metadata export command. It outputs the metadata from server to stdout in form of json or yaml and won't change the project's metadata.
- added deprecation warnings for `--from-file` flag
- added info message for describing change of behavior of `--dry-run` flag
- v3 metadata objects like `rest_endpoints` was also added to list of metadata objects in config v2 (fix)
- the order in which metadata objects are appended to metadata objects list matter when using `--dry-run` flag, refactored this order to match server metadata.
- `metadata apply` command can now accept json/yaml metadata from io pipe
- config v3 `metadata apply` didn't show any information to user when applied metadata is inconsistent, this is addressed.
- removed `github.com/ghodss/yaml` dependency from repo
- version metadata object was added twice during intialization (fix)
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 2316f519eb40645efd86ffee2a85d3c90543ec17
2021-05-14 19:09:59 +00:00
hasura-bot
62f69a428a
Fix typo in debug logs
...
GITHUB_PR_NUMBER: 6882
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6882
Co-authored-by: Carl Patenaude-Poulin <1834919+lilred@users.noreply.github.com>
GitOrigin-RevId: 84188e6cc070de5d534d910b8932b16c355e63cf
2021-05-11 06:49:28 +00:00
hasura-bot
20694a96f0
Minor grammar tweak on init command errors (exist -> exists)
...
GITHUB_PR_NUMBER: 6624
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6624
Co-authored-by: Zack Amiton <20943979+Nathansbud@users.noreply.github.com>
GitOrigin-RevId: e30d2187a980b7622a6e68c32608b68f2ccdd491
2021-05-04 16:36:50 +00:00
Aravind K P
eeafc06288
cli: update console assets buckets selection
...
GitOrigin-RevId: 524b4612cf059315fc3a6466857994b8909d5d67
2021-05-04 12:00:12 +00:00
Aravind K P
2d88c4554c
cli: on m1 macs use darwin/amd64
builds in installation script
...
GitOrigin-RevId: 51078adaab957296c4efa9973f19daa9dec570b2
2021-05-03 08:00:44 +00:00
Karthikeyan Chinnakonda
aca8964fdc
server: make postgres related ENV vars source specific
...
Co-authored-by: Tirumarai Selvan <8663570+tirumaraiselvan@users.noreply.github.com>
Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com>
GitOrigin-RevId: 8ec3db00f00e9c28bf2dc0f47bd312a656c61a69
2021-04-28 16:50:14 +00:00
Aravind K P
cc24e50515
cli: support api_limits
in metadata
...
GitOrigin-RevId: e0d2e30bb2775f761232218aa67cf3781df3e49a
2021-04-21 10:10:08 +00:00
Aravind K P
054a41d93d
cli: (regression) fix behaviour of metadata apply
--dry-run
flag
...
GitOrigin-RevId: e1f61866f78bbf8b255852c9b9390f02220f5b6b
2021-04-21 08:22:47 +00:00
Aravind K P
226a0975e3
cli: misc fixes
...
GitOrigin-RevId: b7bd99795ea1732dcb3bddf45985cd1dc04fbbea
2021-04-21 07:27:21 +00:00
Aravind K P
7638d1832a
cli: add support for bigquery
...
GitOrigin-RevId: 8d479cbd056ee839b11ae24557085573b3e5b5ba
2021-04-19 07:06:18 +00:00
Aravind K P
8bc7c2089c
cli: fix errors being ignored on metadata apply
...
GitOrigin-RevId: 1f526c70f57082aa968ebc3d957c78613e9a399e
2021-04-16 11:51:48 +00:00
Rakesh Emmadi
f7c37b007a
server: use_prepared_statements
option in add_pg_source metadata API
...
GitOrigin-RevId: 7b5af6d1cafc0b95fc86354293b3c3a4669e8bd2
2021-04-14 17:52:17 +00:00
Kali Vara Purushotham Santhati
9340a5b1cd
cli: e2e tests for actions and seeds commands
...
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 9371c94b55cb375246784e53029fdece7db2fb58
2021-04-13 08:23:57 +00:00
Kali Vara Purushotham Santhati
214e5363a6
cli: separate action operations from migrate driver
...
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 166de18b2ca3fd83ad6c0f471e0af2c8f22206d0
2021-04-12 17:28:32 +00:00
Kali Vara Purushotham Santhati
379b812674
cli: add e2e tests for metadata and migrate commands
...
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: d63e0452fdb97a8f6c4e921467fc2a1de50639a1
2021-04-05 14:01:35 +00:00
Aravind K P
7f420ad1ae
cli: add --all--databases
flag on migrate apply
...
GitOrigin-RevId: 87a8b4250abad349153d1af73917859bd8f2a31a
2021-04-01 12:59:20 +00:00
Aravind K P
cc3539415b
cli: fix seeds incorrectly being applied to databases
...
GitOrigin-RevId: cce2612ddfd90d1fd10a0a3561d24c64569a6935
2021-04-01 10:39:53 +00:00
Kali Vara Purushotham Santhati
b875d95a75
cli: separate the metadata operations from migrate driver
...
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 8f6791d5fd51d011623361ac2f5994c8badb50bf
2021-04-01 05:14:17 +00:00
Vishnu Bharathi
6631f79aee
ci, cli: fix cli to have clean version
...
GitOrigin-RevId: 4ffb2657b455ee08e68e5c57dd2d5c6b411ece5e
2021-03-26 02:53:16 +00:00
Aravind K P
d4921549cf
cli: match project metadata key ordering with server metadata
...
GitOrigin-RevId: 3052dd7cf8a066ac4378a48641935ed98fe0657f
2021-03-19 07:38:48 +00:00
Aravind K P
a9e78b267f
cli: fix issue with adding operation to allow list in console mode
...
GitOrigin-RevId: 6f5d1e4e103e3a219bbfe1fb1ff213aa9e3fd521
2021-03-18 06:11:56 +00:00
hasura-bot
2099208e4b
cli: merges cli-ext with cli
...
GITHUB_PR_NUMBER: 6640
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6640
Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com>
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 362d82d8ee18afd7efa63e9c8912f6c5444f82dd
2021-03-17 15:10:03 +00:00
Kali Vara Purushotham Santhati
c3e60aba28
cli: update cli help texts and docs generation
...
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: b6909583093baac4a69296721feae149ca6a0605
2021-03-15 15:41:54 +00:00
Aravind K P
4abc2061fe
cli: support inherited roles in metadata
...
GitOrigin-RevId: f70f199e8ef5c9b859250673bcb7de766400748c
2021-03-09 20:21:03 +00:00
Aravind K P
ae92ac4941
cli: rename flag --database to --database-name
...
GitOrigin-RevId: 37fb8dd4f82c2b68f87013e5ec87d5b2dab8853f
2021-03-09 06:44:37 +00:00
Aravind K P
d18e172662
cli: allow relative paths in !include directives
...
GitOrigin-RevId: c4928e8a1e8918b1a24774ccafbcc5839574f5d7
2021-03-09 05:57:45 +00:00
Aravind K P
f6ca551df4
cli: support mssql sources
...
GitOrigin-RevId: 4b1a63c8dc342ae4001b16c4b1dce282092d5c6f
2021-03-08 12:00:34 +00:00
Kali Vara Purushotham Santhati
34b611ae43
cli: fix extension of generated seeds file
...
close https://github.com/hasura/graphql-engine/issues/6422
GitOrigin-RevId: 2cbf4a64598e7ef8866cedb46686a8ec4642a63d
2021-03-08 08:30:17 +00:00
Aravind K P
3bfa6834a8
cli: add precondition checks for config v3 update command
...
GitOrigin-RevId: 62f786ea8fc8d14deb0e78bbbdc2467b7a4e0e9e
2021-03-08 06:58:49 +00:00
Kali Vara Purushotham Santhati
6d04f587b4
cli: follow symlinks in migrations directory
...
GitOrigin-RevId: 66840f2b087be3c7660115c5e7158574997f0292
2021-03-05 17:14:17 +00:00
Kali Vara Purushotham Santhati
f998fc089e
cli: add API docs
...
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 1cbcba2d458d82814703682c63b1f0f7bf6226bc
2021-03-05 11:57:55 +00:00
Rakesh Emmadi
edf5a0661e
server: support mssql views
...
GitOrigin-RevId: 50e2fc1d64a67a9284ae62d2401ca6f9627ebdab
2021-03-05 10:53:38 +00:00
Aravind K P
c8e08e2804
cli: support rest endpoints
...
GitOrigin-RevId: cd32497fb751489d9b17e91e30e18772f7fa07ec
2021-03-05 03:22:59 +00:00
Praveen Durairaju
0ff26100bf
update docs link to avoid redirects
...
GitOrigin-RevId: 1f2a1d21bfb9b2908d56305fa2dfb69270deafdf
2021-03-01 18:51:18 +00:00
hasura-bot
8ab4213020
cli: fix minor typo
...
GITHUB_PR_NUMBER: 6574
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6574
Co-authored-by: Samuel Ainsworth <226872+samuela@users.noreply.github.com>
GitOrigin-RevId: f62f046d9b3756d1bd64ee9ffeb1e047ebd159b9
2021-02-22 13:26:24 +00:00
Aravind K P
fe0d85804a
cli: fix tls config of api client
...
GitOrigin-RevId: 5fb26450aae3062b0b96093e7884f6277ed846f0
2021-02-22 12:43:11 +00:00
Aravind K P
c7657dc2b0
cli: fix path of sources metadata plugin on init
...
GitOrigin-RevId: 23c93c1d89bd54878b8680851275362f651c9e48
2021-02-19 06:06:34 +00:00
Aravind K P
c86e9392b9
cli: remove outdated/unused config values
...
GitOrigin-RevId: 846553eeb468164d5134bc702747fe986b165c5b
2021-02-18 13:16:40 +00:00
hasura-bot
4c7599566d
cli: remove metadata.yaml from migrations directory after update-config-v2 script ( fixes #6112 )
...
GITHUB_PR_NUMBER: 6121
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6121
Co-authored-by: Kali Vara Purushotham Santhati <72007599+purush7@users.noreply.github.com>
GitOrigin-RevId: 79836c5fa0c325f0b74d97b24616476c3a56df79
2021-02-18 10:48:34 +00:00
Aravind K P
8996bcf70d
cli: use v2 replace_metadata
in config v3
...
GitOrigin-RevId: b0263799a17052195ebf295516c3105c5c80ce74
2021-02-18 05:37:46 +00:00
Aravind K P
cb029c317b
cli: refactor datasource -> database
...
GitOrigin-RevId: 89bb1fbac0848d833678e33e98b5d558917c13ea
2021-02-17 12:52:37 +00:00
Aravind K P
e514ea70ee
cli: add api middleware to check if project update is required
...
GitOrigin-RevId: 0ced06bc71ae2dd8c26bb98082a939d6b3e7c613
2021-02-17 11:16:22 +00:00
Aravind K P
a0995d1b30
cli: add client package, statestore implementations, deprecate config v1
...
GitOrigin-RevId: 5a1d9cb772ac62603f2543bfe6c01a95c0a035c6
2021-02-17 04:21:11 +00:00
Aravind K P
8ec92cc198
cli: config v3 project metadata directory
...
GitOrigin-RevId: c2dce9ca1f37688eecb7eb78c97944ac96d81d54
2021-02-16 06:26:24 +00:00
Aravind K P
3d5b30ce01
cli: fix metadata export behavior of config v2 with a v3 metadata server
...
GitOrigin-RevId: 76d1d01cee55f950cba3184dd57655c922a8d011
2021-02-15 15:15:44 +00:00
Aleksandra Sikora
b4fd2e3f9f
console and cli: run console in CLI mode for tests, misc CLI fixes ( #368 )
...
GitOrigin-RevId: 4563444387a4c9d02b5429729fe30bc87763288f
2021-01-20 20:18:44 +00:00
Aleksandra Sikora
e2c274570f
cli: add Hasura-Internal-Request-Source to allowed headers
...
GitOrigin-RevId: 19e96852b02066ab6119e2cded21ce9518d4c1a0
2021-01-20 13:55:34 +00:00
hasura-bot
a398d3b190
cli: support datasources
...
GITHUB_PR_NUMBER: 6111
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6111
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 1f6517acfacb58c566bb5e48f74ea0dfa5c6f063
2021-01-18 17:12:09 +00:00
Kali Vara Purushotham Santhati
7cefefabd1
support for set table customization
...
squash support for set table customization
closes #153
GitOrigin-RevId: c4720e526c6415191c790615144f5de377c635f3
2020-12-28 05:37:36 +00:00
hasura-bot
a18cd6b1bc
cli: fix action timeout not being picked up in metadata operations ( close #6220 )
...
GITHUB_PR_NUMBER: 6354
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6354
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 9869712d496d8e0733f9b25d44962e9a978ebc24
2020-12-24 05:07:26 +00:00
Kali Vara Purushotham Santhati
2acad94fb1
cli: misc fixes
...
GitOrigin-RevId: 9aa0d4b162dc41869bbc5d77cdba727e9f3becb9
2020-11-24 06:12:24 +00:00
hasura-bot
2f7f2eb32d
cli: force update local plugin index ( close #6219 ) ( #70 )
...
Co-authored-by: scriptonist <aravindkp@hasura.io>
GITHUB_PR_NUMBER: 6231
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6231
Co-authored-by: scriptonist <aravindkp@hasura.io>
GitOrigin-RevId: c34d88b64fe8ad34ae23692a6513f1e7ca7c571a
2020-11-20 07:59:58 +00:00
Robert
1477ada1bb
cli: update promptui dependency ( #51 )
...
* gofmt
* cli: Update promptui to v0.8.0
This is in order to avoid the dependency on the abandoned
kingping.v3-unstable, which was causing dependency conflicts
compiling the pro/cli securelink code.
GitOrigin-RevId: 1264a86ca31b15b2a48c375cd123977084ac558e
2020-11-18 13:36:24 +00:00
Vishnu Bharathi P
58c44f55dd
Merge oss/master onto mono/main
...
GitOrigin-RevId: 1c8c4d60e033c8a0bc8b2beed24c5bceb7d4bcc8
2020-11-12 22:37:19 +05:30
Vishnu Bharathi P
666058ab7f
oss: renames dot files and folders
...
GitOrigin-RevId: 540aeec3be091e1cfb7b05a988f50445534ed663
2020-11-12 22:37:19 +05:30
Saran Balaji
b5db6c2019
cli: fix lint errors in scripts_update_config_v2.go ( #5983 )
...
https://github.com/hasura/graphql-engine/pull/5983
2020-11-07 10:07:53 +00:00
Aravind K P
4e4e3f3fd3
cli (cli-migrations image): fix problems running cli-migrations-v2 image as a non root user ( close #4651 close #5333 ) ( #5306 )
...
https://github.com/hasura/graphql-engine/pull/5306
2020-11-06 14:09:53 +00:00
Aravind K P
01c4cd2ff3
cli: do not clear metadata during metadata apply ( close #6115 ) ( #6119 )
...
https://github.com/hasura/graphql-engine/pull/6119
2020-11-06 08:51:10 +00:00
Brian Pedersen
d2d0a05901
cli: fix lint errors in migrate/cmd/commands.go ( #5946 )
...
https://github.com/hasura/graphql-engine/pull/5946
2020-10-30 09:12:18 +00:00
Amarnath Karthi
d6d0b99a3c
cli: fix lint errors for /ci/migrate/util.go ( #5912 )
...
https://github.com/hasura/graphql-engine/pull/5912
2020-10-29 07:08:12 +00:00
Ayan Banerjee
fd36bd1492
cli: fix lint issues for v2/integration_test/seeds.go ( #5954 )
...
https://github.com/hasura/graphql-engine/pull/5954
2020-10-29 06:13:53 +00:00
Vladyslav Nekriach
989832cfb5
fix linting in cli/source/stub/stub_test.go ( #5972 )
...
https://github.com/hasura/graphql-engine/pull/5972
2020-10-29 05:42:05 +00:00
Daniel Shuy
c5ca59208e
cli: fix lint errors in cli/commands/init.go ( #5943 )
...
https://github.com/hasura/graphql-engine/pull/5943
2020-10-29 05:09:36 +00:00
Panagiotis Vasilopoulos
ebe6990c45
cli: fixed lint error ( #5877 )
...
https://github.com/hasura/graphql-engine/pull/5877
2020-10-28 04:18:48 +00:00
Sam Radhakrishnan
ee940b4a84
cli: fix linter errors ( #5870 )
...
https://github.com/hasura/graphql-engine/pull/5870
2020-10-22 08:08:14 +00:00
Arun Mathew
ebc3e15198
cli: fix lint errors in metadata/actions/actions.go ( #5910 )
...
https://github.com/hasura/graphql-engine/pull/5910
2020-10-22 07:36:37 +00:00
Yash Saravgi
72b1d01ca7
cli: fix lint error in commands\docs.go ( #5929 )
...
https://github.com/hasura/graphql-engine/pull/5929
2020-10-22 07:05:32 +00:00
Aditya Vats
9332521f95
cli: fix lint errors in cli/util/git.go ( fix #5831 ) ( #5932 )
...
https://github.com/hasura/graphql-engine/pull/5932
2020-10-22 06:35:05 +00:00
Ahmed Kamal
d3abb474e5
cli: change 'hasura seeds' to 'hasura seed' with 'seeds' as alias ( #5693 )
...
https://github.com/hasura/graphql-engine/pull/5693
2020-10-07 09:26:30 +00:00
Nuno Pato
c348ea7a9d
cli: allow for schema specification when using hasura seeds create ( close #5711 ) ( #5710 )
...
https://github.com/hasura/graphql-engine/pull/5710
2020-10-01 13:05:36 +00:00
Marion Schleifer
2358f6bbae
cli/docs: add missing global flags for seeds command and add new cli commands to docs ( #5565 )
2020-08-18 17:59:58 +05:30
slimlime
684c25b14b
docs: update bash_completion directory typo ( #5418 )
2020-08-18 10:12:58 +02:00
Sameer Kolhar
963e1106dc
cli: fix error while creating seed file from table names having upper case alphabets ( #5549 )
2020-08-10 11:28:03 +05:30
Aravind
2592236858
cli: improve error messages for metadata apply ( close #5513 ) ( #5548 )
2020-08-10 10:54:00 +05:30
Aravind
96f6bdd531
cli: support squashing actions in config v1 ( #5249 )
2020-07-27 07:15:43 +05:30
Aravind
2e5e59bd00
cli: handle failed update checks gracefully ( close #5392 ) ( #5403 )
2020-07-27 07:15:08 +05:30
Aravind
cd0e2ec8e8
cli: fix permission issues when creating symlinks on windows, misc fix ( close #5111 , close #4879 ) ( #5164 )
2020-07-03 09:49:09 +05:30
Darío Javier Cravero
f6d111ccd9
cli: allow setting the release to get in cli/get.sh ( #4348 )
2020-06-25 17:56:53 +02:00
Aravind
1aa05624a8
cli: support squashing migrations with cron triggers (squash V1) ( #5165 )
2020-06-24 19:50:20 +05:30
Aravind
6486a4f0ec
cli: when applying metadata, assume empty metadata plugin files if they don't exist ( close #5163 ) ( #5170 )
2020-06-24 16:08:48 +05:30
Aravind
1f2037947d
cli: manage seed migrations as sql files ( close #2431 ) ( #3763 )
2020-06-16 17:45:04 +05:30
Aravind
5a648a9bb2
cli: fix cron triggers not being exported on a metadata export ( close #5047 ) ( #5060 )
2020-06-16 14:38:36 +05:30
Aravind
d7ca702542
cli: support squashing migrations with remote joins ( close #4908 ) ( #4924 )
2020-06-16 12:10:20 +05:30
Sameer Kolhar
13e4edbdf8
cli: add flags --up-sql and --down-sql to migrate create command ( close #5026 ) ( #5039 )
2020-06-16 11:30:20 +05:30
Ashish Rao
d9cc676790
cli: add --dry-run flag to migrate apply command ( close #3128 ) ( #3499 )
2020-06-03 16:49:36 +05:30
Aravind
177556f441
cli: fix tests failing in local dev environment ( #4729 )
2020-06-03 14:01:40 +05:30
Aravind
daf098886b
cli: fix bug with squashing event triggers ( close #4883 ) ( #4949 )
2020-06-03 12:13:05 +05:30
Aravind
edbd9c4f48
cli: load assets from server if cdn is disabled ( close #3382 ) ( #3851 )
2020-06-03 09:36:23 +05:30
Aravind Shankar
16d01bc908
cli: add support for skipping execution while generating migrations through the migrate REST API ( #4475 )
2020-06-02 10:41:47 +05:30
scriptonist
b771956336
cli: fix update scripts failing when sql migrations files are already present
2020-05-26 08:46:36 +05:30
Aravind
f1c3b43f6f
cli: fix docs failing to build ( close #4637 ) ( #4698 )
2020-05-07 13:03:50 +05:30
Can Taşpınar
9d815598cc
cli: include new commands in help text ( fix #4623 ) ( #4626 )
2020-05-05 09:21:20 +05:30
Shraddha Agrawal
88685736c7
Merge branch 'master' into init-current-directory
2020-04-28 18:35:00 +05:30
Shraddha Agrawal
d95d6378e8
cli: add support for servers with self-signed certs ( fix #4564 ) ( #4582 )
...
Co-Authored-By: Marion Schleifer <marion@hasura.io>
2020-04-28 17:29:57 +05:30
Shraddha Agrawal
f7b99b53e4
minor fixes
2020-04-27 13:26:34 +05:30
Shraddha Agrawal
d5ae48c14e
update help text and docs for init command
2020-04-27 10:03:10 +05:30
Shraddha Agrawal
e9cad694ed
validate pwd is neither filesystem root nor an existing hasura project
2020-04-27 09:04:32 +05:30
Shraddha Agrawal
3053af1055
cli: allow initialising project in current directory
2020-04-26 22:24:48 +05:30
Shraddha Agrawal
38529b3960
cli: remove irrelevant flags from init command ( close #4508 ) ( #4549 )
2020-04-25 11:33:13 +05:30
Shraddha Agrawal
e07761eb33
cli: validate endpoint using ParseRequestURI ( fix #4407 ) ( #4416 )
2020-04-23 08:40:24 +05:30
Shraddha Agrawal
75d35ac2f6
cli: add suport for .env file ( fix #4129 ) ( #4454 )
2020-04-23 08:17:51 +05:30
Aravind Shankar
455b78552d
cli(test): refactor integration test metadata directory ( #4491 )
2020-04-22 16:58:02 +05:30
Aravind Shankar
2a693be553
cli(test): fix cli init test to use initDir from subtest group ( #4490 )
2020-04-22 15:54:24 +05:30
Aravind Shankar
2ee6328d0d
cli: add check_metadata_consistency for v2 workflow migrations ( #4392 )
2020-04-22 15:52:02 +05:30
Aravind Shankar
aca11f0944
cli: spinner bug, add cli_environment in global config ( #4459 )
...
close #4456
close #4436
close #4496
2020-04-22 14:45:42 +05:30
Rishichandra Wawhal
8a5cc73ae6
cli, console: actions dx improvements ( close #4306 , #4311 ) ( #4308 )
2020-04-16 13:40:47 +05:30
Aravind Shankar
5081a2969f
cli: update makefile to set plugins branch ref ( #4421 )
2020-04-16 06:54:50 +05:30
Aravind
f073243283
cli: add hasura-collaborator-token and hasura-client-name to allowed headers ( #4414 )
2020-04-15 19:08:31 +05:30
Aravind Shankar
1ada6627b0
ci: add tests for cli-migrations image ( #4396 )
...
- Created new job test_and_build_cli_migrations which runs after test_and_build_cli
- Build the cli-migrations and cli-migrations-v2 and save the images as tar image.
- Run the test defined in each workflow v1 and v2.
- Load the image that was built earlier in deploy step
2020-04-15 07:26:00 +05:30
Aravind Shankar
21a4dff993
cli(squash): add set_table_is_enum metadata type ( close #4394 ) ( #4395 )
2020-04-14 16:39:41 +05:30
Shraddha Agrawal
a1796c2c9f
cli: update docs to remove realize specific instructions ( #4398 )
2020-04-14 08:42:53 +05:30
Rishichandra Wawhal
9b66724b41
console, cli, cli-ext: query support for actions ( close #4032 ) ( #4318 )
...
Co-authored-by: Aravind Shankar <aravind@hasura.io>
2020-04-13 15:51:53 +05:30
Aravind Shankar
491a50b1e9
cli: link cli-ext plugin with cli version ( close #4105 ) ( #4280 )
2020-04-13 08:46:06 +05:30
Aravind Shankar
53e4f994d2
cli: event trigger retry_conf support to squash ( close #4296 ) ( #4324 )
2020-04-10 08:22:41 +05:30
Aravind
14b5d10dfb
cli: refactor ec to allow setting hge api headers ( #4347 )
2020-04-09 15:00:47 +05:30
Aravind
e1b0562fd8
cli: clarify flags on migrate create ( #4316 )
2020-04-09 14:35:05 +05:30
Aravind Shankar
995e198d0a
cli: show env vars for the flags in command help ( close #4263 ) ( #4326 )
2020-04-08 17:25:42 +05:30
Aravind Shankar
21b61af109
cli: allow customization of server api paths ( close #4016 ) ( #4174 )
2020-04-08 16:29:21 +05:30
Aravind Shankar
325771e406
cli: remove migration files if api returns error ( close #4312 ) ( #4319 )
...
When using console from CLI and a migration is created, the files are written first and an API call is made to Hasura to execute that migration. There was a bug which caused this file to remain when the API call to Hasura failed. This commit fixes the bug by deleting the files if Hasura API call fails and propagates the error to console.
2020-04-08 10:54:47 +05:30
Aravind Shankar
d5e61716f8
cli: add support for multiple versions of plugin ( close #4105 ) ( #4135 )
2020-04-07 19:42:14 +05:30
Aravind Shankar
d0870a85f8
cli: update makefile to include pkger ( #4320 )
2020-04-07 18:35:00 +05:30
Aravind
de41438e8a
cli: refactor console command ( #4150 )
2020-04-07 14:53:20 +05:30
Rishichandra Wawhal
f75e4e6ad0
cli: add assetsPath in unversioned console html ( close #4274 ) ( #4275 )
2020-04-03 09:04:49 +05:30
Aravind Shankar
09e0e2f2a5
cli: fix init command to generate correct config ( fix #4036 ) ( #4038 )
2020-03-26 08:54:05 +05:30
Aravind Shankar
13e8a3c010
cli: send command path in telemetry data ( #4095 )
2020-03-26 08:38:54 +05:30
Aravind Shankar
41757b5f7f
cli: fix parse error returned on console api ( close #4126 ) ( #4152 )
2020-03-25 16:12:39 +05:30
Dmitry Minkovsky
b6780e8a15
cli: fix typo in cli example for squash ( fix #4047 ) ( #4049 )
2020-03-09 15:19:00 +05:30
Shahidh K Muhammed
d7d53f222c
cli: add version flag in update-cli command ( #3996 )
...
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2020-03-05 12:25:33 +05:30
Aravind Shankar
45bcb6b536
cli, server: use prerelease tag as channel for console assets cdn ( #3975 )
...
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2020-03-04 20:10:47 +05:30
Aravind Shankar
e3b843ce81
cli: fix flags in actions, migrate and metadata cmd ( fix #3982 ) ( #3991 )
2020-03-03 12:36:59 +05:30
Aravind Shankar
28941b4eef
cli(actions): preserve action definition in metadata apply (fix… ( #3993 )
2020-03-03 12:36:07 +05:30
Praveen Durairaju
865b150c82
noop: replace subdomain links with subpath ( #3869 )
...
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
2020-02-27 15:43:07 +05:30
Aravind Shankar
21e6dd7759
cli: bug fixes related to actions ( #3951 )
2020-02-25 20:28:28 +05:30
Aravind Shankar
89b6ce86ca
cli: misc fixes related to actions ( #3942 )
2020-02-25 12:16:11 +05:30
Aravind Shankar
bb63d7e60e
cli: allow managing actions ( #3859 )
...
Co-authored-by: Rishichandra Wawhal <rishichandra.wawhal@gmail.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: Aravind <aravindkp@outlook.in>
Co-authored-by: Anon Ray <ecthiender@users.noreply.github.com>
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2020-02-24 21:44:46 +05:30
Rikin Kachhia
b0d180efa2
docs: use install manifests from stable branch ( #3906 )
...
* update docs install manifests to use stable branch
* change the link to master at some more places
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2020-02-19 17:13:08 +05:30
Karthikeyan Chinnakonda
441c0a2452
cli: update installation instructions in the readme ( fix #3875 ) ( #3876 )
...
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2020-02-13 12:54:36 +05:30
Aravind
c258fa75cb
cli: add --goto flag in hasura migrate apply ( close #2689 ) ( #3715 )
...
* cli: add --goto <version> flag to migrate command
* cli: fix error encoutered in goto, when on version -1
* do down migrations one step down
* reorganize code
* in case of up "gotos" make sure that all previous migration in migration chain are applied
* modify readUp and readDown functions to account for --goto use case
* refactor to clean up and adopt a better implementation addressing the comments
* remove empty error handling step
* return ErrNoChange when no migrations were applied
* respect m.stop() can panic so place conditional cases after that and add a couple other small fixes
* fix bug caused by early checking of versions
* fix to add migration_mode and nil version check
* add some more examples for migrate apply command
Co-authored-by: Aravind Shankar <face11301@gmail.com>
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2020-02-03 12:33:32 +05:30
Shahidh K Muhammed
64485a0fd6
cli: fix version constraint for update check ( close #3719 ) ( #3730 )
2020-01-30 14:41:03 +05:30
Shahidh K Muhammed
f6a43fe3ba
fix various version-related issues with cli ( close #3706 ) ( #3709 )
...
- do not quit on server-cli version mismatch, show warning
- fix a bug in update-cli command which prevets updates to pre-release
versions
- if a console template for a particular version is not found, use the
latest template
2020-01-16 09:23:18 +05:30
Aravind
204f02fc62
cli: update go-binddata, fix realize ( close #3588 ) ( #3687 )
...
* use a maintained version of go-binddata, fix error in `realize
start`
* run go mod tidy
2020-01-13 15:24:41 +05:30
Ashish Rao
2fc49eaa63
cli: add browser flag to console command ( close #3333 ) ( #3601 )
...
Co-authored-by: Ashish Rao <ashishrao@hasura.io>
Co-authored-by: Thibaut Tiberghien <thibaut@smplrspace.com>
2020-01-08 08:36:09 +05:30
Aravind Shankar
bf98f15dcf
cli(fix): execute down migration in the correct order ( #3625 )
2020-01-06 15:21:00 +05:30
Rahul Verma
c6ab1014af
cli(fix): better error handling on non-json api responses (clos… ( #3104 )
...
Co-authored-by: Rahul Verma <51950008+rahulverma283@users.noreply.github.com>
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2019-12-27 16:28:36 +05:30
Aravind Shankar
337403d532
cli(fix): squash command not adding the last down ( close #3401 ) ( #3569 )
...
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2019-12-27 11:35:20 +05:30
Ashish Rao
1cea6bdc57
cli: use json logs on non-terminal envs ( close #2770 ) ( #3528 )
...
Co-authored-by: Shahidh K Muhammed <shahidh@hasura.io>
2019-12-25 20:14:02 +05:30
Pradeep Murugesan
dece69c5a9
cli: add commands to manage inconsistent metadata ( close #2766 ) ( #2973 )
...
Co-authored-by: Aravind Shankar <face11301@gmail.com>
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2019-12-25 14:03:06 +05:30
Shahidh K Muhammed
8ea6f77c7b
cli: add directory name as an argument to init cmd ( #3590 )
...
* add directory-name as an argument to init command
* change dev version to a const string
2019-12-25 14:01:29 +05:30
Ashish Rao
f8ffbda118
console(fix): blank image on remote schemas section (close #220… ( #3574 )
2019-12-21 13:04:08 +05:30
Alexis King
bdf79dfc48
Fix failing CLI test ( #3567 )
2019-12-18 16:45:29 -06:00
Rakesh Emmadi
421a182f64
export metadata without nulls, empty arrays & default values ( #3393 )
...
* export metadata without nulls, empty arrays
* property tests for 'ReplaceMetadata' using QuickCheck
-> Derive Arbitrary class for 'ReplaceMetadata' dependant types
* reduce property test cases number to 30
QuickCheck generates the `ReplaceMetadata` value really large
for higher number test cases. Encoded JSON for such values is large and
consumes more memory. Thus, CI is giving up while running property
tests.
* circle-ci: Add property tests as saperate job
* add no command mode to tests
* add yaml.v2 to go mod
* remove indirect comment for yaml.v2 dependency
2019-12-14 00:47:38 -06:00
Ashish Rao
3d3e987c2a
cli(build): migrate to go modules ( close #3476 ) ( #3493 )
2019-12-12 11:07:26 +05:30
Ashish Rao
0f89940383
cli(installer): add -f flag to curl ( fix #1871 ) ( #3477 )
2019-12-12 11:00:19 +05:30
Ashish Rao
b183eba9ba
add examples to all cli commands ( #3475 ) ( #3492 )
2019-12-12 10:46:36 +05:30
Ashish Rao
094bbc8760
fix(cli): mark from flag as required for squash ( close #3400 ) ( #3500 )
2019-12-10 15:48:58 +05:30
Euler
56a217bbaa
add name to migrate status response ( close #2376 ) ( #3109 )
2019-11-28 17:06:16 +05:30
Rakesh Emmadi
9b8e6b42d1
functions can access session info via input arg ( close #2322 ) ( #3143 )
2019-11-20 12:17:06 +05:30
Rakesh Emmadi
3888ceb24a
computed fields in export/import metadata, other fixes ( #3211 )
2019-11-07 20:09:48 +05:30
Aravind Shankar
980c65dbe2
cli(migrations): new folder structure and squash ( #3072 )
...
### Description
This PR introduces three new features:
- Support for a new migrations folder structure.
- Add `squash` command in preview.
- ~List of migrations on the Console and ability to squash them from console.~
#### New migrations folder structure
Starting with this commit, Hasura CLI supports a new directory structure for migrations folder and defaults to that for all new migrations created.
Each migration will get a new directory with the name format `timestamp_name` and inside the directory, there will be four files:
```bash
└── migrations
├── 1572237730898_squashed
│ ├── up.sql
│ ├── up.yaml
│ ├── down.yaml
│ └── down.sql
```
Existing files old migration format `timestamp_name.up|down.yaml|sql` will continue to work alongside new migration files.
#### Squash command
Lots of users have expressed their interest in squashing migrations (see #2724 and #2254 ) and some even built [their own tools](https://github.com/domasx2/hasura-squasher ) to do squash. In this PR, we take a systematic approach to squash migrations.
A new command called `migrate squash` is introduced. Note that this command is in **PREVIEW** and the correctness of squashed migration is not guaranteed (especially for down migrations). From our tests, **it works for most use cases**, but we have found some issues with squashing all the down migrations, partly because the console doesn't generate down migrations for all actions.
Hence, until we add an extensive test suite for squashing, we'll keep the command in preview. We recommend you to confirm the correctness yourself by diffing the SQL and Metadata before and after applying the squashed migrations (we're also thinking about embedding some checks into the command itself).
```bash
$ hasura migrate squash --help
(PREVIEW) Squash multiple migrations leading upto the latest one into a single migration file
Usage:
hasura migrate squash [flags]
Examples:
# NOTE: This command is in PREVIEW, correctness is not guaranteed and the usage may change.
# squash all migrations from version 1572238297262 to the latest one:
hasura migrate squash --from 1572238297262
Flags:
--from uint start squashing form this version
--name string name for the new squashed migration (default "squashed")
--delete-source delete the source files after squashing without any confirmation
```
### Affected components
<!-- Remove non-affected components from the list -->
- CLI
### Related Issues
<!-- Please make sure you have an issue associated with this Pull Request -->
<!-- And then add `(close #<issue-no>)` to the pull request title -->
<!-- Add the issue number below (e.g. #234 ) -->
Close #2724 , Close #2254 ,
### Solution and Design
<!-- How is this issue solved/fixed? What is the design? -->
<!-- It's better if we elaborate -->
For the squash command, a state machine is implemented to track changes to Hasura metadata. After applying each action on the metadata state, a list of incremental changes is created.
### Steps to test and verify
1. Open console via cli and create some migrations.
2. Run `hasura migrate squash --from <version>`
### Limitations, known bugs & workarounds
<!-- Limitations of the PR, known bugs and suggested workarounds -->
<!-- Feel free to delete these comment lines -->
- The `squash` command is in preview
- Support for squashing from the console is WIP
- Support for squashing migrations that are not committed yet is planned.
- Un-tracking or dropping a table will cause inconsistent squashed down migration since console doesn't generate correct down migration.
- If cascade setting is set to `true` on any of the metadata action, generated migration may be wrong
2019-10-31 07:51:15 +05:30
Jeff Sieu
2ee7f7d76e
cli(metadata): add diff command and dry-run flag ( #3157 )
...
### Description
Adds a `metadata diff` command to show comparisons between two different sets of Hasura metadata.
```
# Show changes between server metadata and the exported metadata file:
hasura metadata diff
# Show changes between server metadata and that in local_metadata.yaml:
hasura metadata diff local_metadata.yaml
# Show changes between metadata from metadata.yaml and metadata_old.yaml:
hasura metadata diff metadata.yaml metadata_old.yaml
```
Also adds a `--dry-run` flag to `metadata apply` command which will print the diff and exit rather than actually applying the metadata.
### Affected components
- CLI
- Docs
### Related Issues
Close #3126 , Close #3127
### Solution and Design
- Added `metadata_diff.go` and `metadata_diff_test.go`
### Steps to test and verify
```
hasura metadata export
# Make changes to migrations/metadata.yaml
hasura metadata diff
```
### Limitations, known bugs & workarounds
This is just a general-purpose diff.
A more contextual diff with the understanding of metadata can be added once #3072 is merged.
2019-10-30 19:24:22 +05:30
Rakesh Emmadi
9bd5826020
allow customising graphql schema for a table ( close #981 ) ( #2509 )
...
* allow customizing GraphQL root field names, close #981
* document v2 track_table API in reference
* support customising column field names in GraphQL schema
* [docs] add custom column fields doc in API reference
* add tests
* rename 'ColField' to 'ColumnField'
* embed column's graphql field in 'PGColumnInfo'
-> Value constructor of 'PGCol' is not exposed
-> Using 'parseJSON' to construct 'PGCol' in 'FromJSON' instances
* avoid using 'Maybe TableConfig'
* refactors & 'custom_column_fields' -> 'custom_column_names'
* cli-test: add configuration field in metadata export test
* update expected keys in `FromJSON` instance of `TableMeta`
* use `buildSchemaCacheFor` to update configuration in v2 track_table
* remove 'GraphQLName' type and use 'isValidName' exposed from parser lib
* point graphql-parser-hs library git repo to hasura
* support 'set_table_custom_fields' query API & added docs and tests
2019-09-19 10:17:36 +05:30
Aravind Shankar
5f3294f4a0
optimise migrate api for console on cli ( #2895 )
2019-09-18 11:06:16 +05:30
Aravind Shankar
b39d7b977b
check for empty response on migration settings ( #2877 )
...
(close #2872 ) (close #2862 )
2019-09-16 14:20:46 +05:30
ziga
5b0a790b59
fix typo in cli ( #2617 )
2019-08-28 13:33:05 +05:30
Alexis King
ed26da59a6
Add support for GraphQL enum types via enum table references
...
These changes also add a new type, PGColumnType, between PGColInfo and
PGScalarType, and they process PGRawColumnType values into PGColumnType
values during schema cache generation.
2019-08-26 00:54:56 -05:00
Charlie Saunders
e90866752e
fix some typos in cli ( #2708 )
...
* fix typo in manual CLI update message
* fix a typo that was indicated in #2689
2019-08-10 17:13:45 +00:00
Daven Paul Casia
7f06470082
add flag to disable ci colors ( close #2072 ) ( #2634 )
...
* added log-level flag
* fix up the colors
* fix description
2019-07-30 06:55:38 +00:00
Vamshi Surabhi
4facb3c780
remove support for query templates ( #2560 )
...
query templates is a little known feature that lets you template rql
queries and serve them as rest apis. This is not relevant anymore
given the GraphQL interface and getting rid of it reduces the dev
time when adding features in few subsystems.
This feature has never been used outside hasura's internal projects or
documented or exposed through console and hence can safely be removed.
2019-07-23 19:11:34 +00:00
Ajeet D'Souza
b184ce0188
add server version to console html ( close #2444 ) ( #2452 )
2019-07-02 12:44:29 +00:00
Aravind Shankar
c17bf2f94b
create down migration when a column is dropped ( close #2291 ) ( #2385 )
2019-06-26 18:42:44 +05:30
Rikin Kachhia
7ab9d5eaeb
update console favicons to png ( #2287 )
2019-05-29 10:03:29 +05:30
Shahidh K Muhammed
76ceb707f4
bundle console assets into server ( close #516 , close #521 , close #2130 ) ( #2192 )
...
This PR builds console static assets into the server docker image at `/srv/console-assets`. When env var `HASURA_GRAPHQL_CONSOLE_ASSETS_DIR=/srv/console-assets` or flag `--console-assets-dir=/srv/console-assets` is set on the server, the files in this directory are served at `/console/assets/*`.
The console html template will have a variable called `cdnAssets: false` when this flag is set and it loads assets from server itself instead of CDN.
The assets are moved to a new bucket with a new naming scheme:
```
graphql-engine-cdn.hasura.io/console/assets/
/common/{}
/versioned/<version/{}
/channel/<channel>/<version>/{}
```
Console served by CLI will still load assets from CDN - will fix that in the next release.
2019-05-16 13:15:29 +05:30
Rakesh Emmadi
0b210cc245
support allow-list for graphql queries ( closes #989 ) ( #2075 )
2019-05-16 11:43:25 +05:30
Shahidh K Muhammed
71cf017197
add an api to dump postgres schema ( close #1939 ) ( #1967 )
2019-04-30 14:04:08 +05:30
Rishichandra Wawhal
ac523b8f2b
fix cli contrib instructions ( #1958 )
2019-04-11 09:15:18 +05:30
Aravind Shankar
5f02ebdefa
added feedback on migration commands ( close #1410 ) ( #1931 )
2019-04-03 16:59:58 +05:30
Aravind Shankar
f147f6d6a6
improve error messages for metadata apply ( close #1877 ) ( #1895 )
2019-04-03 12:27:59 +05:30
Aravind Shankar
1e20026ea2
added feedback for metadata commands ( close #1411 ) ( #1929 )
2019-04-03 11:22:03 +05:30
Aravind Shankar
ca7d8b3df5
rename metadata reset to metadta clear ( close #1851 ) ( #1893 )
...
The word "reset" is little ambiguous (reset to scratch or reset to last known consistent state). metadata reset clears the all the metadata to mimic a freshly installed hasura instance. This actually invokes the clear_metadata API in the backend and hence should also be called metadata clear for perfect clarity.
All references to metadata reset should be changed to metadata clear.
2019-03-29 10:44:56 +05:30
Simone Busoli
f6c11e545d
fix bash completion example docs on cli ( #1832 )
2019-03-28 07:28:20 +05:30
Rikin Kachhia
1ba382193e
update console and docs favicons ( close #1485 ) ( #1760 )
2019-03-25 15:42:56 +05:30
Aravind Shankar
8043ddeebf
accept a json or yaml file for metadata apply command ( close #1698 ) ( #1746 )
2019-03-20 10:40:06 +05:30
Aravind Shankar
040bef2fd5
add options to create migration from files from sql and server ( close #1699 ) ( #1761 )
2019-03-18 22:10:04 +05:30
nizar-m
f83a8e591f
rename access-key to admin-secret ( close #1347 ) ( #1540 )
...
Rename the admin secret key header used to access GraphQL engine from X-Hasura-Access-Key to X-Hasura-Admin-Secret.
Server CLI and console all support the older flag but marks it as deprecated.
2019-02-14 15:07:47 +05:30
Aravind Shankar
d489f2d90f
added a cli flag to skip update checks ( close #1586 ) ( #1600 )
...
adds a global flag `--skip-update-check`
2019-02-14 11:46:36 +05:30
Shahidh K Muhammed
55cc5fb044
cli: add new install script, commands ( #1556 )
2019-02-05 18:21:21 +05:30
Aravind Shankar
20be2e5ab1
add update-cli command to cli ( close #1239 ) ( #1251 )
2019-02-04 16:21:29 +05:30
Daniel Compton
a5c9347d75
update help text for console command ( close #1507 ) ( #1508 )
2019-01-29 21:32:49 +05:30
Shahidh K Muhammed
0bb233e825
infer topic based on version set in telemetry struct ( #1511 )
2019-01-29 10:37:22 +05:30
Shahidh K Muhammed
11e7c3f9d6
add anonymous telemetry ( #1401 )
2019-01-28 19:25:28 +05:30
Rakesh Emmadi
0bf2457e23
allow exposing postgres functions through GraphQL interface ( close #333 ) ( #1073 )
2019-01-25 09:01:54 +05:30
Shahidh K Muhammed
ace701a24a
update cli contributing guide ( #1412 )
2019-01-22 12:10:59 +05:30
Aravind Shankar
c64a83f073
display error message for invalid migration file ( fix #1224 ) ( #1238 )
2019-01-04 15:15:54 +05:30
Aravind Shankar
56dbc59822
better error messages for duplicate migration versions ( close #1148 ) ( #1157 )
2018-12-04 10:03:03 +05:30
Aravind Shankar
6d2fd1db0d
added support for file information in hasuradb driver ( close #1136 ) ( #1143 )
2018-12-03 16:50:53 +05:30
Anon Ray
512ee6fb9f
adds basic support for remote schemas/schema stitching ( #952 )
2018-11-23 18:32:46 +05:30
Abhinav Srivastava
c776cd84a6
update multiple files ( #943 )
2018-11-08 12:02:57 +05:30
Shahidh K Muhammed
eb926f572a
remove docs from cli folder ( #918 )
2018-10-30 10:38:38 +05:30
Taru
2127ae878b
fix a typo in metadata command ( #788 )
2018-10-20 08:53:20 +05:30
Abilash Menon
0993740786
add reload metadata command to the cli ( close #722 ) ( #725 )
2018-10-16 11:55:30 +05:30
Daniel P
b91704e3ca
fix typos is multiple files ( #728 )
2018-10-15 12:29:51 +05:30
Sunita Sen
a8abc40ece
fix typo in cli readme ( #698 )
2018-10-11 12:49:10 +05:30
Aravind
de2ceea132
update help for metadata export command ( #661 )
2018-10-08 12:54:43 +05:30
Gaurav Sachdeva
d02361ce14
fix typos, punctuation, etc in docs ( #635 )
2018-10-04 19:55:46 +05:30
Shahidh K Muhammed
ac004fec38
validate the directory before executing migrate create ( fix #585 ) ( #586 )
2018-10-01 15:42:12 +05:30
Shahidh K Muhammed
848dfce4a5
update cli docs ( #561 )
2018-09-28 12:57:10 +05:30
Shahidh K Muhammed
330f90de40
add project flag, change persistentprerun to prerun ( close #552 ) ( #557 )
...
### Description
Adds `--project` flag to the CLI and changes all `PersistentPreRuns` to `PreRuns`
What component does this PR affect?
- [ ] Server
- [ ] Console
- [x] CLI
- [ ] Docs
- [ ] Community Content
- [ ] Build System
### Related Issue
#552
2018-09-27 19:27:17 +05:30
Maxim Makarov
0fc4ebf09a
fix typos in metadata command ( #493 )
2018-09-20 07:00:37 +05:30
Shahidh K Muhammed
5929ec5be3
add installation manifests ( #432 )
2018-09-13 15:03:13 +05:30
Aravind Shankar
9c7c650d2b
migration apply should not fail if there are no migrations ( close #389 ) ( #390 )
2018-09-10 18:51:30 +05:30
Tirumarai Selvan
82e09efce6
add event triggers ( #329 )
2018-09-05 16:56:46 +05:30
Aravind Shankar
ea9b187e7c
update tests to use access key ( close #113 ) ( #296 )
...
Closes #113
2018-08-30 21:24:12 +05:30
Shahidh K Muhammed
fc9104f0c9
compare only major and minor versions for cli-server ( fix #331 ) ( #332 )
2018-08-30 16:14:07 +05:30
Aravind Shankar
396a2ccf8d
change hasuradb url format, export some migrate functions ( #294 )
...
* fix migrate to use headers in query params
* export executeMigrations and PrintStatus
2018-08-22 00:07:47 +05:30
Shahidh K Muhammed
0ed3ff6418
remove manifests directory from init ( close #254 ) ( #258 )
2018-08-06 17:03:17 +05:30
Shahidh
80db149cbd
fix typo in godoc link
2018-07-21 00:37:40 +05:30
Shahidh
7980012e1d
update md files
2018-07-21 00:35:51 +05:30
Shahidh K Muhammed
dec39a10ba
create statically linked binaries for cli ( close #175 ) ( #179 )
...
[skip ci]
2018-07-20 16:30:25 +05:30
Aravind Shankar
75dbe35a21
create down migrations for actions from console ( close #164 ) ( #173 )
2018-07-20 16:01:33 +05:30
Shahidh K Muhammed
9c848e2b94
add option to serve console assets from a local directory ( #145 )
...
* add option to serve console assets from a local directory
* remove /console prefix
* update gin context only if static dir is present
2018-07-18 16:22:07 +05:30
Aravind Shankar
5985bf8e9e
deploy script enhancements ( #124 )
2018-07-17 22:30:26 +05:30
Shahidh K Muhammed
24c13c04d4
readme updates ( #149 )
...
* Update README.md
fix discord link.
* update cli readme and contributing guide
2018-07-17 18:32:33 +05:30
Aravind Shankar
80c1994dc2
inserts into schema_migration only once per version ( fix #127 ) ( #128 )
2018-07-12 19:54:46 +05:30
Aravind Shankar
6a20784b95
move metadata.yml file inside migrations folder, fix #122 ( #125 )
...
metadata.yaml will be present inside migrations folder
2018-07-12 18:22:25 +05:30
Aravind Shankar
268f0856d0
go vet cli code ( #110 )
2018-07-11 17:43:31 +05:30
Aravind Shankar
186340c156
fix #96 , when access-key is set, cli should use it to contact api ( #100 )
2018-07-11 14:58:53 +05:30
Aravind Shankar
5b02dee7d2
close #44 , replace goyaml with ghodss/yaml ( #101 )
2018-07-11 14:54:13 +05:30
Aravind Shankar
5e14c293f2
close #102 , unexport ParsedEndpoint in config ( #103 )
2018-07-11 14:52:36 +05:30
Shahidh K Muhammed
83ab85fb04
update readme and contributing guides ( #90 )
2018-07-11 10:27:03 +05:30
Shahidh K Muhammed
50165fc1ed
circleci integration ( #74 )
2018-07-10 10:01:02 +00:00
Aravind Shankar
1bff452cb4
handle server endpoints that contains a url path ( #64 )
2018-07-09 19:17:38 +05:30
Aravind Shankar
1998e211af
cli: update tests ( #47 )
...
* remove docker from migrate cmd test
* export migration status
* [cli] add fake writer for spinner
* Update console.go
* Update migrate_test.go
2018-07-06 10:36:27 +05:30
Shahidh K Muhammed
06fd236068
cli: close #38 handle server, cli and console versions ( #43 )
2018-07-04 18:13:52 +05:30
shahidhk
8beedc5387
cli: rename console assets folder
2018-07-03 22:56:57 +05:30
Shahidh K Muhammed
98c827449b
build: integrate circleci
...
integration with circleci for various workflows
2018-07-03 22:40:13 +05:30
Shahidh K Muhammed
e0a4ee88fe
cli: updates to support console versioning etc ( #30 )
...
* cli: fix version command and makefile
* cli: update console asset versioning format
* cli: change .realize from dir to file
* cli: update dependencies
2018-07-03 14:54:46 +05:30
Shahidh K Muhammed
6170d6b094
cli: add circleci config for cli ( #26 )
2018-06-29 13:09:21 +00:00
Praveen Durairaj
c93fe93138
cli: update console asset url ( #25 )
2018-06-29 17:31:39 +05:30
Aravind Shankar
260d565e6e
cli: tests for metadata commands ( #18 )
...
* [cli] added urlPrefix, consoleMode
* [cli] fix: down=all should throw error if down migration is missing
* [cli] added tests for metadata
2018-06-29 15:32:33 +05:30
shahidhk
c0bf346d60
[cli] fix tests
2018-06-28 14:14:01 +05:30
Aravind Shankar
59dd23cd17
[migrate status] fix: no migration files message when there are no migration files ( #1 )
...
```
$ hasura migrate status
VERSION SOURCE STATUS DATABASE STATUS
```
2018-06-28 14:08:47 +05:30
Aravind Shankar
048c067fa1
[cli] add tests for migrate commands ( #9 )
2018-06-28 14:06:57 +05:30
Shahidh K Muhammed
6d0d75fbe3
[cli] add comments ( #4 )
...
Especially for godoc
2018-06-28 14:06:25 +05:30
shahidhk
5dc47d2ff5
[cli] commit realize, update docs
2018-06-28 11:35:34 +05:30
Shahidh K Muhammed
776c550654
[cli] add docs and build tools ( #3 )
...
Includes version command and makefile integration along with docs command
2018-06-28 11:10:18 +05:30
Shahidh K Muhammed
24b656b282
[cli] add tests for some packages ( #2 )
2018-06-27 17:34:09 +05:30
Shahidh
8e41d75aa3
refactor most of the code
2018-06-26 21:39:32 +05:30
Shahidh
f7409ef2eb
add hasura cli package
2018-06-24 19:10:48 +05:30