Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2019-01-02 18:16:34 +0300
committerAndreas Brandl <abrandl@gitlab.com>2019-01-29 17:38:40 +0300
commit820739eb09a0182054a7713271a70b912c4a7e27 (patch)
tree081fc1327483a0874dbb4e594a3a581338d886c9 /lib/gitlab/github_import
parent852e68fd952b18ba32b87c165bb17c370965d756 (diff)
Revert "Trigger iid logic from GitHub importer for issues."
This reverts commit b78a69b06c165f7a463d5e0de69030346d9d5c72.
Diffstat (limited to 'lib/gitlab/github_import')
-rw-r--r--lib/gitlab/github_import/importer/issue_importer.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/github_import/importer/issue_importer.rb b/lib/gitlab/github_import/importer/issue_importer.rb
index 4226eee85cc..656d46b6a7d 100644
--- a/lib/gitlab/github_import/importer/issue_importer.rb
+++ b/lib/gitlab/github_import/importer/issue_importer.rb
@@ -57,11 +57,7 @@ module Gitlab
updated_at: issue.updated_at
}
- insert_and_return_id(attributes, project.issues).tap do |id|
- # We use .insert_and_return_id which effectively disables all callbacks.
- # Trigger iid logic here to make sure we track internal id values consistently.
- project.issues.find(id).ensure_project_iid!
- end
+ insert_and_return_id(attributes, project.issues)
rescue ActiveRecord::InvalidForeignKey
# It's possible the project has been deleted since scheduling this
# job. In this case we'll just skip creating the issue.