[CTORNDGAIN-1199] Fix load_stories.py silently truncating at 50 stories#40
Merged
isolomatov-gd merged 1 commit intomainfrom Mar 25, 2026
Merged
Conversation
Replace single-page fetch_story_issues() with a pagination loop using startAt/total so all Jira stories beyond the first 50 are returned. Update existing test and add pagination test verifying two-page fetch. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
kkhristenko51
approved these changes
Mar 25, 2026
YevheniiaLementova
approved these changes
Mar 25, 2026
isolomatov-gd
approved these changes
Mar 25, 2026
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.
Jira Story
https://griddynamics.atlassian.net/browse/CTORNDGAIN-1199
Summary
fetch_story_issues()with a pagination loop usingstartAtoffsetstart_at >= totalor an empty page is returned{"issues": [...]}is unchanged — callers are unaffectedpage_sizekept at 50; no hard-coded limit remainsTesting Notes
test_fetch_story_issues_uses_enhanced_search_endpointto expect?maxResults=50&startAt=0andtotalin the fake responsetest_fetch_story_issues_paginates_all_results: fake request returns page 1 (2 issues, total=3) then page 2 (1 issue, total=3); asserts all 3 issues returned and exactly 2 HTTP calls madepytest .github/scripts/test_load_stories.pyAssumptions
/rest/api/3/search/jqlendpoint has supportedstartAtand returnstotalsince API v3.🤖 Generated with Claude Code