cli: do not clear metadata during metadata apply (close #6115) (#6119)

https://github.com/hasura/graphql-engine/pull/6119
This commit is contained in:
Aravind K P 2020-11-06 14:21:10 +05:30 committed by GitHub
parent 153054bed9
commit 01c4cd2ff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 12 deletions

View File

@ -135,6 +135,7 @@ This release contains the [PDV refactor (#4111)](https://github.com/hasura/graph
- console: down migrations improvements (close #3503, #4988) (#4790)
- cli: add missing global flags for seed command (#5565)
- cli: allow seeds as alias for seed command (#5693)
- cli: fix bug in metadata apply which made the server aquire some redundant and unnecessary locks (close #6115)
- docs: add docs page on networking with docker (close #4346) (#4811)
- docs: add tabs for console / cli / api workflows (close #3593) (#4948)
- docs: add postgres concepts page to docs (close #4440) (#4471)

View File

@ -180,18 +180,9 @@ func (h *HasuraDB) ApplyMetadata() error {
if err != nil {
return err
}
query := HasuraInterfaceBulk{
Type: "bulk",
Args: []interface{}{
HasuraInterfaceQuery{
Type: "clear_metadata",
Args: HasuraArgs{},
},
HasuraInterfaceQuery{
Type: "replace_metadata",
Args: obj,
},
},
query := HasuraInterfaceQuery{
Type: "replace_metadata",
Args: obj,
}
resp, body, err := h.sendv1Query(query)
if err != nil {