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
b17f8920
Commit
b17f8920
authored
Dec 24, 2019
by
nmilojevic1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add changelog for preloading project
parent
c02a79a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
changelogs/unreleased/39113-project-user-grafana-integrations.yml
...gs/unreleased/39113-project-user-grafana-integrations.yml
+5
-0
lib/gitlab/import_export/relation_factory.rb
lib/gitlab/import_export/relation_factory.rb
+2
-0
No files found.
changelogs/unreleased/39113-project-user-grafana-integrations.yml
0 → 100644
View file @
b17f8920
---
title
:
Preload project, user and group to reuse objects
merge_request
:
21853
author
:
type
:
performance
lib/gitlab/import_export/relation_factory.rb
View file @
b17f8920
...
...
@@ -131,6 +131,8 @@ module Gitlab
end
def
preload_keys
(
object
,
references
,
value
)
return
object
unless
value
references
.
each
do
|
key
|
attribute
=
key
.
delete_suffix
(
'_id'
).
to_sym
next
unless
object
.
respond_to?
(
key
)
&&
object
.
respond_to?
(
attribute
)
...
...
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