-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
🐛 Source Delighted: Fix pagination for survey_responses
, bounces
and unsubscribes
streams
#9275
Conversation
/test connector=source-delighted
|
airbyte-integrations/connectors/source-delighted/source_delighted/schemas/survey_responses.json
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-delighted/source_delighted/source.py
Outdated
Show resolved
Hide resolved
else: | ||
return None | ||
response_data = response.json() | ||
if response_data and len(response_data) == self.limit: |
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.
Can response_data
be not an array?
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.
No, it'll always an array.
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 little changes
/test connector=source-delighted
|
/test connector=source-delighted
|
/publish connector=connectors/source-delighted
|
Bug-fix Request
Fixes #9271.
Reason
Right now pagination handling for
survey_responses
,bounces
andunsubscribes
streams works incorrectly.Current implementation is the following: if we got
Link
response header then we extractpage_info
parameter from it and send it in the next request (like,page_info=f54r54r4r
). If there is noLink
response header then all data was read. This behavior works only forpeople
stream.Confirmation
How does the code change in the PR fix the issue?
For
survey_responses
,bounces
andunsubscribes
streams pagination handling should be following: sendpage
parameter with number of page in it (like,page=1
,page=10
etc).