Feat: Added use_host_network param to get_destination()#364
Conversation
WalkthroughWalkthroughThe pull request introduces a new boolean parameter, Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
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.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
airbyte/destinations/util.py (1)
72-72: Nicely done! Theuse_host_networkparameter is correctly passed to the executor.Just a minor suggestion: What do you think about adding a comment to clarify that
use_host_networkis only effective whendocker_imageis set? This could help future maintainers understand the behavior at a glance. Wdyt?
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- airbyte/destinations/util.py (3 hunks)
Additional comments not posted (2)
airbyte/destinations/util.py (2)
27-27: LGTM! The newuse_host_networkparameter looks good. The name is clear and the default value ensures backward compatibility. 👍
51-54: Looks great! The docstring update for theuse_host_networkparameter is clear and aligns with the implementation. Nice work on documenting the behavior and conditions. 🙌
Aaron ("AJ") Steers (aaronsteers)
left a comment
There was a problem hiding this comment.
Looks great! Thanks as always for contributing! 🙌
|
/test-pr |
Description
use_host_network, a Docker based connectors option for destinations. This enables locally testable destinations, for example, a local Postgres DB instance.get_source()Feat: Addeduse_host_networkparam toget_source(), for Docker containers to use host's network #277use_host_networkis necessary for destinations, if someone tried to use PyAirbyte locally.Fixes/Implements #363
Summary by CodeRabbit
use_host_network, for enhanced network access in connectors, allowing execution using the host network for specified Docker images.use_host_networkparameter.