-
Notifications
You must be signed in to change notification settings - Fork 30
fix: unmark partition router as linkable #683
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
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@lmossman/make-partition-router-not-linkable#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 lmossman/make-partition-router-not-linkable Helpful ResourcesPR Slash CommandsAirbyte Maintainers can execute the following slash commands on your PR:
|
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 removes the linkable: true
property from the partition_router
definition in the declarative component schema to prevent funky edge cases during manifest normalization when partition routers use $ref
s.
- Removes the
linkable: true
property from the partition_router schema definition - Addresses normalization issues in the CDK when partition routers contain
$ref
s pointing to different streams
📝 WalkthroughWalkthroughThis change removes the "linkable: true" attribute from the "partition_router" property within the "SimpleRetriever" schema definition in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Would you like to cross-reference these related PRs in your summary or changelog for extra context, wdyt? Suggested labels
Would you like to add any additional labels, or does 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 (1)
💤 Files with no reviewable changes (1)
⏰ 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). (4)
✨ 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. 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.
This PR makes
partition_router
no longer linkable.Since the Builder uses
$ref
s in partition_router to point to different streams, there were some funky edge cases happening when the CDK would normalize manifests that contained partition routers.I don't actually think there is that much value in having partition_routers be linkable across streams anyway, because they tend to be pretty stream-specific. So the safest and easiest change is to just stop linking them.
Summary by CodeRabbit