Skip to content

Draft: Create add seats modal for subscriptions with limited access

Laura Callahan requested to merge 409750-limited_access_modals into master

What does this MR do and why?

Related to [Reseller] Show modal to let users know they ca... (#409752 - closed)

Introduces a modal to show when subscriptions are either reseller managed or ramp subscriptions behind the limited_access_modal FF.

Screenshots or screen recordings

Group usage quota Add seats
Ramp subscription add_seats_ramps_
Managed by reseller add_seats_reseller

How to set up and validate locally

For both ramp + reseller subscriptions:

  • Link it to a GL namespace either in the CDot UI (subscriptions/SUBSCRIPTION_NAME/edit?transaction=change_gitlab_group) or via the rails console
  • In GL, navigate to /groups/GROUP_NAME/-/usage_quotas#seats-quota-tab
  • Verify that Add seats button appears as usual
  • Verify that clicking the button displays the modal
    • By default, it will show the modal text for a reseller subscription because we're temporarily stubbing the limitedAccessReason
    • To see the ramp subscription text, you can modify this line to return RAMP_SUBSCRIPTION
  • Verify that closing out of the modal functions properly

For the regular subscription:

  • Link it to a GL namespace either in the CDot UI (subscriptions/SUBSCRIPTION_NAME/edit?transaction=change_gitlab_group) or via the rails console
  • In GL, navigate to /groups/GROUP_NAME/-/usage_quotas#seats-quota-tab
  • Verify that Add seats button appears as usual
  • Verify that clicking the button takes you to CDot to add seats

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Laura Callahan

Merge request reports