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
044e918b
Commit
044e918b
authored
Oct 11, 2018
by
Jasper Maes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rails5: fix VulnerabilitySummaryEntity
parent
1e6286b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
ee/app/serializers/vulnerability_summary_entity.rb
ee/app/serializers/vulnerability_summary_entity.rb
+2
-1
ee/changelogs/unreleased/rails5-fix-vulnerabilities-controller-spec.yml
...unreleased/rails5-fix-vulnerabilities-controller-spec.yml
+5
-0
No files found.
ee/app/serializers/vulnerability_summary_entity.rb
View file @
044e918b
...
...
@@ -2,10 +2,11 @@
class
VulnerabilitySummaryEntity
<
Grape
::
Entity
Vulnerabilities
::
Occurrence
::
REPORT_TYPES
.
each
do
|
report_type_name
,
report_type
|
report_key
=
Gitlab
.
rails5?
?
report_type_name
:
report_type
expose
report_type_name
do
Vulnerabilities
::
Occurrence
::
LEVELS
.
each
do
|
severity_name
,
severity
|
expose
severity_name
do
|
group
|
grouped_vulnerabilities
[[
report_
type
,
severity
]]
||
0
grouped_vulnerabilities
[[
report_
key
,
severity
]]
||
0
end
end
end
...
...
ee/changelogs/unreleased/rails5-fix-vulnerabilities-controller-spec.yml
0 → 100644
View file @
044e918b
---
title
:
'
Rails5:
fix
VulnerabilitySummaryEntity'
merge_request
:
7893
author
:
Jasper Maes
type
:
other
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