Fix project import error on releases

This commit is contained in:
James Lopez 2019-02-22 15:07:53 +01:00
parent b569e76c15
commit c643042a49
No known key found for this signature in database
GPG key ID: 756BF8E9D7C0CF39
3 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
title: Fix project import error importing releases
merge_request: 25495
author:
type: fixed

View file

@ -28,7 +28,6 @@ project_tree:
- notes:
:author
- releases:
- :author
- :links
- project_members:
- :user

View file

@ -78,6 +78,14 @@ describe Gitlab::ImportExport::ProjectTreeSaver do
expect(saved_project_json['releases']).not_to be_empty
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
expect(saved_project_json['issues']).not_to be_empty
end