summaryrefslogtreecommitdiff
path: root/lib/gitlab/github_import/importer/issue_importer.rb
diff options
context:
space:
mode:
authorFelipe Artur <fcardozo@gitlab.com>2019-05-06 19:45:17 +0000
committerSean McGivern <sean@gitlab.com>2019-05-06 19:45:17 +0000
commitc40bad741f963f0b3bf3868d485e419dbbf7b37c (patch)
treee41ea99f73a250154b8923eb2cca0ca1ce57ad61 /lib/gitlab/github_import/importer/issue_importer.rb
parentadc83d25a7ebf636941f72881a8828e6ebb5ad64 (diff)
downloadgitlab-ce-c40bad741f963f0b3bf3868d485e419dbbf7b37c.tar.gz
Fix issuables state_id nil when importing projects from GitHub
Issues and merge requests imported from GitHub are having state_id set to null. This fixes the GitHub project importer and schedule migrations to fix state_id.
Diffstat (limited to 'lib/gitlab/github_import/importer/issue_importer.rb')
-rw-r--r--lib/gitlab/github_import/importer/issue_importer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/github_import/importer/issue_importer.rb b/lib/gitlab/github_import/importer/issue_importer.rb
index 656d46b6a7d..a468f6d8821 100644
--- a/lib/gitlab/github_import/importer/issue_importer.rb
+++ b/lib/gitlab/github_import/importer/issue_importer.rb
@@ -53,6 +53,7 @@ module Gitlab
description: description,
milestone_id: milestone_finder.id_for(issue),
state: issue.state,
+ state_id: ::Issue.available_states[issue.state],
created_at: issue.created_at,
updated_at: issue.updated_at
}