-
Notifications
You must be signed in to change notification settings - Fork 19
feat(AsyncRetriever): slice information during the polling request, Support creation_response interpolation in body #541
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
base: main
Are you sure you want to change the base?
Conversation
…t creation_response interpolation in body
📝 WalkthroughWalkthroughThis update refactors internal logic for constructing interpolation contexts and stream slices in the Airbyte CDK's declarative HTTP job repository and request input providers. It introduces a helper for creating job repositories in tests, adds a new test case for stream slice access, and consolidates error handler usage. Changes
Sequence Diagram(s)sequenceDiagram
participant Test as Test Case
participant Repo as AsyncHttpJobRepository
participant Requester as HttpRequester
participant Server as Mocked HTTP Server
Test->>Repo: Create repository via _create_async_job_repository()
Test->>Repo: Trigger job status update
Repo->>Requester: Prepare polling request with stream_slice['path']
Requester->>Server: Send HTTP request (with interpolated path)
Server-->>Requester: Return job status response
Requester-->>Repo: Provide response
Repo-->>Test: Job status updated (assertion)
Suggested labels
Suggested reviewers
Would you consider extracting the new test's polling requester logic into a reusable fixture for clarity and reuse in future tests, wdyt? Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code Graph Analysis (2)airbyte_cdk/sources/declarative/requesters/http_job_repository.py (2)
unit_tests/sources/declarative/requesters/test_http_job_repository.py (6)
⏰ Context from checks skipped due to timeout of 90000ms (7)
🔇 Additional comments (11)
✨ 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.
🚢
creation_response
interpolation in bodyResolves: https://github.com/airbytehq/airbyte-internal-issues/issues/12875
Summary by CodeRabbit
Refactor
Tests