-
Notifications
You must be signed in to change notification settings - Fork 24
fix: override configure method in ManifestDeclarativeSource
to set transformed config in entrypoint
#611
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: override configure method in ManifestDeclarativeSource
to set transformed config in entrypoint
#611
Conversation
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.
Pull Request Overview
This PR fixes an issue by overriding the configure method in ManifestDeclarativeSource so that the migrated/transformed configuration stored in self._config is used when available.
- Adds an override for the configure method that selects between self._config and the provided config.
- Ensures the transformed configuration is passed to the parent class implementation for validation and further processing.
Comments suppressed due to low confidence (1)
airbyte_cdk/sources/declarative/manifest_declarative_source.py:241
- Consider adding a docstring for the configure method to explain its behavior and how it chooses between self._config and the passed config.
def configure(self, config: Mapping[str, Any], temp_dir: str
ManifestDeclarativeSource
to use migrated/transformed configManifestDeclarativeSource
to set migrated/transformed config in entrypoint
📝 WalkthroughWalkthroughA Changes
Suggested labels
Suggested reviewers
Would you like to add a dedicated test specifically for edge cases or error handling of the new 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (9)
✨ Finishing Touches
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. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. 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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
airbyte_cdk/sources/declarative/manifest_declarative_source.py
(1 hunks)
🧰 Additional context used
🪛 Flake8 (7.2.0)
airbyte_cdk/sources/declarative/manifest_declarative_source.py
[error] 242-242: closing bracket does not match visual indentation
(E124)
🪛 GitHub Actions: Linters
airbyte_cdk/sources/declarative/manifest_declarative_source.py
[error] 1-1: ruff formatting check failed. File would be reformatted. Run 'ruff format' to fix code style issues.
⏰ Context from checks skipped due to timeout of 90000ms (9)
- GitHub Check: Publish SDM to DockerHub
- GitHub Check: Check: source-amplitude
- GitHub Check: Check: source-intercom
- GitHub Check: Check: source-hardcoded-records
- GitHub Check: Check: source-shopify
- GitHub Check: Pytest (All, Python 3.11, Ubuntu)
- GitHub Check: Pytest (All, Python 3.10, Ubuntu)
- GitHub Check: Pytest (Fast)
- GitHub Check: SDM Docker Image Build
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.
change seems fine, but can we test this e2e w/ amazon ads to make sure this works.
Also how useful or easy would it be to unit test this. It's probably trivial or the result might be the same, but still feels like we should exercise the code path
ManifestDeclarativeSource
to set migrated/transformed config in entrypointManifestDeclarativeSource
to set transformed config in entrypoint
Note:
|
What
configure
in theManifestDeclarativeSource
ultimately returning the transformed config to the entrypoint, where the config can then be validated against the spec and passed to each operation method.Summary by CodeRabbit