Skip to content

Expose licensed features in the Namespace GraphQL type

What does this MR do and why?

This MR introduces the licensed_features field on the namespace GQL type, to facilitate reading these values from the frontend when work items are opened from the drawer

References

Screenshots or screen recordings

Not provided

How to set up and validate locally

  1. In an environment with the GDK running, navigate to http://localhost:3000/-/graphql-explorer
  2. Run a query on a group namespace to fetch the appropriate fields. e.g:
query q {
  namespace(fullPath: "flightjs") {
    licensedFeatures {
      hasIssueWeightsFeature
      hasIterationsFeature
      hasOkrsFeature
      hasSubepicsFeature
      hasIssuableHealthStatusFeature
      hasEpicsFeature
      hasScopedLabelsFeature
      hasQualityManagementFeature
      hasLinkedItemsEpicsFeature
      hasIssueDateFilterFeature
    }
  }
}
  1. Observe that the values returned match the state of the license
  2. Repeat the above with a project namespace and user namespace

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #537149 (closed)

Edited by Matt D'Angelo

Merge request reports

Loading