Skip to content

fix: Skip relations of incremental tables from delete stale#18239

Merged
kodiakhq[bot] merged 3 commits into
cloudquery:mainfrom
erezrokah:fix/dont_delete_stale_incremental_relations
Jun 19, 2024
Merged

fix: Skip relations of incremental tables from delete stale#18239
kodiakhq[bot] merged 3 commits into
cloudquery:mainfrom
erezrokah:fix/dont_delete_stale_incremental_relations

Conversation

@erezrokah

@erezrokah erezrokah commented Jun 13, 2024

Copy link
Copy Markdown
Member

Summary

Fixes https://github.com/cloudquery/cloudquery-issues/issues/1844 (internal issue).
Relations of incremental tables gets cleared due to delete stale, we should exclude them I think.
The fix works since we always sync parents from before children, so parents get excluded first.

Still needs to test this.

Blocked by cloudquery/plugin-sdk#1742 (I mean the code works, but the bug won't be fixed until source plugins upgrade to latest SDK)

Comment thread cli/cmd/sync_v3.go
@erezrokah erezrokah added the wip Work in progress label Jun 18, 2024
@erezrokah erezrokah marked this pull request as ready for review June 18, 2024 16:08
@erezrokah erezrokah requested review from a team and candiduslynx and removed request for a team June 18, 2024 16:08
kodiakhq Bot pushed a commit to cloudquery/plugin-sdk that referenced this pull request Jun 19, 2024
Comment thread cli/cmd/sync_v3.go
Comment thread cli/cmd/sync_v3.go
@erezrokah erezrokah added automerge Automatically merge once required checks pass and removed wip Work in progress labels Jun 19, 2024
@kodiakhq kodiakhq Bot merged commit 4c65730 into cloudquery:main Jun 19, 2024
kodiakhq Bot pushed a commit that referenced this pull request Jun 19, 2024
🤖 I have created a release *beep* *boop*
---


## [5.22.1](cli-v5.22.0...cli-v5.22.1) (2024-06-19)


### Bug Fixes

* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.45.4 ([#18299](#18299)) ([200480a](200480a))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.45.5 ([#18327](#18327)) ([42d5850](42d5850))
* Skip relations of incremental tables from delete stale ([#18239](#18239)) ([4c65730](4c65730))

---
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

area/cli automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants