-
- Downloads
There was a problem fetching the pipeline summary.
Clean up project destruction
Instead of redirecting from the project service to the service and back to the model, put all destruction code in the service. Also removes a possible source of failure where run_after_commit may not destroy the project.
Showing
- app/controllers/projects_controller.rb 1 addition, 1 deletionapp/controllers/projects_controller.rb
- app/models/project.rb 0 additions, 10 deletionsapp/models/project.rb
- app/services/delete_user_service.rb 1 addition, 1 deletionapp/services/delete_user_service.rb
- app/services/destroy_group_service.rb 1 addition, 1 deletionapp/services/destroy_group_service.rb
- app/services/projects/destroy_service.rb 6 additions, 2 deletionsapp/services/projects/destroy_service.rb
- lib/api/projects.rb 1 addition, 1 deletionlib/api/projects.rb
- spec/models/hooks/system_hook_spec.rb 1 addition, 1 deletionspec/models/hooks/system_hook_spec.rb
- spec/services/delete_user_service_spec.rb 1 addition, 1 deletionspec/services/delete_user_service_spec.rb
Loading
Please register or sign in to comment