Skip to content
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

Fix pagination issue in JSONResponseCursorPaginator with empty string cursor value #2016

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

kang8
Copy link
Contributor

@kang8 kang8 commented Nov 2, 2024

Description

Adjusts the update_state() method to set _next_reference to None
when the cursor value extracted from the JSON response is an empty
string, preventing unintended pagination requests.

Related Issues

Additional Context

Copy link

netlify bot commented Nov 2, 2024

Deploy Preview for dlt-hub-docs canceled.

Name Link
🔨 Latest commit 3c7919e
🔍 Latest deploy log https://app.netlify.com/sites/dlt-hub-docs/deploys/672643ffc3f86b0008682bd9

@kang8 kang8 force-pushed the fix/2012-empty-string-for-pagination branch from f63a102 to ab7ea37 Compare November 2, 2024 15:22
…ng cursor value

Adjusts the `update_state()` method to set `_next_reference` to None
when the cursor value extracted from the JSON response is an empty
string, preventing unintended pagination requests.

Fixed dlt-hub#2012
@kang8 kang8 force-pushed the fix/2012-empty-string-for-pagination branch from ab7ea37 to 3c7919e Compare November 2, 2024 15:23
@rudolfix rudolfix requested a review from burnash November 3, 2024 15:45
Copy link
Collaborator

@burnash burnash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks you for the fix @kang8

@burnash burnash merged commit c11e447 into dlt-hub:devel Nov 4, 2024
61 checks passed
@kang8 kang8 deleted the fix/2012-empty-string-for-pagination branch November 4, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty String Cursor Value from Zoom API Leading to Pagination Issue in JSONResponseCursorPaginator
2 participants