-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[ISSUE #20771] limiting the number of requests performed to the backe… #21525
[ISSUE #20771] limiting the number of requests performed to the backe… #21525
Conversation
…nd without flag
57bd846
to
00a3558
Compare
airbyte-cdk/python/airbyte_cdk/sources/declarative/requesters/paginators/default_paginator.py
Show resolved
Hide resolved
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.
minor request to use two separate flags instead of a generic is_test_read
flag, but looks good otherwise
airbyte-cdk/python/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py
Outdated
Show resolved
Hide resolved
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.
a small nit comment, but otherwise looks good to me!
airbyte-cdk/python/airbyte_cdk/sources/declarative/requesters/paginators/default_paginator.py
Outdated
Show resolved
Hide resolved
airbyte-cdk/python/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py
Outdated
Show resolved
Hide resolved
* [ISSUE #20771] adding slices to connector builder read request * [ISSUE #20771] formatting * [ISSUE #20771] set flag when limit requests reached (#21619) * [ISSUE #20771] set flag when limit requests reached * [ISSUE #20771] assert proper value on test read objects __init__ * [ISSUE #20771] code review and fix edge case
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.
looks good. only a couple of small questions 🚢
airbyte-cdk/python/airbyte_cdk/sources/declarative/requesters/paginators/default_paginator.py
Outdated
Show resolved
Hide resolved
airbyte-cdk/python/unit_tests/sources/declarative/test_manifest_declarative_source.py
Show resolved
Hide resolved
Airbyte Code Coverage
|
…nd without flag
What
This addresses the first part of #20771 where we want to limit the number of requests done to the back. As for this PR, the flag is excluded and another PR will follow.
How
Change the behaviour at runtime of the paginator and the simple retriever.
Recommended reading order
airbyte-cdk/python/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py
airbyte-cdk/python/airbyte_cdk/sources/declarative/requesters/paginators/default_paginator.py
🚨 User Impact 🚨
Users of the connector builder should see a great improvement in the response time when reading a stream. However, the response can now be partial if there is more than 5 slices of 5 pages