Skip to content

Expose iid in pipelines api

Marcel Amirault requested to merge add-iid-to-pipelines-api into master

What does this MR do and why?

Resolves #342223 (closed)

Adds iid to the pipelines endpoint, as per the linked issue.

Screenshots or screen recordings

  • Before:

    {
        "id": 221,
        "project_id": 21,
        "sha": "00d019fe52f7fb47cf0408401d376b3aa70a906b",
        "ref": "master",
        "status": "success",
        "source": "web",
        "created_at": "2021-09-27T06:33:29.695Z",
        "updated_at": "2021-09-27T06:34:02.991Z",
        "web_url": "http://127.0.0.1:3000/test-group/test-project/-/pipelines/221"
    },
  • After:

    {
        "id": 221,
        "iid": 85,
        "project_id": 21,
        "sha": "00d019fe52f7fb47cf0408401d376b3aa70a906b",
        "ref": "master",
        "status": "success",
        "source": "web",
        "created_at": "2021-09-27T06:33:29.695Z",
        "updated_at": "2021-09-27T06:34:02.991Z",
        "web_url": "http://127.0.0.1:3000/test-group/test-project/-/pipelines/221"
    },

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Marcel Amirault

Merge request reports

Loading