diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2019-01-02 16:16:34 +0100 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2019-01-29 15:38:40 +0100 |
commit | 820739eb09a0182054a7713271a70b912c4a7e27 (patch) | |
tree | 081fc1327483a0874dbb4e594a3a581338d886c9 /lib | |
parent | 852e68fd952b18ba32b87c165bb17c370965d756 (diff) | |
download | gitlab-ce-820739eb09a0182054a7713271a70b912c4a7e27.tar.gz |
Revert "Trigger iid logic from GitHub importer for issues."
This reverts commit b78a69b06c165f7a463d5e0de69030346d9d5c72.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/github_import/importer/issue_importer.rb | 6 |
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. |