Skip to content

Fix hierarchy widget feature flag check

Mario Celi requested to merge 362206-fix-work-items-ff-check-widget into master

What does this MR do and why?

Fixes hierarchy widget feature flag check

How to set up and validate locally

  1. Enable the work_items feature flag only for a group that has a project with issues/work_items.
  2. For one of those issues/work_items, find the ID
  3. Make sure the work item has a work_item_parent or work_item_childrent to fetch
  4. Perform a query like
query fetchWorkItem {
  workItem(id: "gid://gitlab/WorkItem/<work_item_id>") {
    id
    widgets {
      type
      ... on WorkItemWidgetHierarchy {
      	parent {
          id
        }
        children {
          nodes {
            id
          }
        }
      }
    }
  }
}

Before this fix you would get a null children or parent fields. Now you should get the correct values in the response

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 #362206 (closed)

Merge request reports

Loading