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
c6714fb9
Commit
c6714fb9
authored
Jan 23, 2020
by
George Koltsov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Epics Activity info to Group Export
parent
24f16072
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
changelogs/unreleased/georgekoltsov-add-epics-activity-to-group-export.yml
...ased/georgekoltsov-add-epics-activity-to-group-export.yml
+5
-0
ee/spec/lib/ee/gitlab/import_export/group_tree_saver_spec.rb
ee/spec/lib/ee/gitlab/import_export/group_tree_saver_spec.rb
+20
-0
lib/gitlab/import_export/group_import_export.yml
lib/gitlab/import_export/group_import_export.yml
+6
-0
No files found.
changelogs/unreleased/georgekoltsov-add-epics-activity-to-group-export.yml
0 → 100644
View file @
c6714fb9
---
title
:
Add Epics Activity information to Group Export
merge_request
:
23613
author
:
type
:
changed
ee/spec/lib/ee/gitlab/import_export/group_tree_saver_spec.rb
View file @
c6714fb9
...
...
@@ -9,8 +9,11 @@ describe Gitlab::ImportExport::GroupTreeSaver do
let_it_be
(
:label
)
{
create
(
:group_label
)
}
let_it_be
(
:parent_epic
)
{
create
(
:epic
,
group:
group
)
}
let_it_be
(
:epic
)
{
create
(
:epic
,
group:
group
,
parent:
parent_epic
)
}
let_it_be
(
:epic_event
)
{
create
(
:event
,
:created
,
target:
epic
,
group:
group
,
author:
user
)
}
let_it_be
(
:epic_push_event
)
{
create
(
:event
,
:pushed
,
target:
epic
,
group:
group
,
author:
user
)
}
let_it_be
(
:board
)
{
create
(
:board
,
group:
group
,
assignee:
user
,
labels:
[
label
])
}
let_it_be
(
:note
)
{
create
(
:note
,
noteable:
epic
)
}
let_it_be
(
:note_event
)
{
create
(
:event
,
:created
,
target:
note
,
author:
user
)
}
let
(
:shared
)
{
Gitlab
::
ImportExport
::
Shared
.
new
(
group
)
}
let
(
:export_path
)
{
"
#{
Dir
.
tmpdir
}
/group_tree_saver_spec_ee"
}
...
...
@@ -62,6 +65,23 @@ describe Gitlab::ImportExport::GroupTreeSaver do
expect
(
notes
.
first
[
'note'
]).
to
eq
(
note
.
note
)
expect
(
notes
.
first
[
'noteable_id'
]).
to
eq
(
epic
.
id
)
end
it
'saves epic events'
do
expect_successful_save
(
group_tree_saver
)
events
=
epic_json
[
'events'
]
expect
(
events
).
not_to
be_empty
event_actions
=
events
.
map
{
|
event
|
event
[
'action'
]
}
expect
(
event_actions
).
to
contain_exactly
(
epic_event
.
action
,
epic_push_event
.
action
)
end
it
"saves epic's note events"
do
expect_successful_save
(
group_tree_saver
)
notes
=
epic_json
[
'notes'
]
expect
(
notes
.
first
[
'events'
].
first
[
'action'
]).
to
eq
(
note_event
.
action
)
end
end
context
'boards relation'
do
...
...
lib/gitlab/import_export/group_import_export.yml
View file @
c6714fb9
...
...
@@ -34,6 +34,8 @@ methods:
-
:type
notes
:
-
:type
events
:
-
:action
preloads
:
...
...
@@ -44,8 +46,12 @@ ee:
group
:
-
epics
:
-
:parent
-
events
:
-
:push_event_payload
-
notes
:
-
:author
-
events
:
-
:push_event_payload
-
boards
:
-
:board_assignee
-
labels
:
...
...
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