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
48156759
Commit
48156759
authored
Nov 30, 2020
by
Tetiana Chupryna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preload security_setting to fix test
parent
431eee91
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
app/serializers/pipeline_serializer.rb
app/serializers/pipeline_serializer.rb
+2
-0
ee/app/serializers/ee/pipeline_serializer.rb
ee/app/serializers/ee/pipeline_serializer.rb
+17
-0
No files found.
app/serializers/pipeline_serializer.rb
View file @
48156759
...
@@ -75,3 +75,5 @@ class PipelineSerializer < BaseSerializer
...
@@ -75,3 +75,5 @@ class PipelineSerializer < BaseSerializer
]
]
end
end
end
end
PipelineSerializer
.
prepend_if_ee
(
'EE::PipelineSerializer'
)
ee/app/serializers/ee/pipeline_serializer.rb
0 → 100644
View file @
48156759
# frozen_string_literal: true
module
EE
module
PipelineSerializer
extend
ActiveSupport
::
Concern
private
def
preloaded_relations
relations
=
super
project_relation
=
relations
.
detect
{
|
item
|
item
.
is_a?
(
Hash
)
}
project_relation
[
:project
].
push
(
:security_setting
)
relations
end
end
end
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