Skip to content

Rename `open*` release links to `opened*` in GraphQL endpoint

Nathan Friend requested to merge nfriend-rename-open-links-to-opened into master

What does this MR do?

Renames openIssuesUrl to openedIssuesUrl and openMergeRequestsUrl to openedMergeRequestsUrl to align the field name with the actual issuable state name ("opened").

These fields were added in !46161 (merged).

Feature flag

These links are behind a feature flag (release_mr_issue_urls) which is currently disabled by default, so this isn't a breaking change to the API (since the fields are not yet officially released).

Example request/response

Request:

{
  project(fullPath: "root/release-test") {
    release(tagName: "v5.10") {
      links {
        openedIssuesUrl
        openedMergeRequestsUrl
      }
    }
  }
}

Response:

{
  "data": {
    "project": {
      "release": {
        "links": {
          "openedIssuesUrl": "http://0.0.0.0:3000/root/release-test/-/issues?release_tag=v5.10&scope=all&state=opened",
          "openedMergeRequestsUrl": "http://0.0.0.0:3000/root/release-test/-/merge_requests?release_tag=v5.10&scope=all&state=opened"
        }
      }
    }
  }
}

Related to #205295 (closed)

Edited by Nathan Friend

Merge request reports