Skip to content

Hide tooltip on Storage purchase if not prorated

Diana Zubova requested to merge dz/fix-tooltip-on-storage into master

What does this MR do and why?

Hide a tooltip on Storage purchase if not the purchase is not prorated (= the end dates are not co-termed with the main subscription)

Related: #327896 (closed)

Screenshots or screen recordings

Prorated purchase Not prorated purchase
Screenshot_2022-01-13_at_10.42.57 Screenshot_2022-01-19_at_12.22.31

How to set up and validate locally

  1. Run CustomersDot and GitLab locally
  2. On your local GitLab instance enable a feature toggle
  3. Run rails c
  4. Run Feature.enable(:new_route_storage_purchase) to enable the feature flag for Storage flow
  5. Make sure that you have correct settings Gitlab::CurrentSettings.update(automatic_purchased_storage_allocation: true)
  6. Find an existing group with a subscription (Premium or Ultimate)
  7. Open this group page and navigate to Settings -> Usage Quotas -> Storage click “Purchase more storage” OR use a fast forward link http://localhost:3000/-/subscriptions/buy_storage?selected_group=<id_of_an_existing_group>
  8. Check that the tooltip is shown and the dates are not full year AND
  9. Create a new group
  10. Open this group page and navigate to Settings -> Usage Quotas -> Storage click “Purchase more storage” OR use a fast forward link http://localhost:3000/-/subscriptions/buy_storage?selected_group=<id_of_an_existing_group>
  11. Check that the dates show full year starting from today and there is no tooltip next to them

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