Migrate usage CiRunner.active to CiRunner.paused
What does this MR do and why?
Migrate usage CiRunner.active to CiRunner.paused
The "paused" field is preferred to "active" in the CiRunner GraphQL API since 14.8, this change updates our queries to use it.
See https://docs.gitlab.com/ee/api/graphql/reference/#cirunner
Screenshots or screen recordings
list | view | update |
---|---|---|
How to set up and validate locally
Our tests at: https://gitlab.com/gitlab-org/gitlab/blob/master/spec/support/shared_examples/features/runners_shared_examples.rb#L97 already confirm most of this functionality works.
For manual tests, we should confirm our paused status are not impacted:
-
Admin -> Runners e.g. http://gdk.test:3000/admin/runners
- Pausing a unpausing should work as expected
-
Admin -> Runners -> Runner Details e.g. http://gdk.test:3000/admin/runners/458/
- Pausing a unpausing should work as expected
-
Admin -> Runners -> Runner Details > Edit
- Using the checkbox to pause or unpause should work as usual: http://gdk.test:3000/admin/runners/458/edit
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 #411581 (closed)
Edited by Miguel Rincon