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
bb57e544
Commit
bb57e544
authored
May 13, 2020
by
Kassio Borges
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export GitLab Version on Group Export
parent
f2b6fadd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
app/services/groups/import_export/export_service.rb
app/services/groups/import_export/export_service.rb
+5
-1
spec/services/groups/import_export/export_service_spec.rb
spec/services/groups/import_export/export_service_spec.rb
+6
-0
No files found.
app/services/groups/import_export/export_service.rb
View file @
bb57e544
...
...
@@ -52,7 +52,7 @@ module Groups
end
def
savers
[
tree_exporter
,
file_saver
]
[
version_saver
,
tree_exporter
,
file_saver
]
end
def
tree_exporter
...
...
@@ -72,6 +72,10 @@ module Groups
end
end
def
version_saver
Gitlab
::
ImportExport
::
VersionSaver
.
new
(
shared:
shared
)
end
def
file_saver
Gitlab
::
ImportExport
::
Saver
.
new
(
exportable:
@group
,
shared:
@shared
)
end
...
...
spec/services/groups/import_export/export_service_spec.rb
View file @
bb57e544
...
...
@@ -49,6 +49,12 @@ describe Groups::ImportExport::ExportService do
FileUtils
.
rm_rf
(
archive_path
)
end
it
'saves the version'
do
expect
(
Gitlab
::
ImportExport
::
VersionSaver
).
to
receive
(
:new
).
and_call_original
service
.
execute
end
it
'saves the models using ndjson tree saver'
do
stub_feature_flags
(
group_export_ndjson:
true
)
...
...
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