Feat(Licensing): add Offline cloud type
What does this MR do and why?
Describe in detail what your merge request does and why.
With the introduction of Zuora field: <code data-sourcepos="5:41-5:63">TurnOnCloudLicensing__c</code> = <code data-sourcepos="5:69-5:77">"Offline"</code> we are introducing a type to be displayed in the frontend, so the user can see the license types of current, past licenses, and future subscriptions.
Please see the discussion here for more information: https://gitlab.com/gitlab-org/gitlab/-/issues/349810#note_823286844.
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
This was a hard situation to mimic, so going to post the whole recording of how we got it to work here: https://youtu.be/2e25kzD0wEs
- Visit any group or project member pages such as
http://127.0.0.1:3000/admin/subscription
- Make sure to have CustomersDot set up with Zuora to create a back-dated legacy license that is about to expire (started a year minus a week ago) and add it. You can follow the instructions here (a bit out-dated, but still works): https://gitlab.com/gitlab-org/customers-gitlab-com/-/blob/staging/doc/resource_videos.md
- Do one of these two:
-
Log into https://apisandbox.zuora.com/, find the subscription and update it to be cloud license to
Yes
: -
Log into http://localhost:5000/admin/customer, find the customer and click "Zuora Subscriptions" (the little bookmark on the right) and update all the fields to
Yes
:
-
- Apply this patch: fake-cloud-license-renewal-of-legacy-license.patch
- Find the subscription activation code in http://localhost:5000/ and activate it in your instance.
- You should see that the current subscription is still a
License file
type and that the offline cloud license subscription in the Subscription History Table shows asOffline cloud
- Go through the process of creating another subscription that has Cloud License Enabled set to
Yes
and add it to the user. This should still show asCloud license
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #349810