-
Bug
-
Resolution: Fixed
-
Low
-
None
-
Severity 2 - Major
-
Issue Summary
- API endpoint to list out the steps for the specific pipeline build does not show the next page for more than 10 steps.
Steps to Reproduce
- Create a build with more than 10 steps
- Run the following API request /2.0/repositories/<workspace>/<repo_slug>/pipelines/<pipeline_uuid>/steps/
- It will only show 10 steps and there's no next pagination URL
Expected Results
It should give information about the existing next page, for example:
"size": 5421, "page": 2, "pagelen: 10, "next": "https://api.bitbucket.org/2.0/repositories/pypy/pypy/commits?page=3", "previous": "https://api.bitbucket.org/2.0/repositories/pypy/pypy/commits?page=1", "values": [ ... ]
Actual Results
It's not showing any next page or total page at the end of the API request.
Workaround
- Manually add a page at the back of the API request, for example:
/2.0/repositories/<workspace>/<repo_slug>/pipelines/<pipeline_uuid>/steps/?page=1
- duplicates
-
BCLOUD-13806 Support pagination in pipelines endpoint in API 2
- Gathering Impact