Skip to content

Add an actor to FF check on work item type resolver

Mario Celi requested to merge 350200-add-actor-to-work-item-types-field-ff into master

What does this MR do and why?

Adds an actor to the feature flag check on the work item types resolver

How to set up and validate locally

  1. Run bundle exec rails console
  2. Run project = Project.find_by_full_path('flightjs/Flight')
  3. Run Feature.enable(:work_items, project)
  4. Execute a GraphQL query like:
{
  project(fullPath: "flightjs/Flight") {
    workItemTypes {
      nodes {
        name
        iconName
        id
      }
    }
  }
}
  • workItemTypes should contain a list of work item types.
  • Doing the same for another project should return null in the workItemTypes field.
  • The same should be true for the groups query
{
  group(fullPath: "flightjs") {
    workItemTypes {
      nodes {
        name
        iconName
        id
      }
    }
  }
}

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

Edited by Mario Celi

Merge request reports

Loading