Add enabled field to the SubscriptionUsage API
What does this MR do and why?
Related to #580097
This MR adds a new Boolean field, enabled, to the Subscription Usage GraphQL API. It proxies the value of the same name from the Subscription Portal (CDot) GraphQL API. This field will be used by the frontend to show a disabled banner on the usage dashboards.
References
Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/580097
Screenshots or screen recordings
How to set up and validate locally
-
Pull the latest from the
mainbranch in CDot -
On GitLab, open GraphQL explorer https://gdk.test:3443/-/graphql-explorer
-
Execute the query below (while replacing the
namespacePathvariable with your local group path)Query
query getSubscriptionUsage($namespacePath: ID) { subscriptionUsage(namespacePath: $namespacePath) { enabled } }Variables
{ "namespacePath": "full_path_of_your_group" } -
You should see the
enabledfield returned with a value oftrue.
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.