Skip to content

Redirect purchase link to new group flow when applicable

Aman Luthra requested to merge al_redirect_no_namespace_subscription_flow into master

What does this MR do and why?

This MR builds upon the changes from !157042 (merged) & !156854 (merged).

Whenever we navigate to the premium/ultimate purchase flow without passing in a namespace_id, this MR ensures the newly created subscription based group creation/selection navigation kicks in.

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

Step Screenshot
Navigate to the new purchase flow without a namespace Screenshot_2024-07-04_at_8.40.47_PM
Create a new group Screenshot_2024-07-04_at_8.41.26_PM
Navigation to CDot kics in - purchase the subscription Screenshot_2024-07-04_at_8.41.46_PM
Redirect back to the group page Screenshot_2024-07-04_at_8.43.27_PM
Initial navigation with the FF switched off Screenshot_2024-07-04_at_8.55.41_PM

How to set up and validate locally

  • Since we will depend on interaction between CustomersDot and GitLab, we would need the following requisites enabled:
  1. Ensure GDK and CustomersDot are both running on your system.
  2. Ensure the GitLab GraphQL proxy setup is completed for communication between the two.
  3. Purchase any new subscription and ensure it is activated on a GitLab group.
  • Now we can test out the flow by:
  1. Enable the migrate_purchase_flows_for_existing_customers feature flag.
  2. Navigate to the purchase flow URL for a premium or ultimate subscription without passing in the namespace ID.
  1. The new group navigation should kick in.
  2. When the FF is switched off or if there have never been any existing purchases for the user, the existing 404 page should kick in.
Edited by Aman Luthra

Merge request reports

Loading