Skip to content

Create `stop all jobs` button/modal

What does this MR do and why?

Adds a stop all jobs button and modal for the Admin Area > CI/CD > Jobs OR gitlab.example.com/admin/jobs

Context: Until now the button/modal was solved with ruby and haml. We want to refactor the code and add a filter for ci jobs. Therefore we want to switch to vue/js.

You can find a test implementation of the filter here.

Note: At the time of writing, the test implementation is not yet complete and error-free.

Screenshots or screen recordings

Nothing changes as far as the view is concerned but:

before: image

after: image

How to set up and validate locally

  1. checkout the given test implementation https://gitlab.com/siemens/gitlab/-/merge_requests/61
  2. type in the console:
rails c
  1. then:
job = Ci::Build.first
job.status = 'pending'
job.save
  1. go to: gitlab.example.com/admin/jobs (or whatever instance url you have -> Admin Area > CI/CD > Jobs)

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 Andreas Deicha

Merge request reports