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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
01d38b02
Commit
01d38b02
authored
Apr 03, 2017
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Multiple issue asignees] fix importers and specs for them
parent
d0b64118
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
18 deletions
+18
-18
lib/gitlab/fogbugz_import/importer.rb
lib/gitlab/fogbugz_import/importer.rb
+9
-9
lib/gitlab/github_import/issue_formatter.rb
lib/gitlab/github_import/issue_formatter.rb
+1
-1
lib/gitlab/google_code_import/importer.rb
lib/gitlab/google_code_import/importer.rb
+7
-7
spec/lib/gitlab/google_code_import/importer_spec.rb
spec/lib/gitlab/google_code_import/importer_spec.rb
+1
-1
No files found.
lib/gitlab/fogbugz_import/importer.rb
View file @
01d38b02
...
@@ -122,15 +122,15 @@ module Gitlab
...
@@ -122,15 +122,15 @@ module Gitlab
author_id
=
user_info
(
bug
[
'ixPersonOpenedBy'
])[
:gitlab_id
]
||
project
.
creator_id
author_id
=
user_info
(
bug
[
'ixPersonOpenedBy'
])[
:gitlab_id
]
||
project
.
creator_id
issue
=
Issue
.
create!
(
issue
=
Issue
.
create!
(
iid:
bug
[
'ixBug'
],
iid:
bug
[
'ixBug'
],
project_id:
project
.
id
,
project_id:
project
.
id
,
title:
bug
[
'sTitle'
],
title:
bug
[
'sTitle'
],
description:
body
,
description:
body
,
author_id:
author_id
,
author_id:
author_id
,
assignee_id
:
assignee_id
,
assignee_id
s:
[
assignee_id
]
,
state:
bug
[
'fOpen'
]
==
'true'
?
'opened'
:
'closed'
,
state:
bug
[
'fOpen'
]
==
'true'
?
'opened'
:
'closed'
,
created_at:
date
,
created_at:
date
,
updated_at:
DateTime
.
parse
(
bug
[
'dtLastUpdated'
])
updated_at:
DateTime
.
parse
(
bug
[
'dtLastUpdated'
])
)
)
issue_labels
=
::
LabelsFinder
.
new
(
nil
,
project_id:
project
.
id
,
title:
labels
).
execute
(
skip_authorization:
true
)
issue_labels
=
::
LabelsFinder
.
new
(
nil
,
project_id:
project
.
id
,
title:
labels
).
execute
(
skip_authorization:
true
)
...
...
lib/gitlab/github_import/issue_formatter.rb
View file @
01d38b02
...
@@ -10,7 +10,7 @@ module Gitlab
...
@@ -10,7 +10,7 @@ module Gitlab
description:
description
,
description:
description
,
state:
state
,
state:
state
,
author_id:
author_id
,
author_id:
author_id
,
assignee_id
:
assignee_id
,
assignee_id
s:
[
assignee_id
]
,
created_at:
raw_data
.
created_at
,
created_at:
raw_data
.
created_at
,
updated_at:
raw_data
.
updated_at
updated_at:
raw_data
.
updated_at
}
}
...
...
lib/gitlab/google_code_import/importer.rb
View file @
01d38b02
...
@@ -92,13 +92,13 @@ module Gitlab
...
@@ -92,13 +92,13 @@ module Gitlab
end
end
issue
=
Issue
.
create!
(
issue
=
Issue
.
create!
(
iid:
raw_issue
[
'id'
],
iid:
raw_issue
[
'id'
],
project_id:
project
.
id
,
project_id:
project
.
id
,
title:
raw_issue
[
'title'
],
title:
raw_issue
[
'title'
],
description:
body
,
description:
body
,
author_id:
project
.
creator_id
,
author_id:
project
.
creator_id
,
assignee_id
:
assignee_id
,
assignee_id
s:
[
assignee_id
]
,
state:
raw_issue
[
'state'
]
==
'closed'
?
'closed'
:
'opened'
state:
raw_issue
[
'state'
]
==
'closed'
?
'closed'
:
'opened'
)
)
issue_labels
=
::
LabelsFinder
.
new
(
nil
,
project_id:
project
.
id
,
title:
labels
).
execute
(
skip_authorization:
true
)
issue_labels
=
::
LabelsFinder
.
new
(
nil
,
project_id:
project
.
id
,
title:
labels
).
execute
(
skip_authorization:
true
)
...
...
spec/lib/gitlab/google_code_import/importer_spec.rb
View file @
01d38b02
...
@@ -49,7 +49,7 @@ describe Gitlab::GoogleCodeImport::Importer, lib: true do
...
@@ -49,7 +49,7 @@ describe Gitlab::GoogleCodeImport::Importer, lib: true do
expect
(
issue
).
not_to
be_nil
expect
(
issue
).
not_to
be_nil
expect
(
issue
.
iid
).
to
eq
(
169
)
expect
(
issue
.
iid
).
to
eq
(
169
)
expect
(
issue
.
author
).
to
eq
(
project
.
creator
)
expect
(
issue
.
author
).
to
eq
(
project
.
creator
)
expect
(
issue
.
assignee
).
to
eq
(
mapped_user
)
expect
(
issue
.
assignee
s
).
to
eq
([
mapped_user
]
)
expect
(
issue
.
state
).
to
eq
(
"closed"
)
expect
(
issue
.
state
).
to
eq
(
"closed"
)
expect
(
issue
.
label_names
).
to
include
(
"Priority: Medium"
)
expect
(
issue
.
label_names
).
to
include
(
"Priority: Medium"
)
expect
(
issue
.
label_names
).
to
include
(
"Status: Fixed"
)
expect
(
issue
.
label_names
).
to
include
(
"Status: Fixed"
)
...
...
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