Make DAP Free tier available on self-managed

What does this MR do and why?

Make DAP Free tier available on self-managed

References

Screenshots or screen recordings

Before After
Namespace settings image image
Instance settings 404 image

How to set up and validate locally

  1. Run GDK in SaaS mode GITLAB_SIMULATE_SAAS=0 gdk start
  2. Ensure the instance does not have an ultimate license
  3. Create a new group (as a sanity check) and within that group create a project
  4. In Rails console enable the feature flag and credits
  group = Group.find_by_full_path('your-group-name')
  add_on = GitlabSubscriptions::AddOn.find_or_create_by_name(:gitlab_credits)
  GitlabSubscriptions::AddOnPurchase.create!(
    add_on: add_on,
    namespace: nil,
    organization: group.organization,
    quantity: 1,
    started_at: 1.day.ago,
    expires_on: 1.year.from_now,
    purchase_xid: SecureRandom.hex(16)
  )
  1. Within the group settings, GitLab Duo, enable DAP and onboard the Flows
  2. Observe that DAP feature are available
  3. In your group visit Settings > GitLab Duo > Change Configuration
    1. Enable "Turn on experiment and beta GitLab Duo features" and foundational flows below

Features checklist

Should be available

Should not be available

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 Fred de Gier

Merge request reports

Loading