Skip to content

Add WorkItem description widget to GraphQL API

Mario Celi requested to merge 334809-description-widget-resolver into master

What does this MR do and why?

Implements the first widget for work item. Adds widget to the work item type (read only)

Related to #334809 (closed)

How to set up and validate locally

  1. Run bundle exec rails console
  2. Run Feature.enable(:work_items)
  3. Execute a GraphQL query like
{
  workItem(id: "gid://gitlab/WorkItem/549") {
    id
    widgets {
      type
      ... on WorkItemWidgetDescription {
        markdown
        html
      }
    }
  }
}

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 Mario Celi

Merge request reports