Use root ancestor group in buy minutes path
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
- Create a group, subgroups, and projects in the subgroup
- 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
- Navigate to either:
- The main page of project in the subgroup
- Or the CI/CD -> Pipelines page of project in the subgroup
- Click "Buy more Pipeline minutes"
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Sheldon Led