Remove trial button from free billing page if trialed before
What does this MR do and why?
Remove trial button from free billing page if trialed before
- namespace can not start a trial if they already have had one on this namespace.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Turn on billing features in the app(via rails console)
ApplicationSetting.first.update(check_namespace_plan: true)
- Configure to act as SaaS and restart gdk.
- Create a new group.
- Change line in
ee/app/views/groups/billings/_free_plan_billing_index.html.haml
from- if namespace.never_had_trial?
to- if !namespace.never_had_trial?
- Visit that group's overview page such as
http://localhost:3000/flightjs
- Find the billing link under settings.
- Click the billing link.
- Observe the billing page.
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.
Related to #420592 (closed)
Edited by Doug Stull