-
Notifications
You must be signed in to change notification settings - Fork 30
fix(connector-builder): add normalize and migrate options back for the builder #693
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
fix(connector-builder): add normalize and migrate options back for the builder #693
Conversation
👋 Greetings, Airbyte Team Member!Here are some helpful tips and reminders for your convenience. Testing This CDK VersionYou can test this version of the CDK using the following: # Run the CLI from this branch:
uvx 'git+https://github.com/airbytehq/airbyte-python-cdk.git@brian/add_back_migrate_and_normalize_for_connector_builder#egg=airbyte-python-cdk[dev]' --help
# Update a connector to use the CDK from this branch ref:
cd airbyte-integrations/connectors/source-example
poe use-cdk-branch brian/add_back_migrate_and_normalize_for_connector_builder Helpful ResourcesPR Slash CommandsAirbyte Maintainers can execute the following slash commands on your PR:
|
📝 WalkthroughWalkthroughTwo new boolean flags, Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Handler as connector_builder_handler.py
participant Source as ConcurrentDeclarativeSource
participant Super as ManifestDeclarativeSource
User->>Handler: create_source(config)
Handler->>Handler: should_migrate_manifest(config)
Handler->>Handler: should_normalize_manifest(config)
Handler->>Source: Instantiate with migrate_manifest, normalize_manifest
Source->>Super: Call __init__ with migrate_manifest, normalize_manifest
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Would you like to see a suggestion for adding a docstring or comment to clarify the new parameters in the constructor for future maintainers, wdyt? Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (5)📓 Common learnings
📚 Learning: when modifying the `yamldeclarativesource` class in `airbyte_cdk/sources/declarative/yaml_declarativ...
Applied to files:
📚 Learning: the files in `airbyte_cdk/cli/source_declarative_manifest/`, including `_run.py`, are imported from ...
Applied to files:
📚 Learning: when code in `airbyte_cdk/cli/source_declarative_manifest/` is being imported from another repositor...
Applied to files:
📚 Learning: copying files from `site-packages` in the dockerfile maintains compatibility with both the old file ...
Applied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
🔇 Additional comments (5)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM and works as expected when testing locally with the Builder
Summary by CodeRabbit