Skip to content

Add full params on first addons purchase

What does this MR do and why?

Purchase CI minutes fail when the namespace doesn't have a active subscription or already had addon purchase. This MR updates params that are sent in this case.

Related to #345674 (closed)

Screenshots or screen recordings

Screenshot_2021-11-15_at_13.57.06

Screenshot_2021-11-15_at_13.57.06

How to set up and validate locally

Before validating you'd need to start CustomersDot locally

  1. Run rails c
  2. Run Feature.enable(:new_route_ci_minutes_purchase) to enable the feature flag for CI Minutes flow
  3. Create a new group without subscription
  4. Navigate to Settings -> Usage Quotas -> Pipelines tab and click OR fast forward http://localhost:5000/-/subscriptions/buy_minutes?selected_group=<selected_group_id>
  5. Complete the flow

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Diana Zubova

Merge request reports