Skip to content

fix(cli): Send sync time to new sources#10796

Merged
kodiakhq[bot] merged 3 commits intomainfrom
fix/cli_send_syncs
May 15, 2023
Merged

fix(cli): Send sync time to new sources#10796
kodiakhq[bot] merged 3 commits intomainfrom
fix/cli_send_syncs

Conversation

@yevgenypats
Copy link
Copy Markdown
Contributor

Fixes version check in the new CLI and send sync time new sources.

@yevgenypats yevgenypats requested review from disq and hermanschaaf May 15, 2023 15:53
@cq-bot cq-bot added the cli label May 15, 2023
Comment on lines +111 to 113
if !slices.Contains(versions, 1) {
return fmt.Errorf("destination %[1]s does not support CloudQuery SDK version 2. Please upgrade to newer version of %[1]s", destination.Spec.Name)
}
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.

Thinking about this now, should this rather be checking for versions greater or equal than 1?

Copy link
Copy Markdown
Contributor Author

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 yet. destination 2 might not work with source 2. all those issues will be solved when we will have one protocol where we will always know that a two plugins can only speak to each other if they have at least one common version

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe it's better to be explicit unless we know what the next version brings and if it's actually compatible and so on?

@yevgenypats yevgenypats added the automerge Automatically merge once required checks pass label May 15, 2023
@kodiakhq kodiakhq bot merged commit 8d9b5be into main May 15, 2023
@kodiakhq kodiakhq bot deleted the fix/cli_send_syncs branch May 15, 2023 16:56
kodiakhq bot pushed a commit that referenced this pull request May 15, 2023
🤖 I have created a release *beep* *boop*
---


## [3.3.1](cli-v3.3.0...cli-v3.3.1) (2023-05-15)


### Bug Fixes

* **cli:** Send sync time to new sources ([#10796](#10796)) ([8d9b5be](8d9b5be))
* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.0.8 ([#10798](#10798)) ([27ff430](27ff430))

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

5 participants