gitlab-org--gitlab-foss/app
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
..
assets allow clicking on text or icon to trigger expand 2017-02-15 16:39:18 -05:00
controllers Merge branch 'move_tags_service_to_namespace' into 'master' 2017-02-15 18:13:41 +00:00
finders Show parent group members for nested group 2017-02-10 17:34:12 +02:00
helpers Merge branch 'not_ignore_parameter_of_mr_change_branches_path' into 'master' 2017-02-15 10:12:40 +00:00
mailers Update Rubocop to ruby 2.3 2017-02-07 15:16:46 +01:00
models Fix a number of race conditions that can occur during namespace deletion 2017-02-15 23:56:40 -08:00
policies Merge branch 'ee-1439-read-only-user' into 'master' 2017-02-07 04:10:13 +00:00
presenters Don't override presentee methods for Gitlab::View::Presenter::Delegated 2017-01-24 10:24:47 +01:00
serializers Revert "Merge branch 'add-additional-checks-to-ca-data' into 'master' " 2017-02-10 15:21:45 -05:00
services Fix a number of race conditions that can occur during namespace deletion 2017-02-15 23:56:40 -08:00
uploaders Merge branch 'svg-xss-fix' into 'security' 2017-02-15 10:42:13 -05:00
validators Fix certificate validators 2017-01-31 22:53:58 +00:00
views style links on system notes to look clickable 2017-02-15 16:39:18 -05:00
workers Merge branch 'zj-drop-ruby-21-tests' into 'master' 2017-02-13 10:22:38 +00:00