A sidekiq worker to run a migration to set pipeline_variables_minimum_override_role to no_one_allowed

Related to: #521951 (closed)

main issue: #514242 (closed)

What does this MR do and why?

Updates the pipeline_variables_minimum_override_role on project_ci_cd_settings to no_one_allowed for projects that are not using pipeline variables

How to execute locally

  1. rails console
  2. Ci::SafeDisablePipelineVariablesWorker.new.perform(group_id)
  3. Group.find(group_id).projects.map { |p| p.ci_pipeline_variables_minimum_override_role }

References

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Dmytro Biryukov

Merge request reports

Loading