diff options
author | Felipe Artur <felipefac@gmail.com> | 2019-05-02 16:48:02 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2019-05-06 15:01:53 -0300 |
commit | 7e255f6793b8ff86777ccba087c9a76872a3819c (patch) | |
tree | 6573083d4b42e6167ca1f1222dab430ed7d19664 /spec/lib/gitlab/github_import/importer/issue_importer_spec.rb | |
parent | f98758753a73841d2374aad986ae795da828ddca (diff) | |
download | gitlab-ce-7e255f6793b8ff86777ccba087c9a76872a3819c.tar.gz |
Fix issuables state_id nil when importing projects from GitHubissue_57906_fix_github_import
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 'spec/lib/gitlab/github_import/importer/issue_importer_spec.rb')
-rw-r--r-- | spec/lib/gitlab/github_import/importer/issue_importer_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/lib/gitlab/github_import/importer/issue_importer_spec.rb b/spec/lib/gitlab/github_import/importer/issue_importer_spec.rb index 7901ae005d9..dab5767ece1 100644 --- a/spec/lib/gitlab/github_import/importer/issue_importer_spec.rb +++ b/spec/lib/gitlab/github_import/importer/issue_importer_spec.rb @@ -98,6 +98,7 @@ describe Gitlab::GithubImport::Importer::IssueImporter, :clean_gitlab_redis_cach description: 'This is my issue', milestone_id: milestone.id, state: :opened, + state_id: 1, created_at: created_at, updated_at: updated_at }, @@ -127,6 +128,7 @@ describe Gitlab::GithubImport::Importer::IssueImporter, :clean_gitlab_redis_cach description: "*Created by: alice*\n\nThis is my issue", milestone_id: milestone.id, state: :opened, + state_id: 1, created_at: created_at, updated_at: updated_at }, |