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

[WIP] Breaking change - conduit commons parameter #109

Closed
wants to merge 4 commits into from

Conversation

lovromazgon
Copy link
Member

Description

Breaking Change - updating connectors to this change requires slightly changing the code. The protocol still stays the same, so all standalone connectors still work the same with Conduit.

This PR removes config parameters and validations in favor of using the config parameters in conduit-commons (see ConduitIO/conduit-commons#18 and ConduitIO/conduit-commons#19). This allows us to reuse the same code in connectors and processors. Also paramgen is now moved to conduit-commons and works for both connectors and processors.

We probably want to merge this together with the move to the opencdc.Record type, as that will also be a breaking change. That's why we do not want to merge this yet, it's prepared for a later point.

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.

Comment on lines +7 to +8
github.com/conduitio/conduit-commons v0.0.0-20240215135739-13f4b2a52642
github.com/conduitio/conduit-connector-protocol v0.5.1-0.20240214155157-3daddc9cccf2
Copy link
Member Author

Choose a reason for hiding this comment

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

Update dependencies with tagged versions before merging.

Comment on lines +117 to +120
err1 := config.Config(req.Config).
Sanitize().
ApplyDefaults(parameters).
Validate(parameters)
Copy link
Contributor

Choose a reason for hiding this comment

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

Love it 👍

@lovromazgon lovromazgon changed the title Breaking change - conduit commons parameter [WIP] Breaking change - conduit commons parameter Feb 26, 2024
@lovromazgon
Copy link
Member Author

Closing in favor of #130.

@lovromazgon lovromazgon deleted the lovro/commons-parameter branch September 23, 2024 15:50
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.

2 participants