Paginate group runners in CI/CD settings
What does this MR do and why?
This change prevents large group runner datasets from impacting performance in the CI/CD settings page by enabling paginating them.
Users will be able to locate group runners in the list via pagination.
A small font size issue in the available runners label is fixed as well
Changelog: fixed
Screenshots or screen recordings
before | after |
---|---|
How to set up and validate locally
We are verifying a project that belongs to a group (is not a user namespace). Find a project like that: e.g. /flightjs/Flight
Prepare your environment
We need over 20 group runners to check the pagination:
- Visit your project's group
- Go to Group -> CI/CD -> Runners
- Check if you have Group Runners in the list, if not create at least 21.
Use these command to create them
- Install gitlab-runner with
$ brew install gitlab-runner
- Get the runner registration token from the UI:
- Replace
$RUNNER_TOKEN
with your token in the command below, and repeat the command as needed:
$ gitlab-runner register --url http://gdk.test:3000/ --registration-token $RUNNER_TOKEN --executor shell --description instance-runner-$(gdate "+%s-%3N") -n
Ensure the runners are created by refreshing the page.
Check the pagination in the project page
- In your project projects, visit
- Visit Settings -> CI/CD
- Open Runners
- Verify the pagination to see multiple lists of Group Runners works.
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.
Related to #334285 (closed)
Edited by Miguel Rincon