Skip to content

Support weight widget GraphQL API

euko requested to merge 362550-work-item-weight-mutation-2 into master

What does this MR do and why?

Resolves the backend portion of #362550 (closed)

Screenshots or screen recordings

How to set up and validate locally

  1. Enable :work_items FF

    Feature.enable(:work_items)
  2. Grab an issue and note its id and description.

If the issue's id is 460, its work item GID is gid://gitlab/WorkItem/449 (gid://gitlab/Issue/460 equally works.)

  1. Run the sample GraphQL query
mutation {
  workItemUpdate(input: {id: "gid://gitlab/WorkItem/460", weightWidget: { weight: 2 } }) {
    workItem {
      id
      title
      widgets {
        ... on WorkItemWidgetWeight {
          weight
        }
      }
    }
    errors
  }
}

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 euko

Merge request reports

Loading