Use finished deployments in Environments stop actions
Currently, Environment#stop_actions only picks up the stop jobs of the latest_successful_deployments in the latest_successful_pipeline. This changes Environment#stop_actions to pick up the stop jobs of the latest_finished_deployments in the latest_finished_pipeline. Changelog: changed
显示
- app/models/ci/pipeline.rb 1 个添加, 0 个删除app/models/ci/pipeline.rb
- app/models/deployment.rb 54 个添加, 23 个删除app/models/deployment.rb
- app/models/environment.rb 30 个添加, 2 个删除app/models/environment.rb
- app/serializers/environment_serializer.rb 14 个添加, 2 个删除app/serializers/environment_serializer.rb
- config/feature_flags/gitlab_com_derisk/environment_stop_actions_include_all_finished_deployments.yml 9 个添加, 0 个删除...ronment_stop_actions_include_all_finished_deployments.yml
- doc/ci/environments/index.md 19 个添加, 9 个删除doc/ci/environments/index.md
- spec/factories/ci/bridge.rb 5 个添加, 0 个删除spec/factories/ci/bridge.rb
- spec/features/projects/environments/environments_spec.rb 52 个添加, 0 个删除spec/features/projects/environments/environments_spec.rb
- spec/lib/gitlab/import_export/all_models.yml 1 个添加, 0 个删除spec/lib/gitlab/import_export/all_models.yml
- spec/models/ci/pipeline_spec.rb 13 个添加, 0 个删除spec/models/ci/pipeline_spec.rb
- spec/models/deployment_spec.rb 246 个添加, 0 个删除spec/models/deployment_spec.rb
- spec/models/environment_spec.rb 182 个添加, 21 个删除spec/models/environment_spec.rb
- spec/serializers/environment_serializer_spec.rb 44 个添加, 1 个删除spec/serializers/environment_serializer_spec.rb
加载中
想要评论请 注册 或 登录