API request for list of steps in pipeline build does not show next page URL

XMLWordPrintable

    • 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

      1. Create a build with more than 10 steps
      2. Run the following API request /2.0/repositories/<workspace>/<repo_slug>/pipelines/<pipeline_uuid>/steps/
      3. 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

            Assignee:
            Unassigned
            Reporter:
            Syahrul
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: