cli
cli copied to clipboard
feat: Controls database recreation
Issue tracker links
Changes/solution
- Only drops and changes the schema database when the schema changes. It doesn't delete data with each time it uses upsertions to update new data.
- It saves a copy of the providers schema to keep track of migrations.
Dependencies
SDK https://github.com/cloudgraphdev/sdk AWS Provider https://github.com/cloudgraphdev/cloudgraph-provider-aws
@mfranceschit I have been working on this branch in order to perform several tests, and I have found a strange scenario, which occurs in the object arrays, in which when a modification is made to the data instead of updating the current entry adds a new item, also maintaining the previous value. I was able to reproduce this in more than one service, and here is an example for the ELB listeners:
This is the last update:
These are the raw data returned by the service:
And these are the data returned by the query:
It looks like we may have to do the generation of ids after all :/
On Thu, May 12, 2022 at 8:26 AM m-pizarro @.***> wrote:
@mfranceschit https://github.com/mfranceschit I have been working on this branch in order to perform several tests, and I have found a strange scenario, which occurs in the object arrays, in which when a modification is made to the data instead of updating the current entry adds a new item, also maintaining the value anteroir. I was able to reproduce this in more than one service, and here is an example for the ELB listeners:
This is the last update: [image: image] https://user-images.githubusercontent.com/64504276/168084221-7528c903-3aab-4a06-b1d2-6c2bf251421b.png
These are the raw data returned by the service: [image: image] https://user-images.githubusercontent.com/64504276/168084652-319da2ae-2e92-4b0e-905b-628e4ba21b12.png
And these are the data returned by the query: [image: image] https://user-images.githubusercontent.com/64504276/168085178-6b7ca13d-6cb2-4c0e-910d-0b7fadff5444.png
— Reply to this email directly, view it on GitHub https://github.com/cloudgraphdev/cli/pull/80#issuecomment-1124993108, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABW4BHMROQMSIMHIA365GWLVJUBHTANCNFSM5UMGN7FQ . You are receiving this because your review was requested.Message ID: @.***>