Skip to content

[JENKINS-76426] add lazy iteration APIs#1184

Open
res0nance wants to merge 1 commit intojenkinsci:masterfrom
res0nance:lazy-interables
Open

[JENKINS-76426] add lazy iteration APIs#1184
res0nance wants to merge 1 commit intojenkinsci:masterfrom
res0nance:lazy-interables

Conversation

@res0nance
Copy link
Copy Markdown

@res0nance res0nance commented Mar 22, 2026

We want to reduce the number of API calls from paginated APIs. In some cases e.g BitbucketSCM.retrieve we get the whole list despite there being a loop early exit.

Your checklist for this pull request

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side) and not your master branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or in Jenkins JIRA
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Did you provide a test-case? That demonstrates feature works or fixes the issue.

@res0nance res0nance force-pushed the lazy-interables branch 2 times, most recently from d4bff01 to eeb403d Compare March 24, 2026 11:47
@res0nance res0nance changed the title Lazy interables [JENKINS-76426] add lazy iteration APIs Mar 24, 2026
@res0nance res0nance force-pushed the lazy-interables branch 7 times, most recently from 2142e40 to da26386 Compare March 24, 2026 15:24
@res0nance res0nance marked this pull request as ready for review March 25, 2026 07:21
@res0nance
Copy link
Copy Markdown
Author

@nfalco79 do we have appetite for such a change? Should reduce the workload on a webhook

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.

1 participant