gitlab-org--gitlab-foss/app/models
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
..
ci Merge branch 'feature/gb/paginated-environments-api' into 'master' 2017-02-08 12:43:58 +00:00
concerns Merge branch '24976-start-of-line-mention' into 'master' 2017-02-13 13:10:15 +00:00
cycle_analytics added new summary serializers and refactor all of the summary stuff into separate logical classes 2017-01-17 11:32:54 +01:00
hooks
issue
members
merge_request
network Enable Style/MultilineOperationIndentation in Rubocop, fixes #25741 2016-12-16 21:37:22 +03:00
project_services Merge branch 'master' into 'zj-remove-deprecated-ci-service' 2017-02-15 15:45:40 +00:00
protected_branch CE-specific changes gitlab-org/gitlab-ee#1137 2016-11-29 17:38:45 +05:30
.gitkeep
ability.rb address comments 2017-01-25 10:10:05 +01:00
abuse_report.rb
appearance.rb
application_setting.rb Update Rubocop to ruby 2.3 2017-02-07 15:16:46 +01:00
audit_event.rb
award_emoji.rb Gather issuable metadata to avoid n+ queries on index view 2017-02-09 17:40:37 -02:00
blob.rb
board.rb Remove backlog lists from boards 2017-02-03 17:02:43 +03:00
broadcast_message.rb
chat_name.rb
commit.rb Present TODO's list without grouping by project 2017-01-27 20:20:18 -02:00
commit_range.rb Fix cross-project references copy to include the project reference 2017-01-03 13:01:46 +01:00
commit_status.rb rename sort method 2017-01-02 11:44:08 -06:00
compare.rb
cycle_analytics.rb fix spec 2017-01-17 11:32:55 +01:00
dashboard_milestone.rb Speed up dashboard milestone index by scoping IssuesFinder to user authorized projects 2017-01-16 11:58:16 -05:00
deploy_key.rb
deploy_keys_project.rb
deployment.rb Fix stoppable? 2017-02-07 13:30:33 +01:00
diff_note.rb
directly_addressed_user.rb Create directly_addressed Todos when mentioned in beginning of a line 2017-02-08 21:53:34 +05:30
discussion.rb Feature: delegate all open discussions to Issue 2016-12-05 20:55:45 +01:00
email.rb
environment.rb Use safe navigation operator to make rubocop happy 2017-02-13 13:02:53 +01:00
event.rb Merge branch '22645-add-discussion-contribs-to-calendar' into 'master' 2017-02-14 11:18:40 +00:00
external_issue.rb Fix cross-project references copy to include the project reference 2017-01-03 13:01:46 +01:00
forked_project_link.rb Use string for class_name option for lazy autoload class 2017-01-15 12:08:29 +05:00
generic_commit_status.rb Add URL validations for generic commit statuses 2017-01-18 12:07:19 +01:00
global_label.rb
global_milestone.rb Speed up group milestone index by passing group_id to IssuesFinder 2017-01-06 13:47:18 +01:00
group.rb Add GFM support to nested groups 2017-02-13 22:30:10 +02:00
group_label.rb Fix cross-project references copy to include the project reference 2017-01-03 13:01:46 +01:00
group_milestone.rb Update Rubocop to ruby 2.3 2017-02-07 15:16:46 +01:00
guest.rb
identity.rb
issue.rb Add commment to Issue, Project and MergeRequest #to_reference 2017-01-27 20:20:18 -02:00
issue_collection.rb
key.rb Record used SSH keys only once per day 2017-01-20 11:42:46 +01:00
label.rb validate length of label.title 2017-01-09 12:16:36 +01:00
label_link.rb
label_priority.rb
legacy_diff_note.rb
lfs_object.rb
lfs_objects_project.rb Add more storage statistics 2016-12-21 16:39:49 +01:00
list.rb Remove backlog lists from boards 2017-02-03 17:02:43 +03:00
member.rb Show parent group members for nested group 2017-02-10 17:34:12 +02:00
merge_request.rb Use Namespace#full_path instead of Namespace#path 2017-02-14 18:38:20 +02:00
merge_request_diff.rb Merge remote-tracking branch 'upstream/master' into fix-git-hooks-when-creating-file 2017-01-26 17:21:38 +08:00
merge_requests_closing_issues.rb
milestone.rb Speed up group milestone index by passing group_id to IssuesFinder 2017-01-06 13:47:18 +01:00
namespace.rb Fix a number of race conditions that can occur during namespace deletion 2017-02-15 23:56:40 -08:00
note.rb Gather issuable metadata to avoid n+ queries on index view 2017-02-09 17:40:37 -02:00
notification_setting.rb Introduce EXCLUDED_WATCHER_EVENTS to exclude events 2017-01-05 19:53:56 +08:00
oauth_access_token.rb
pages_domain.rb fix attr_encrypted in EE 2017-02-01 02:53:58 +00:00
personal_access_token.rb Add a scopes column to the personal_access_tokens table 2016-12-16 15:08:10 +05:30
personal_snippet.rb
project.rb Fix a number of race conditions that can occur during namespace deletion 2017-02-15 23:56:40 -08:00
project_authorization.rb Smarter refreshing of authorized projects 2016-12-19 17:11:03 +01:00
project_feature.rb
project_group_link.rb Fix race conditions for AuthorizedProjectsWorker 2017-01-25 13:22:15 +01:00
project_import_data.rb
project_label.rb Fix cross-project references copy to include the project reference 2017-01-03 13:01:46 +01:00
project_snippet.rb Check public snippets for spam 2017-02-02 10:23:51 +00:00
project_statistics.rb Fix Project#update_repository_size to convert MB to Bytes properly 2017-01-17 21:50:09 -02:00
project_team.rb
project_wiki.rb
protected_branch.rb
release.rb
repository.rb Respect autocrlf setting when creating/updating file through web UI 2017-02-13 10:35:25 -06:00
route.rb Fix route rename descendants if route.name is blank 2017-02-08 23:36:23 +02:00
security_event.rb
sent_notification.rb
service.rb Remove deprecated CI service 2017-02-14 15:15:41 +01:00
snippet.rb Check public snippets for spam 2017-02-02 10:23:51 +00:00
spam_log.rb
subscription.rb
timelog.rb Use normal associations instead of polymorphic. 2017-02-07 10:41:44 -05:00
todo.rb Create directly_addressed Todos when mentioned in beginning of a line 2017-02-08 21:53:34 +05:30
tree.rb
trending_project.rb
u2f_registration.rb
user.rb Add GFM support to nested groups 2017-02-13 22:30:10 +02:00
user_agent_detail.rb
users_star_project.rb
wiki_directory.rb Remove directories as one of the attributes of WikiDirectory 2016-12-31 17:27:03 -02:00
wiki_page.rb Make WikiPage comparable according to StaticModel interface 2017-02-14 11:16:34 +05:30