Add AI usage data collection setting to namespace admin UI

What does this MR do and why?

Add AI usage data collection setting to namespace admin UI. This setting controls wether AI usage data can be shared with GitLab for namespaces on gitlab.com (SaaS).

Related to: #587976 (closed)

References

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Rebase on !221903 (merged) if not merged yet
  2. Run GDK in SaaS mode and go the group settings of a Duo enabled namespace e.g. http://gdk.test:3000/groups/gitlab-duo/-/settings/gitlab_duo/configuration
  3. Observe that it displays AI usage data collection

image

  1. Go to the group settings of a subgroup in that namespace e.g. http://gdk.test:3000/groups/gitlab-duo/duo-subgroup/-/edit#js-gitlab-duo-settings
  2. Observe that it doesn't now AI usage data collection image

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 Suzanne Selhorn

Merge request reports

Loading