Add daily_usage field to GitlabSubscriptions::User::CreditsUsageType

What does this MR do and why?

This adds daily_usage field to GitlabSubscriptions::User::CreditsUsageType

Users will be able to query their own GitLab Credits daily usage.

Relates to #605986 (closed)

References

Screenshots or screen recordings

Screenshot_2026-09-08_at_11.21.30

How to set up and validate locally

  1. Ensure you're running local GDK in SAAS mode (e.g. export GITLAB_SIMULATE_SAAS=1 gdk restart)
  2. Make sure you have Customers Dot running with the branch from this MR: https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/17037
  3. Enable user_gitlab_credits_dashboard
  4. Have your user be part of one or more groups with gitlab credits
  5. Consume some credits for your user
  6. Execute this query on GraphQL explorer https://gdk.test:3443/-/graphql-explorer
query getUserCreditsUsage {
  currentUser {
    creditsUsage(namespacePath: "your-group") {
      creditsUsed
      dailyUsage {
        date
        creditsUsed
      }
    }
  }
}

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.

Edited by Sheldon Led

Merge request reports

Loading
Loading