Add duo seat assignment task to learn gitlab
What does this MR do and why?
Add duo seat assignment task to learn gitlab
- add to learn gitlab page which requires a new db column and all the fixins.
- see #522000 (closed)
Changelog: other EE: true
Screenshots or screen recordings
| not complete | completed | full cycle |
|---|---|---|
![]() |
![]() |
Screen_Recording_2025-03-25_at_3.32.56_PM |
How to set up and validate locally
- Setup gdk to simulate SaaS - https://docs.gitlab.com/ee/development/ee_features.html#simulate-a-saas-instance and restart GDK
- create a group and then a project in that group
- In the gitlab admin UI, edit the group to be on an ultimate trial(admin -> groups -> edit your group)
- In rails console, change the trial, trial start and end date for the group
Group.last.gitlab_subscription.update_columns(trial_starts_on: Date.today, trial_ends_on: 30.days.from_now, trial: true) - Add a duo enterprise trial to that namespace in the rails console
n = Group.last
add_on = ::GitlabSubscriptions::AddOn.where(name: ::GitlabSubscriptions::AddOn.names[:duo_enterprise]).last
::GitlabSubscriptions::AddOnPurchase.create(add_on: add_on, namespace: n, quantity: 1, started_at: Time.current, expires_on: 30.days.from_now, purchase_xid: SecureRandom.hex(16), trial: true, organization_id: 1)
- Start onboarding in rails console
n = Group.last
::Onboarding::Progress.onboard(n)
- Go to the project page for the new project and select Learn GitLab from the sidebar
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.
Related to #522000 (closed)
Edited by Doug Stull

