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

handle empty nextlink value as end of pagination #1104

Merged
merged 2 commits into from
Jan 7, 2025

Conversation

ziyeqf
Copy link
Contributor

@ziyeqf ziyeqf commented Oct 18, 2024

The chaos return an empty string in the NextLink property instead of set it to null when calling TargetTypes_List
. It will make the provider wait endless...

I have opened an issue on azure-rest-api-specs repo, but can we consider add this workaround to avoid similar bad cases?

@ziyeqf ziyeqf requested a review from a team as a code owner October 18, 2024 07:44
@github-actions github-actions bot added the release-once-merged The SDK should be released once this PR is merged label Oct 18, 2024
@ziyeqf ziyeqf force-pushed the next_page_empty_string branch from 7094cab to b2b361e Compare October 18, 2024 07:44
@ziyeqf ziyeqf force-pushed the next_page_empty_string branch from 351395b to a8eb029 Compare October 18, 2024 07:46
Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

Thanks @ziyeqf - Sorry for the delay, lots of moving parts and PTO on the team held this one up. This LGTM 👍

@jackofallops jackofallops changed the title supress empty string nextlink url handle empty nextlink value as end of pagination Jan 7, 2025
@jackofallops jackofallops merged commit 62208b6 into hashicorp:main Jan 7, 2025
5 checks passed
@ziyeqf ziyeqf deleted the next_page_empty_string branch January 7, 2025 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-once-merged The SDK should be released once this PR is merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants