Aravind K P
c7ac1ede3f
cli: add migrate
and metadata
packages
...
>
### Description
>
This PR adds two new packages which implement the CLI requirements specified in RFC:https://github.com/hasura/lux/blob/cloud/docs/rfcs/20210614_github_integration.md
1. `pkg/metadata`
![image](https://user-images.githubusercontent.com/8335904/122384828-b4757d80-cf89-11eb-9e21-ef116fb928e9.png )
2. `pkg/migrate`
![image](https://user-images.githubusercontent.com/8335904/122510554-68771700-d023-11eb-9f5d-046d2c0cf18a.png )
### Changelog
- [x] `CHANGELOG.md` is updated with user-facing content relevant to this PR. If no changelog is required, then add the `no-changelog-required` label.
### Affected components
- [x] CLI
https://github.com/hasura/graphql-engine-mono/pull/1598
GitOrigin-RevId: 0e2bce498386c5aae68dbca0fe383a6afff9d1a9
2021-06-18 06:25:14 +00:00
Aravind K P
3136ffad1b
cli: update go.mod
...
>
### Description
Update `go.mod` to allow other packages to import [v2.0.0 versions](https://blog.golang.org/v2-go-modules ).
### Changelog
- [x] `CHANGELOG.md` is updated with user-facing content relevant to this PR. If no changelog is required, then add the `no-changelog-required` label.
### Affected components
- [x] CLI
https://github.com/hasura/graphql-engine-mono/pull/1584
GitOrigin-RevId: a5d17ad20289d1cd7217763f56ef3ba6552d69c4
2021-06-16 11:45:07 +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
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
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
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
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
7638d1832a
cli: add support for bigquery
...
GitOrigin-RevId: 8d479cbd056ee839b11ae24557085573b3e5b5ba
2021-04-19 07:06:18 +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
Aravind K P
cc3539415b
cli: fix seeds incorrectly being applied to databases
...
GitOrigin-RevId: cce2612ddfd90d1fd10a0a3561d24c64569a6935
2021-04-01 10:39:53 +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
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
Aravind K P
cb029c317b
cli: refactor datasource -> database
...
GitOrigin-RevId: 89bb1fbac0848d833678e33e98b5d558917c13ea
2021-02-17 12:52:37 +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
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
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
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
177556f441
cli: fix tests failing in local dev environment ( #4729 )
2020-06-03 14:01:40 +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
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
09e0e2f2a5
cli: fix init command to generate correct config ( fix #4036 ) ( #4038 )
2020-03-26 08:54:05 +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