Skip to content

Use limitedAccessReason to show different modal

Diana Zubova requested to merge dz/409750-use-reason-for-modal into master

What does this MR do and why?

Use limitedAccessReason to show different modal

Query one more API field to show different modals for ramp and reseller subscriptions

Related to #409752 (closed)

Screenshots or screen recordings

Ramp subscription Reseller subscription
Screenshot_2023-09-13_at_10.16.09 Screenshot_2023-09-13_at_10.15.11

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 and it has a different text for RAMP and RESELLER
  • 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 Diana Zubova

Merge request reports