Redirect to pricing page if no plan_id exists in SaaS subscription purchase URL
What does this MR do and why?
Redirect to pricing page on marketing site if no plan_id
param exists in SaaS subscription purchase URL
Related to #474561
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
Before | After |
---|---|
Screen Recording 2024-07-30 at 2.25.36 PM.mov | Screen Recording 2024-07-30 at 2.27.04 PM.mov |
Redirection testing
-
migrate_purchase_flows_for_existing_customers
feature flag enabled -
migrate_purchase_flows_for_new_customers
feature flag enabled
Scenario | Screenshot |
---|---|
Existing customer accesses purchase link
|
|
New customer accesses purchase link
|
-
migrate_purchase_flows_for_existing_customers
feature flag enabled -
migrate_purchase_flows_for_new_customers
feature flag disabled
Scenario | Screenshot |
---|---|
Existing customer accesses purchase link
|
|
New customer accesses purchase link
|
-
migrate_purchase_flows_for_existing_customers
feature flag disabled -
migrate_purchase_flows_for_new_customers
feature flag disabled
Scenario | Screenshot |
---|---|
Existing customer accesses purchase link
|
|
New customer accesses purchase link
|
How to set up and validate locally
- Setup Customers Dot
- Start GDK in SaaS mode
GITLAB_SIMULATE_SAAS=1 gdk start
- GitLab: Navigate to http://localhost:3000/-/subscriptions/new
- GitLab: Navigate to http://localhost:3000/-/subscriptions/new?plan_id=2c92a00d76f0d5060176f2fb0a5029ff for Premium plan
- GitLab: Navigate to http://localhost:3000/-/subscriptions/new?plan_id=2c92a0ff76f0d5250176f2f8c86f305a for Ultimate plan
Edited by Vamsi Vempati