-
- Downloads
Defer project destroys within a namespace in Groups::DestroyService#async_execute
Group#destroy would actually hard-delete all associated projects even though the acts_as_paranoia gem is used, preventing Projects::DestroyService from doing any work. We first noticed this while trying to log all projects deletion to the Geo log.
Showing
- app/models/namespace.rb 6 additions, 0 deletionsapp/models/namespace.rb
- app/services/groups/destroy_service.rb 1 addition, 2 deletionsapp/services/groups/destroy_service.rb
- changelogs/unreleased/sh-fix-project-destroy-in-namespace.yml 4 additions, 0 deletions...gelogs/unreleased/sh-fix-project-destroy-in-namespace.yml
- spec/models/namespace_spec.rb 11 additions, 0 deletionsspec/models/namespace_spec.rb
- spec/services/groups/destroy_service_spec.rb 32 additions, 20 deletionsspec/services/groups/destroy_service_spec.rb
Please register or sign in to comment