Skip to content

feat(cli): Update CLI to support source v1 protocol#6986

Merged
kodiakhq[bot] merged 4 commits into
mainfrom
feat/cli_update_source_v1
Jan 23, 2023
Merged

feat(cli): Update CLI to support source v1 protocol#6986
kodiakhq[bot] merged 4 commits into
mainfrom
feat/cli_update_source_v1

Conversation

@yevgenypats
Copy link
Copy Markdown
Contributor

@yevgenypats yevgenypats commented Jan 21, 2023

Ready for review

Copy link
Copy Markdown
Member

@erezrokah erezrokah 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, commented on the code structure mostly

Comment thread cli/cmd/errors.go
if err == nil {
return false
}
st, ok := status.FromError(err)
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.

Comment thread cli/cmd/migrate_v0.go
"github.com/rs/zerolog/log"
)

func migrateConnectionV0(ctx context.Context, cqDir string, sourceSpec specs.Source, destinationsSpecs []specs.Destination) error {
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 we should put these in separate packages? instead of postfixing the methods something like v1/migrate and v0/migrate

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 would avoid this for now I think it will cause all things like cyclical imports but also on the CLI I don't think it should be different packages as we don't import it so it should only be on the SDK.

@yevgenypats yevgenypats added the automerge Automatically merge once required checks pass label Jan 23, 2023
@kodiakhq kodiakhq Bot merged commit fe8ff12 into main Jan 23, 2023
@kodiakhq kodiakhq Bot deleted the feat/cli_update_source_v1 branch January 23, 2023 13:21
kodiakhq Bot pushed a commit that referenced this pull request Jan 24, 2023
🤖 I have created a release *beep* *boop*
---


## [2.3.0](cli-v2.2.0...cli-v2.3.0) (2023-01-24)


### Features

* **cli:** Update CLI to support source v1 protocol ([#6986](#6986)) ([fe8ff12](fe8ff12))
* Log received signal when shutting down ([#6933](#6933)) ([7d9d8cd](7d9d8cd))

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

3 participants