Data should be retrieved lazily for paginated APIs

XMLWordPrintable

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major
    • None
    • Environment:
      Plugin version: 937.2.5

      The current version of the plugin will always retrieve all Pull requests or branches or all data from paginated APIs. This happens even if we only use a subset of the data resulting in more data retrieved than required.

      This happens in cases such as https://github.com/jenkinsci/bitbucket-branch-source-plugin/blob/e5631e06326332b75a734ff0ed008c324c7798f3/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketSCMSource.java#L410-L491 where if process returns true we do not iterate the whole list

            Assignee:
            Nikolas Falco
            Reporter:
            Raihaan Shouhell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: