Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
ef8217fb
Commit
ef8217fb
authored
Oct 31, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix missing issue assignees
parent
a9446093
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletion
+16
-1
lib/gitlab/import_export/import_export.yml
lib/gitlab/import_export/import_export.yml
+1
-0
spec/lib/gitlab/import_export/project.json
spec/lib/gitlab/import_export/project.json
+7
-1
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
+4
-0
spec/lib/gitlab/import_export/project_tree_saver_spec.rb
spec/lib/gitlab/import_export/project_tree_saver_spec.rb
+4
-0
No files found.
lib/gitlab/import_export/import_export.yml
View file @
ef8217fb
...
...
@@ -19,6 +19,7 @@ project_tree:
-
milestone
:
-
events
:
-
:push_event_payload
-
:issue_assignees
-
snippets
:
-
:award_emoji
-
notes
:
...
...
spec/lib/gitlab/import_export/project.json
View file @
ef8217fb
...
...
@@ -43,7 +43,7 @@
"issues"
:
[
{
"id"
:
40
,
"title"
:
"Voluptatem
amet doloribus deleniti eos maxime repudiandae molestias.
"
,
"title"
:
"Voluptatem"
,
"assignee_id"
:
1
,
"author_id"
:
22
,
"project_id"
:
5
,
...
...
@@ -70,6 +70,12 @@
"updated_at"
:
"2016-06-14T15:02:04.415Z"
,
"state"
:
"active"
,
"iid"
:
1
,
"issue_assignees"
:
[
{
"user_id"
:
1
,
"issue_id"
:
1
}
]
"events"
:
[
{
"id"
:
487
,
...
...
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
View file @
ef8217fb
...
...
@@ -63,6 +63,10 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
expect
(
issue
.
reload
.
updated_at
.
to_s
).
to
eq
(
'2016-06-14 15:02:47 UTC'
)
end
it
'has issue assignees'
do
expect
(
project
.
issues
.
where
(
title:
'Voluptatem'
).
first
.
issue_assignees
).
not_to
be_empty
end
it
'contains the merge access levels on a protected branch'
do
expect
(
ProtectedBranch
.
first
.
merge_access_levels
).
not_to
be_empty
end
...
...
spec/lib/gitlab/import_export/project_tree_saver_spec.rb
View file @
ef8217fb
...
...
@@ -77,6 +77,10 @@ describe Gitlab::ImportExport::ProjectTreeSaver do
expect
(
saved_project_json
[
'issues'
].
first
[
'notes'
]).
not_to
be_empty
end
it
'has issue assignees'
do
expect
(
saved_project_json
[
'issues'
].
first
[
'issue_assignees'
]).
not_to
be_empty
end
it
'has author on issue comments'
do
expect
(
saved_project_json
[
'issues'
].
first
[
'notes'
].
first
[
'author'
]).
not_to
be_empty
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment