Hide tooltip on Storage purchase if not prorated
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 |
---|---|
How to set up and validate locally
- Run CustomersDot and GitLab locally
- On your local GitLab instance enable a feature toggle
- Run rails c
- Run
Feature.enable(:new_route_storage_purchase)
to enable the feature flag for Storage flow - Make sure that you have correct settings
Gitlab::CurrentSettings.update(automatic_purchased_storage_allocation: true)
- Find an existing group with a subscription (Premium or Ultimate)
- 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>
- Check that the tooltip is shown and the dates are not full year AND
- Create a new group
- 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>
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Diana Zubova