Migrate restrict_user_defined_variables to `true`
This adds a Batched Background Migration that migrates the CI/CD setting `restrict_user_defined_variables: false` to `true` while also keeping the behavior backwards compatible by updating `pipeline_variables_minimum_override_role: :developer`. This migrations is necessary in order to deprecate the setting `restrict_user_defined_variables` in 18.0. In order to do that we need to have set the setting `restrict_user_defined_variables: true` everywhere and solely rely on `pipeline_variables_minimum_override_role`. Changelog: changed
显示
- app/services/projects/update_service.rb 7 个添加, 0 个删除app/services/projects/update_service.rb
- db/docs/batched_background_migrations/enable_restrict_user_defined_variables.yml 8 个添加, 0 个删除...und_migrations/enable_restrict_user_defined_variables.yml
- db/post_migrate/20250220113009_queue_enable_restrict_user_defined_variables.rb 27 个添加, 0 个删除...220113009_queue_enable_restrict_user_defined_variables.rb
- db/schema_migrations/20250220113009 1 个添加, 0 个删除db/schema_migrations/20250220113009
- lib/gitlab/background_migration/enable_restrict_user_defined_variables.rb 36 个添加, 0 个删除...round_migration/enable_restrict_user_defined_variables.rb
- spec/lib/gitlab/background_migration/enable_restrict_user_defined_variables_spec.rb 98 个添加, 0 个删除..._migration/enable_restrict_user_defined_variables_spec.rb
- spec/migrations/20250220113009_queue_enable_restrict_user_defined_variables_spec.rb 26 个添加, 0 个删除...3009_queue_enable_restrict_user_defined_variables_spec.rb
- spec/services/projects/update_service_spec.rb 18 个添加, 14 个删除spec/services/projects/update_service_spec.rb
加载中
想要评论请 注册 或 登录