Commit 044e918b authored by Jasper Maes's avatar Jasper Maes

Rails5: fix VulnerabilitySummaryEntity

parent 1e6286b0
......@@ -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
......
---
title: 'Rails5: fix VulnerabilitySummaryEntity'
merge_request: 7893
author: Jasper Maes
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment