Add Purchase Credits card to SM admin page
What does this MR do and why?
Add Purchase Credits card to SM admin page
Retrieve credits from CDot Create new card component
Changelog: added EE: true
References
Screenshots or screen recordings
| Before | After |
|---|---|
|
Tier: Free
Error state |
How to set up and validate locally
-
Set up GDK in Self managed:
GITLAB_SIMULATE_SAAS: 0 -
Sign in, go to
http://localhost:3000/admin/subscription- Go to http://127.0.0.1:3000/rails/features/
- Turn on FF
sm_purchase_credits
- Turn on FF
- Go to http://127.0.0.1:3000/rails/features/
-
Validate various states:
- Free, no credits - remove all licenses
-
T
rial - click on "Start free trial" , fill out the formNavigate back toafter signuphttp://localhost:3000/admin/subscriptionIf you still have hte patch applied, you should still only see the trial credit amount (24)
-
Paid subscription
- Sign in to https://customers.staging.gitlab.com/
- Purchase a SM Ultimate subscription, note activation code
- Navigate back to
http://localhost:3000/admin/subscription- Click "Add Activation code" and apply code
- You should not see the
GitLab Creditscard anymore
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 #595574
Edited by Kiesha Herman

