Repository navigation
Split activity searches that exceed the 1,000-result limit - #184
Open
businessdeveloper69 wants to merge 1 commit into
Open
businessdeveloper69 wants to merge 1 commit into
businessdeveloper69 wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.