Skip to content

Split activity searches that exceed the 1,000-result limit - #184

Open
businessdeveloper69 wants to merge 1 commit into
executablebooks:mainfrom
businessdeveloper69:fix/complete-large-activity-windows
Open

businessdeveloper69 wants to merge 1 commit into
executablebooks:mainfrom
businessdeveloper69:fix/complete-large-activity-windows

Conversation

@businessdeveloper69

@businessdeveloper69 businessdeveloper69 commented Nov 21, 2026 •

Copy link
Copy Markdown

Fixes #80.

GitHub can report more than 1,000 matches while ending pagination at result 1,000. For a 2019–2020 JupyterLab release window, the created and closed searches reported 1,562 and 1,529 pull requests. Following both cursors yielded just 1,050 distinct PRs.

This change splits an oversized creation or closure search into disjoint time ranges and paginates each range. Searches with at most 1,000 matches follow their existing path. If more than 1,000 items share a single second, the error identifies the affected range.

Replaying the captured JupyterLab records through Jupyter Releaser recovered all 1,591 distinct PRs in the window. The resulting master changelog included 1,231 merged PRs, up from 794, including the notebook find-and-replace feature in the JupyterLab 1.0 release notes.

All 19 tests passed on Python 3.10 and 3.15 against GitHub’s live API. The documentation and pre-commit checks also passed. Hosted test run

AI assisted.

This branch has not been deployed

No deployments
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.

Split into multiple requests when total number of items is > 1000

1 participant