Now allowing expired trials to see Trial Discover Page
What does this MR do and why?
Resolves https://gitlab.com/gitlab-org/gitlab/-/issues/442050
Now allowing expired trials to see the Trial Discover Page.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
No visible change
How to set up and validate locally
- Setup GDK to simulate SaaS
- Setup and run Customers Dot
- Enable feature flag by running
echo "Feature.enable :trial_discover_page" | gdk rails c
- Register a new user for a trial
- Run
gdk rails c
- Run the following commands to make user's trial expired:
sub = GitlabSubscription.last
sub.update_columns(hosted_plan_id: nil, trial_starts_on: 10.days.ago, trial_ends_on: 1.days.ago)
- Make sure user can navigate to
http://gdk.test:3000/groups/<group_name>/-/discover
Related to #442050
Edited by Ross Byrne