gitlab-org--gitlab-foss/app/models
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_setting
badges
blob_viewer
ci Render log artifact files in GitLab 2018-10-08 08:07:41 +00:00
clusters Merge branch '49952-port-upgrade-command-to-ce' into 'master' 2018-10-02 17:06:29 +00:00
concerns Merge branch 'master-ce' into scheduled-manual-jobs 2018-10-05 23:38:02 +09:00
conversational_development_index
diff_viewer
hooks Remove unencrypted webhook token and URL columns 2018-10-09 11:15:02 +01:00
issue
members
merge_request
network
postgresql
project_services post_process markdown redered by API 2018-09-29 11:29:32 -05:00
protected_branch
protected_tag
storage
.gitkeep
ability.rb Use Gitlab::SafeRequestStore in more places 2018-09-24 12:11:27 -07:00
abuse_report.rb
active_session.rb
appearance.rb
application_setting.rb Remove Git circuit breaker 2018-10-10 09:08:18 +02:00
audit_event.rb
award_emoji.rb
badge.rb
blob.rb
board.rb
broadcast_message.rb
chat_name.rb
chat_team.rb
commit.rb Add pipeline status to diffs/commit_item 2018-10-03 13:18:21 -05:00
commit_collection.rb
commit_range.rb
commit_status.rb Rename failure reason to stale_schedule 2018-10-02 17:08:14 +02:00
compare.rb
container_repository.rb
cycle_analytics.rb
dashboard_group_milestone.rb
dashboard_milestone.rb
deploy_key.rb
deploy_keys_project.rb
deploy_token.rb
deployment.rb
diff_discussion.rb
diff_note.rb Backport CE changes from draft_notes addition in EE 2018-10-04 15:45:00 -06:00
directly_addressed_user.rb
discussion.rb
discussion_note.rb
email.rb
environment.rb
epic.rb
event.rb Check snippet note event visibility 2018-09-21 17:05:08 +01:00
event_collection.rb
external_issue.rb
fork_network.rb
fork_network_member.rb
forked_project_link.rb
generic_commit_status.rb
global_label.rb
global_milestone.rb
gpg_key.rb
gpg_key_subkey.rb
gpg_signature.rb
group.rb Applies the CE backport of EE#657 2018-09-24 12:02:01 +01:00
group_custom_attribute.rb
group_label.rb
group_milestone.rb
guest.rb
identity.rb
import_export_upload.rb
individual_note_discussion.rb
instance_configuration.rb Instance Configuration page now displays correct SSH fingerprints 2018-10-03 15:25:42 +01:00
internal_id.rb
issue.rb Move issue related_branches to service 2018-10-04 15:59:14 -03:00
issue_assignee.rb
issue_collection.rb
key.rb
label.rb Add subscribe filter to labels page 2018-10-04 10:24:50 +02:00
label_link.rb
label_note.rb
label_priority.rb
legacy_diff_discussion.rb
legacy_diff_note.rb Simplify by using Gitlab::SafeRequestStore 2018-09-24 12:11:26 -07:00
lfs_file_lock.rb
lfs_object.rb
lfs_objects_project.rb
license_template.rb Backport project template API to CE 2018-10-05 11:34:43 +01:00
list.rb
member.rb
merge_request.rb #13650 added wip search functionality and tests 2018-10-03 08:15:00 +00:00
merge_request_diff.rb
merge_request_diff_commit.rb
merge_request_diff_file.rb
merge_requests_closing_issues.rb
milestone.rb
namespace.rb Improve logging when username update fails due to registry tags 2018-10-02 06:36:58 -04:00
note.rb Fix comments in app/models/note.rb 2018-10-06 05:47:30 -07:00
note_diff_file.rb
notification_reason.rb
notification_recipient.rb
notification_setting.rb
oauth_access_grant.rb
oauth_access_token.rb
out_of_context_discussion.rb
pages_domain.rb
personal_access_token.rb
personal_snippet.rb
programming_language.rb
project.rb Fix project deletion when there is a export available 2018-10-10 13:24:06 -07:00
project_authorization.rb
project_auto_devops.rb Add timed incremental rollout to Auto DevOps 2018-10-05 21:14:59 +02:00
project_ci_cd_setting.rb
project_custom_attribute.rb
project_deploy_token.rb
project_feature.rb Make GitLab pages support access control 2018-10-05 13:41:11 +00:00
project_group_link.rb
project_import_data.rb
project_import_state.rb
project_label.rb
project_snippet.rb
project_statistics.rb
project_team.rb
project_wiki.rb Correct Gitlab Capitalization in code files 2018-09-21 12:05:37 +00:00
prometheus_metric.rb
protectable_dropdown.rb
protected_branch.rb
protected_tag.rb
push_event.rb
push_event_payload.rb
readme_blob.rb
redirect_route.rb
ref_matcher.rb
release.rb
remote_mirror.rb
repository.rb Removes N+1 gitaly rpc call to fetch the last commit for path 2018-10-01 13:29:47 +01:00
repository_language.rb
resource_label_event.rb
route.rb
security_event.rb
sent_notification.rb
service.rb
site_statistic.rb Geo: sync disabled wikis. Stage 2 2018-09-25 17:49:39 +03:00
snippet.rb
snippet_blob.rb
spam_log.rb
subscription.rb
system_note_metadata.rb Filter system notes with public and private cross references 2018-10-02 17:01:49 -05:00
term_agreement.rb
timelog.rb
todo.rb Clean up ActiveRecord code in TodoService 2018-10-08 15:19:12 +02:00
tree.rb
trending_project.rb
u2f_registration.rb
upload.rb
user.rb Clean up ActiveRecord code in TodoService 2018-10-08 15:19:12 +02:00
user_agent_detail.rb
user_callout.rb Lint 2018-09-24 11:43:20 +01:00
user_custom_attribute.rb
user_interacted_project.rb
user_status.rb
user_synced_attributes_metadata.rb
users_star_project.rb
wiki_directory.rb
wiki_page.rb Remove Gitlab::Git::Repository#rugged and Gollum code 2018-10-02 16:34:28 -03:00