Skip to content

[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.

cdot-sm-subscription-card-crossed

SaaS Subscription card

The only button we need to keep is Change linked namespace

cdot-saas-subscription-card-crossed

Note: Hiding the Buy new subscription button will be tackled in this issue - #5074 (closed)

Implementation breakdown

Description MR
1️⃣ Hide CI minutes button https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/5695
2️⃣ Hide buy storage button https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/5719/
3️⃣ Hide upgrade plan button https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/5728
4️⃣ Hide add seats button https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/5729/
5️⃣ Hide renew button https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/5730
6️⃣ Hide cancel and resume button https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/5731

Result

Reseller customer will not be able to amend their subscription.

Next steps (if any)

How will we measure success?

Edited by Sharmad Nachnolkar