Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20595

versions endpoint takes long to return results regardless of pagination

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 7.0.2
    • 6.10.0
    • Deployments, REST API
    • None

      Issue Summary

      1. the REST endpoint /rest/api/latest/deploy/project/{deploymentProjectId}/versions pagination doesn't speed up results. Projects that contain many versions can take over 40 seconds to respond.

      2. The "Releases" page takes long to load and scroll through versions. /deploy/viewDeploymentProjectVersions.action

      Environment

      Bamboo version 6.10.0-m125 build 61004 - 20 Aug 19

      Steps to Reproduce

      1. Go to /rest/api/latest/deploy/project/578551811/versions?start-index=0&max-result=30
      2. try with different max-result values and the time to respond is always the same.

      Expected Results

      Results contain 30 releases and responds in less than 10 seconds.

      Actual Results

      Requested versions are returned after 40 seconds

      { size: 4091,
        + versions: []
      ...
        start-index: 0,
        max-result: 30
      }

      Notes

      Endpoint documentation doesn't say pagination is supported: https://docs.atlassian.com/atlassian-bamboo/REST/6.9.2/ but the page /deploy/viewDeploymentProjectVersions.action?id=578551811 tries to paginate with infinite scroll using the REST call /versions?start-index=0&max-result=30 and that is probably the cause of taking 40 seconds to do each scroll.

      The search/versions endpoint does pagination but still takes 40 seconds so it may be using the same unpaginated code in the back. e.g: /search/versions?searchTerm=JF-PROD&chronologicalOrder=true&deploymentProjectId=578551811&start-index=0&max-result=30

      Workaround

      Currently there is no known workaround for this behaviour. A workaround will be added here when available.

              mgardias Marcin Gardias
              mfernandezbadii Mauro Badii (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: