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

source-zendesk-support-native: handle cursor paginated responses with no results #2441

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Alex-Bair
Copy link
Member

@Alex-Bair Alex-Bair commented Feb 24, 2025

Description:

When there are no results at all in a cursor paginated response, the after and before cursor fields are not present. Although that shouldn't affect the code flow (the has_more field would stop any attempted pagination), a default value is needed to avoid validation errors when validating the response.

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

Tested on a local stack. Confirmed posts (the stream I observed this issue on) does not fail when the response contains no after_cursor or before_cursor field.


This change is Reviewable

… no results

When there are no results at all in a cursor paginated response, the
after and before cursor fields are not present. Although that shouldn't
affect the code flow (the `has_more` field would stop any attempted
pagination) a default value is needed to avoid validation errors.
@Alex-Bair Alex-Bair marked this pull request as ready for review February 24, 2025 21:57
Copy link
Member

@williamhbaker williamhbaker left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants