gitlab-org--gitlab-foss/spec/services
Stan Hu fbb5953ec3 Fix project deletion when there is a export available
Project deletions were failing with "Can't modify frozen hash" because:

1. Project#remove_exports was called in the after_destroy hook
2. This would remove the file and update ImportExportUpload
3. ImportExportUpload#save would attempt to write to a destroyed model

To avoid this, we just check if ImportExportUpload has been destroyed
before attempting to save it.

This would have a side effect of not running after_commit hooks to delete the
repository on disk, making it impossible to delete the project entirely.

Closes #52362
2018-10-10 13:24:06 -07:00
..
application_settings
applications
auth Correct Gitlab Capitalization in code files 2018-09-21 12:05:37 +00:00
boards Filter out archived issues from group issue board 2018-09-14 16:12:36 -05:00
chat_names
ci Merge branch 'master-ce' into scheduled-manual-jobs 2018-10-03 10:33:33 +09:00
clusters Do not persist errors from Kubernetes calls 2018-09-17 12:35:42 -05:00
commits Freeze string literals 2018-08-10 18:15:25 +02:00
deploy_keys
deploy_tokens
discussions Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
emails
events
files Adds chmod action to POST /projects/:id/repository/commits API 2018-09-27 11:51:15 +02:00
gpg_keys
groups Geo: sync disabled wikis. Stage 2 2018-09-25 17:49:39 +03:00
issuable Use ResourceLabelEvent for tracking label changes 2018-09-07 13:39:20 +00:00
issues Move issue related_branches to service 2018-10-04 15:59:14 -03:00
keys Rails5 fix MySQL milliseconds problem in specs 2018-06-27 18:49:22 +02:00
labels Backport from EE !5954 2018-07-04 20:48:50 +08:00
lfs Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
members Delete todos when users loses target read permissions 2018-07-30 13:29:18 +02:00
merge_requests Remove Gitlab::Git::Repository#rugged and Gollum code 2018-10-02 16:34:28 -03:00
milestones Merge branch 'issue_36138' into 'master' 2018-08-28 07:49:09 +00:00
notes Auto resolve new notes of resolved discussions 2018-09-24 08:30:58 -05:00
projects Fix project deletion when there is a export available 2018-10-10 13:24:06 -07:00
prometheus
protected_branches Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
protected_tags Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
quick_actions Allow /copy_metadata for new issues 2018-09-27 11:07:26 +02:00
resource_events Use ResourceLabelEvent for tracking label changes 2018-09-07 13:39:20 +00:00
search Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
tags Don't use Gitlab::Utils.nlbr in Gitlab::Git 2018-06-11 10:42:09 +00:00
test_hooks
todos/destroy Add changes from the EE 2018-08-06 14:18:21 +02:00
users allow users api to set public_email 2018-10-01 13:24:16 +02:00
wiki_pages
wikis Replace whitespaces in wiki page attachments file names 2018-09-07 14:10:15 +00:00
access_token_validation_service_spec.rb
after_branch_delete_service_spec.rb
base_count_service_spec.rb
cohorts_service_spec.rb
compare_service_spec.rb
create_branch_service_spec.rb
create_deployment_service_spec.rb
create_release_service_spec.rb
create_snippet_service_spec.rb
delete_branch_service_spec.rb
delete_merged_branches_service_spec.rb
event_create_service_spec.rb Delete UserActivities and related workers 2018-07-18 15:44:10 +02:00
git_push_service_spec.rb Resolve "Enable Auto DevOps by default for self managed instances of GitLab" 2018-09-18 19:20:43 +00:00
git_tag_push_service_spec.rb Remove Gitlab::Git::Repository#rugged and Gollum code 2018-10-02 16:34:28 -03:00
gravatar_service_spec.rb
import_export_clean_up_service_spec.rb fix spec 2018-07-06 18:25:16 +02:00
note_summary_spec.rb
notification_recipient_service_spec.rb Fix N+1 for notification recipients on private projects 2018-10-04 14:28:15 +01:00
notification_service_spec.rb Automatically disable Auto DevOps for project upon first pipeline failure 2018-09-06 19:20:42 +00:00
preview_markdown_service_spec.rb render using RedCarpet if legacy_render parameter is set 2018-09-05 09:19:16 -05:00
push_event_payload_service_spec.rb
repair_ldap_blocked_user_service_spec.rb
repository_archive_clean_up_service_spec.rb
reset_project_cache_service_spec.rb Updates from rubocop -a 2018-07-09 21:13:08 +08:00
search_service_spec.rb Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
spam_service_spec.rb
submit_usage_ping_service_spec.rb
system_hooks_service_spec.rb Updates from rubocop -a 2018-07-09 21:13:08 +08:00
system_note_service_spec.rb Fix SpaceBeforeFirstArg cop 2018-09-20 21:47:34 +05:00
todo_service_spec.rb Whitelist existing destroy_all offenses 2018-08-16 17:29:37 +02:00
update_merge_request_metrics_service_spec.rb Rails5 fix MySQL milliseconds problem in specs 2018-06-27 18:49:22 +02:00
update_release_service_spec.rb
update_snippet_service_spec.rb
upload_service_spec.rb
user_project_access_changed_service_spec.rb
verify_pages_domain_service_spec.rb
web_hook_service_spec.rb Resolve "WebHookService doesn't handle user info with nil passwords" 2018-06-25 14:44:29 +00:00