Skip to content

Add author to GraphQL WorkItem Type

Mario Celi requested to merge 339777-add-author-to-work-item-gql-type into master

What does this MR do and why?

Adds new author field to the WorkItem GraphQL type so we can query information from the user that created the work item through the GraphQL API.

Adding this new field as alpha as we might want to change how we expose this field in the future. Discussion on the topic at #339777 (comment 1252683756)

How to set up and validate locally

  1. Go to GraphiQL in your local install at http://127.0.0.1:3000/-/graphql-explorer
  2. Run a query like:
{
  workItem(id: "gid://gitlab/WorkItem/558") {
    id
    title
    author {
      id
      username
    }
  }
}

MR acceptance checklist

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

Related to #339777 (closed)

Edited by Mario Celi

Merge request reports

Loading