-
Bug
-
Resolution: Fixed
-
Low
-
6.10.0
-
None
-
Severity 3 - Minor
-
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
- Go to /rest/api/latest/deploy/project/578551811/versions?start-index=0&max-result=30
- 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.
- is cloned as
-
BDEV-15563 Loading...