[Reseller] Hide subscription management buttons for a subscription purchased via a reseller
Problem
Subscriptions purchased via a Reseller should not be amended via the Customers Portal.
Any subscription changes should be done via the Reseller (and not the customer), since Resellers are responsible for paying the related invoices.
For screenshots of the current experience for Reseller customer (if they were able to login) see https://gitlab.com/gitlab-org/fulfillment-meta/-/issues/809+.
Proposal
Hide the following buttons on the subscription card if the subscription is managed by a reseller:
- Add Seats
- Upgrade
- Resume
- Cancel
- Renew
- Buy additional CI Minutes
- Buy additional Storage
Looks like we have a subscription.managed_by_reseller?
method in the code.
SM Subscription card
All buttons should be removed.
SaaS Subscription card
The only button we need to keep is Change linked namespace
Note: Hiding the Buy new subscription
button will be tackled in this issue - #5074 (closed)
Implementation breakdown
Description | MR |
---|---|
|
https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/5695 |
|
https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/5719/ |
|
https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/5728 |
|
https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/5729/ |
|
https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/5730 |
|
https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/5731 |
Result
Reseller customer will not be able to amend their subscription.