Skip to content

Use root ancestor group in buy minutes path

Firdaws Farukh requested to merge buy-minutes-path-use-root-group into master

What does this MR do and why?

Update the selected_group id in Buy Minutes URL to always use the root ancestor group ID. This fixes the issue where a user would be redirected to 404 page when they click on the CI/CD shared runners minutes warning displayed in projects within. a subgroup.

Solves #358118 (closed)

How to set up and validate locally

  1. Create a group, subgroups, and projects in the subgroup
  2. Trigger pipelines in the projects to consume at least 70% of the quota in your group
    • If you have admin access, you can edit the group and reduce the quota
  3. Navigate to either:
    • The main page of project in the subgroup
    • Or the CI/CD -> Pipelines page of project in the subgroup
  4. Click "Buy more Pipeline minutes"
  5. You should be redirected to the Purchase flow. Note: You need CustomersDot installed, running, and configured with your local GitLab in order for the checkout page to render correctly.

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 Sheldon Led

Merge request reports