Fix: Auto-use manifests when declared in the connector registry#347
Conversation
WalkthroughWalkthroughThe changes involve updates to several functions and error handling within the Airbyte codebase. Key modifications include adjustments to function parameters to allow for Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Executor
participant Metadata
participant ErrorHandler
User->>Executor: Request connector execution
Executor->>Metadata: Retrieve connector metadata
Metadata-->>Executor: Return metadata
Executor->>Executor: Check installation methods
alt Multiple methods found
Executor->>ErrorHandler: Raise PyAirbyteInputError
else No methods found
Executor->>ErrorHandler: Log failure and raise exception
end
ErrorHandler-->>User: Provide error guidance
Would you like to delve deeper into any specific areas of the changes or perhaps add more details to the sequence diagram? Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
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: 1
Outside diff range, codebase verification and nitpick comments (1)
airbyte/exceptions.py (1)
54-55: Enhancements to error handling and documentation linksThe restructuring of
DOCS_URLto useDOCS_URL_BASEsimplifies maintenance and is a neat improvement. Also, the expanded guidance inAirbyteConnectorNotRegisteredErroris more user-friendly. However, could we ensure that all links provided in errors are regularly checked to avoid dead links, perhaps through automated tests? Wdyt?Also applies to: 250-255
There was a problem hiding this comment.
Actionable comments posted: 11
Outside diff range, codebase verification and nitpick comments (1)
tests/integration_tests/fixtures/registry.json (1)
Line range hint
47-80: Removal of PyPI ObjectThe entire "pypi" object has been removed from the "remoteRegistries" section. This indicates that the source no longer has a dependency or configuration related to PyPI. Could you elaborate on the reason behind this removal? Is it to streamline the configuration or due to other strategic reasons?
Summary by CodeRabbit
New Features
Bug Fixes
Tests