Commit 273f8268 authored by Michał Zając's avatar Michał Zając

Expose additional fields in VulnerabilityEntity

parent 428f35cc
......@@ -11,7 +11,10 @@ class VulnerabilityEntity < Grape::Entity
:report_type,
:resolved_on_default_branch,
:project_default_branch,
:resolved_at,
:resolved_by_id,
:dismissed_at,
:dismissed_by_id,
:confirmed_at,
:confirmed_by_id
end
......@@ -19,8 +19,11 @@ describe VulnerabilityEntity do
report_type: vulnerability.report_type,
resolved_on_default_branch: vulnerability.resolved_on_default_branch,
project_default_branch: vulnerability.project_default_branch,
resolved_at: vulnerability.resolved_at,
resolved_by_id: vulnerability.resolved_by_id,
dismissed_at: vulnerability.dismissed_at,
dismissed_by_id: vulnerability.dismissed_by_id,
confirmed_at: vulnerability.confirmed_at,
confirmed_by_id: vulnerability.confirmed_by_id
)
end
......
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