Skip to content

fix: Delete stale entries only for tables selected in config#5098

Merged
kodiakhq[bot] merged 14 commits intomainfrom
migrate-only-selected-tables
Nov 30, 2022
Merged

fix: Delete stale entries only for tables selected in config#5098
kodiakhq[bot] merged 14 commits intomainfrom
migrate-only-selected-tables

Conversation

@hermanschaaf
Copy link
Copy Markdown
Contributor

@hermanschaaf hermanschaaf commented Nov 25, 2022

Depends on this plugin-sdk change: cloudquery/plugin-sdk#440

Fixes #4770

@cq-bot cq-bot added the cli label Nov 25, 2022
@hermanschaaf hermanschaaf marked this pull request as draft November 25, 2022 16:06
Copy link
Copy Markdown
Contributor

@yevgenypats yevgenypats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few comments

fmt.Println("Starting migration for:", sourceSpec.Name, "->", sourceSpec.Destinations)
log.Info().Str("source", sourceSpec.Name).Strs("destinations", sourceSpec.Destinations).Msg("Starting migration")
tables, err := sourceClient.GetTables(ctx)
tables, _, err := getTablesForSpec(ctx, sourceClient, sourceSpec)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't want to call this here (yet).

@hermanschaaf hermanschaaf changed the title feat: Migrate only selected tables feat: Write only selected tables Nov 29, 2022
@hermanschaaf hermanschaaf changed the title feat: Write only selected tables fix: Write only selected tables Nov 29, 2022
@hermanschaaf hermanschaaf changed the title fix: Write only selected tables fix: Delete stale only for tables selected in config Nov 29, 2022
@hermanschaaf hermanschaaf changed the title fix: Delete stale only for tables selected in config fix: Delete stale entries only for tables selected in config Nov 29, 2022
@hermanschaaf hermanschaaf marked this pull request as ready for review November 29, 2022 17:49
@hermanschaaf hermanschaaf added the automerge Automatically merge once required checks pass label Nov 30, 2022
@kodiakhq kodiakhq bot merged commit 801e42e into main Nov 30, 2022
@kodiakhq kodiakhq bot deleted the migrate-only-selected-tables branch November 30, 2022 09:39
kodiakhq bot pushed a commit that referenced this pull request Nov 30, 2022
🤖 I have created a release *beep* *boop*
---


## [2.0.22](cli-v2.0.21...cli-v2.0.22) (2022-11-30)


### Bug Fixes

* Delete stale entries only for tables selected in config ([#5098](#5098)) ([801e42e](801e42e))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.10.0 ([#5153](#5153)) ([ea1f77e](ea1f77e))
* **deps:** Update plugin-sdk for cli to v1.8.1 ([#5034](#5034)) ([b9de28f](b9de28f))
* **deps:** Update plugin-sdk for cli to v1.8.2 ([#5076](#5076)) ([cab8860](cab8860))
* **deps:** Update plugin-sdk for cli to v1.9.0 ([#5095](#5095)) ([5d8658c](5d8658c))
* Fix spacing in Sync message ([#5091](#5091)) ([95511fc](95511fc))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cloudquery deletes data from other tables if provided list of tables in source config

4 participants