-
- Downloads
Refactoring Environment#stop_actions for CI DB
This commit refactors the code not to use CTE joins between deployments/environments and ci_builds/pipelines.
Showing
- app/models/environment.rb 5 additions, 36 deletionsapp/models/environment.rb
- app/services/environments/auto_stop_service.rb 9 additions, 3 deletionsapp/services/environments/auto_stop_service.rb
- app/services/environments/stop_service.rb 0 additions, 16 deletionsapp/services/environments/stop_service.rb
- app/workers/all_queues.yml 9 additions, 0 deletionsapp/workers/all_queues.yml
- app/workers/environments/auto_stop_worker.rb 18 additions, 0 deletionsapp/workers/environments/auto_stop_worker.rb
- config/sidekiq_queues.yml 2 additions, 0 deletionsconfig/sidekiq_queues.yml
- spec/models/environment_spec.rb 14 additions, 49 deletionsspec/models/environment_spec.rb
- spec/services/environments/auto_stop_service_spec.rb 10 additions, 1 deletionspec/services/environments/auto_stop_service_spec.rb
- spec/services/environments/stop_service_spec.rb 0 additions, 54 deletionsspec/services/environments/stop_service_spec.rb
- spec/workers/environments/auto_stop_worker_spec.rb 71 additions, 0 deletionsspec/workers/environments/auto_stop_worker_spec.rb
app/workers/environments/auto_stop_worker.rb
0 → 100644
Please register or sign in to comment