Allow groups to update display_gitlab_credits_user_data

What does this MR do and why?

This MR makes the new setting display_gitlab_credits_user_data configurable for top-level groups

This new setting is to support https://gitlab.com/gitlab-org/gitlab/-/issues/580868+

MR Cadence

Description MR
Add display_gitlab_credits_user_data to app and namespace settings !214508 (merged)
Make display_gitlab_credits_user_data configurable in admin area !214538 (merged)
Allow groups to update display_gitlab_credits_user_data 👈 you're here
Hide user data when display_gitlab_credits_user_data is false !215439

Screenshots or screen recordings

group_display_user_data

How to set up and validate locally

  1. Go to https://gdk.test:3443/rails/features and enable usage_billing_dev
  2. Navigate to Your Group > Settings > General and expand Permissions and group features
  3. On GitLab Credits dashboard check/uncheck Display user data
  4. Save changes
  5. Compare with the value in rails console: Group.find(<id>).namespace_settings.display_gitlab_credits_user_data

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