Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use connector protocol v2 #1622

Merged
merged 27 commits into from
Jul 1, 2024
Merged

Use connector protocol v2 #1622

merged 27 commits into from
Jul 1, 2024

Conversation

lovromazgon
Copy link
Member

@lovromazgon lovromazgon commented May 28, 2024

Description

This PR includes code changes to use opencdc.Record everywhere. It removes the old record package entirely. It also updates the connector protocol and SDK to the latest version, so we use the same record across the board. The code is updated according to the changes that were already done in the protocol.

Most of the code changes are straightforward, it's just that there are a lot. I posted a few comments below which call out the important bits, I strongly recommend reading them through before reviewing this PR.

The next PR will remove a bunch of code in pkg/foundation and use the packages in conduit-commons instead.

Closes #1433.

Quick checks:

  • I have followed the Code Guidelines.
  • There is no other pull request for the same update/change.
  • I have written unit tests.
  • I have made sure that the PR is of reasonable size and can be easily reviewed.

Copy link
Member Author

@lovromazgon lovromazgon left a comment

Choose a reason for hiding this comment

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

Here's some pointers to make the review easier.

pkg/plugin/connector/mock/destination.go Show resolved Hide resolved
pkg/plugin/connector/builtin/stream.go Show resolved Hide resolved
pkg/plugin/connector/builtin/source.go Show resolved Hide resolved
pkg/plugin/connector/acceptance_testing.go Show resolved Hide resolved
pkg/pipeline/lifecycle_test.go Show resolved Hide resolved
pkg/pipeline/lifecycle_test.go Show resolved Hide resolved
pkg/connector/destination.go Show resolved Hide resolved
pkg/pipeline/stream/destination.go Show resolved Hide resolved
pkg/pipeline/stream/base.go Show resolved Hide resolved
pkg/plugin/connector/builtin/registry.go Show resolved Hide resolved
@lovromazgon lovromazgon marked this pull request as ready for review June 20, 2024 12:24
@lovromazgon lovromazgon requested a review from a team as a code owner June 20, 2024 12:24
pkg/connector/source.go Outdated Show resolved Hide resolved
Copy link
Member

@raulb raulb left a comment

Choose a reason for hiding this comment

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

@lovromazgon Looks great. Only left some nits

pkg/connector/destination.go Show resolved Hide resolved
pkg/plugin/connector/builtin/destination.go Show resolved Hide resolved
pkg/connector/destination.go Outdated Show resolved Hide resolved
pkg/pipeline/dlq.go Outdated Show resolved Hide resolved
pkg/pipeline/dlq.go Outdated Show resolved Hide resolved
pkg/plugin/connector/builtin/stream.go Show resolved Hide resolved
* remove obsolete foundation packages

* replace removed packages with alternatives in conduit-commons

* user errors.Join instead of multierror

* go mod tidy
@lovromazgon lovromazgon enabled auto-merge (squash) July 1, 2024 10:39
@lovromazgon lovromazgon merged commit 06bd6e5 into main Jul 1, 2024
3 checks passed
@lovromazgon lovromazgon deleted the lovro/cpluginv2 branch July 1, 2024 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Update conduit internals to use conduit-commons
3 participants