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
b02ed022
Commit
b02ed022
authored
Mar 26, 2020
by
nmilojevic1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix streaming serializer for meny_each
- Bad merge, method name changed to write_relation_array
parent
cd2a9394
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
lib/gitlab/import_export/json/streaming_serializer.rb
lib/gitlab/import_export/json/streaming_serializer.rb
+6
-4
No files found.
lib/gitlab/import_export/json/streaming_serializer.rb
View file @
b02ed022
...
@@ -69,13 +69,15 @@ module Gitlab
...
@@ -69,13 +69,15 @@ module Gitlab
end
end
def
serialize_many_each
(
key
,
records
,
options
)
def
serialize_many_each
(
key
,
records
,
options
)
enumerator
=
Enumerator
.
new
do
|
items
|
records
.
each
do
|
record
|
records
.
each
do
|
record
|
json
=
Raw
.
new
(
record
.
to_json
(
options
))
items
<<
Raw
.
new
(
record
.
to_json
(
options
))
json_writer
.
append
(
key
,
json
)
end
end
end
end
json_writer
.
write_relation_array
(
@exportable_path
,
key
,
enumerator
)
end
def
serialize_single_relation
(
key
,
record
,
options
)
def
serialize_single_relation
(
key
,
record
,
options
)
json
=
Raw
.
new
(
record
.
to_json
(
options
))
json
=
Raw
.
new
(
record
.
to_json
(
options
))
...
...
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