Skip to content

Conversation

@shimonp21
Copy link
Contributor

@shimonp21 shimonp21 commented Oct 10, 2022

Summary

testing matrix (two syncs, different versions for first and second sync )
image


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@shimonp21 shimonp21 changed the title Fix deletestale 3 fix: DeleteStale feature Oct 10, 2022
@github-actions github-actions bot added the fix label Oct 10, 2022
@shimonp21 shimonp21 mentioned this pull request Oct 10, 2022
5 tasks
1) Before this PR the "indexing" was done on a copy of the table rather than the actual table..
2) Because a new 'once' object is created at every invocation of 'ColumnIndex', it doesn't actually happen "once".
   Nor does it provide protection from race-conditions in case of concurrent calls.
3) The method is unused..
Move responsibility for migrating the cq_sync_time and cq_source_name columns to the destination plugin.
We do this because the source plugins don't really care about these columns (it's an implementation detail of 'overwriteDeleteStale'.
Copy link
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.

Looks great! Let's just not change receiver to *table as I recall there were reasons for why it is not pointer receiver. let's keep it table and maybe open an issue to look into making it pointer receiever in the future but it will need to take special care of.

@shimonp21 shimonp21 merged commit 837c5f3 into cloudquery:main Oct 10, 2022
@shimonp21 shimonp21 deleted the fix_deletestale_3 branch October 10, 2022 11:50
shimonp21 pushed a commit that referenced this pull request Oct 10, 2022
🤖 I have created a release *beep* *boop*
---


##
[0.13.0](v0.12.10...v0.13.0)
(2022-10-10)


### ⚠ BREAKING CHANGES

* Support table_concurrency and resource_concurrency (#268)

### Features

* Support table_concurrency and resource_concurrency
([#268](#268))
([7717d6f](7717d6f))


### Bug Fixes

* Add custom log reader implementation to fix hang on long log lines
([#263](#263))
([f8ca238](f8ca238))
* DeleteStale feature
([#269](#269))
([837c5f3](837c5f3))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
kodiakhq bot pushed a commit to cloudquery/cloudquery that referenced this pull request Oct 11, 2022
…re) (#2587)



#### Summary

This will only compile after cloudquery/plugin-sdk#269 is released

<!--
Explain what problem this PR addresses
-->

<!--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants