gitlab-org--gitlab-foss/app/services/groups
Stan Hu 6606a45030 Fix a number of race conditions that can occur during namespace deletion
There are two problems in the current implementation:

1. If a project is marked for deletion via the `pending_delete` flag
and then the namespace was quickly deleted, it's possible that the
namespace skips over that project and leaves that project in
an orphaned state.

2. Before namespace deletion, the namespace attempts to clean up
all the relevant storage paths. However, if all projects have been
removed synchronously, then the namespace will not be able to clean anything.
To prevent this, we should load the paths to be deleted before
actually destroying projects.

The specs were missing this second case due to a permission issue
that caused project removal never to happen.
2017-02-15 23:56:40 -08:00
..
base_service.rb Fix specs 2016-03-20 23:26:58 +01:00
create_service.rb Refactor nested group related code 2016-12-29 19:18:05 +02:00
destroy_service.rb Fix a number of race conditions that can occur during namespace deletion 2017-02-15 23:56:40 -08:00
update_service.rb Fix error 500 renaming group. Also added specs and changelog. 2016-12-20 17:52:27 +01:00