Commit 27ed9d95 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch '57712-project-import-error-user-expected-got-hash' into 'master'

Resolve "Project import error, User expected, got Hash"

Closes #57712

See merge request gitlab-org/gitlab-ce!25495
parents 99218353 c643042a
---
title: Fix project import error importing releases
merge_request: 25495
author:
type: fixed
...@@ -28,7 +28,6 @@ project_tree: ...@@ -28,7 +28,6 @@ project_tree:
- notes: - notes:
:author :author
- releases: - releases:
- :author
- :links - :links
- project_members: - project_members:
- :user - :user
......
...@@ -78,6 +78,14 @@ describe Gitlab::ImportExport::ProjectTreeSaver do ...@@ -78,6 +78,14 @@ describe Gitlab::ImportExport::ProjectTreeSaver do
expect(saved_project_json['releases']).not_to be_empty expect(saved_project_json['releases']).not_to be_empty
end end
it 'has no author on releases' do
expect(saved_project_json['releases'].first['author']).to be_nil
end
it 'has the author ID on releases' do
expect(saved_project_json['releases'].first['author_id']).not_to be_nil
end
it 'has issues' do it 'has issues' do
expect(saved_project_json['issues']).not_to be_empty expect(saved_project_json['issues']).not_to be_empty
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment