-
Bug
-
Resolution: Fixed
-
Medium
This is somehow related to :
I want to fetch my 50 last pipelines (because I cannot filter on this API, actually, I just want to get my last pipeline for a given branch).
To do so, since I can't simply ask to give me the 50 last pipelines, I need to do this :
- https://api.bitbucket.org/2.0/repositories/\{user}/{repo}/pipelines/?pagelen=1
which gives me a total of size=10415 pipelines
then, I divide size by pagelen=208 (10415 / 50)
then,
- https://api.bitbucket.org/2.0/repositories/\{user}/{repo}/pipelines/?page=208&pagelen=50
returns empty lists of pipelines, whereas it should return my last pipelines (modulo 50).
- https://api.bitbucket.org/2.0/repositories/\{user}/{repo}/pipelines/?page=200&pagelen=50
returns correct list, so I'm missing all my last pipelines (starting at page 201)
I haven't found any workaround.
Also note that everything would much simpler if we could add an order parameter to the query.
- is related to
-
BCLOUD-13806 Support pagination in pipelines endpoint in API 2
- Gathering Impact