Skip to content

paginationtempfix#1167

Merged
bo-zhou-ms merged 6 commits intomicrosoft:mainfrom
m-kovalsky:m-kovalsky/paginationtempfix
Apr 13, 2026
Merged

paginationtempfix#1167
bo-zhou-ms merged 6 commits intomicrosoft:mainfrom
m-kovalsky:m-kovalsky/paginationtempfix

Conversation

@m-kovalsky
Copy link
Copy Markdown
Collaborator

Copilot AI review requested due to automatic review settings April 12, 2026 06:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses issue #1166 by hardening the internal pagination helper to tolerate a bogus “extra” final page where the continuation token/URI causes an invalid follow-up request.

Changes:

  • Refactors pagination() to iterate pages in a while True loop and stop when there is no continuation token.
  • Adds error handling around continuation requests to treat certain failures (notably 404) as an end-of-pagination condition.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/sempy_labs/_helper_functions.py Outdated
@bo-zhou-ms bo-zhou-ms merged commit 4f16293 into microsoft:main Apr 13, 2026
4 checks passed
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.

3 participants