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
273f8268
Commit
273f8268
authored
Apr 08, 2020
by
Michał Zając
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose additional fields in VulnerabilityEntity
parent
428f35cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
ee/app/serializers/vulnerability_entity.rb
ee/app/serializers/vulnerability_entity.rb
+3
-0
ee/spec/serializers/vulnerability_entity_spec.rb
ee/spec/serializers/vulnerability_entity_spec.rb
+3
-0
No files found.
ee/app/serializers/vulnerability_entity.rb
View file @
273f8268
...
@@ -11,7 +11,10 @@ class VulnerabilityEntity < Grape::Entity
...
@@ -11,7 +11,10 @@ class VulnerabilityEntity < Grape::Entity
:report_type
,
:report_type
,
:resolved_on_default_branch
,
:resolved_on_default_branch
,
:project_default_branch
,
:project_default_branch
,
:resolved_at
,
:resolved_by_id
,
:resolved_by_id
,
:dismissed_at
,
:dismissed_by_id
,
:dismissed_by_id
,
:confirmed_at
,
:confirmed_by_id
:confirmed_by_id
end
end
ee/spec/serializers/vulnerability_entity_spec.rb
View file @
273f8268
...
@@ -19,8 +19,11 @@ describe VulnerabilityEntity do
...
@@ -19,8 +19,11 @@ describe VulnerabilityEntity do
report_type:
vulnerability
.
report_type
,
report_type:
vulnerability
.
report_type
,
resolved_on_default_branch:
vulnerability
.
resolved_on_default_branch
,
resolved_on_default_branch:
vulnerability
.
resolved_on_default_branch
,
project_default_branch:
vulnerability
.
project_default_branch
,
project_default_branch:
vulnerability
.
project_default_branch
,
resolved_at:
vulnerability
.
resolved_at
,
resolved_by_id:
vulnerability
.
resolved_by_id
,
resolved_by_id:
vulnerability
.
resolved_by_id
,
dismissed_at:
vulnerability
.
dismissed_at
,
dismissed_by_id:
vulnerability
.
dismissed_by_id
,
dismissed_by_id:
vulnerability
.
dismissed_by_id
,
confirmed_at:
vulnerability
.
confirmed_at
,
confirmed_by_id:
vulnerability
.
confirmed_by_id
confirmed_by_id:
vulnerability
.
confirmed_by_id
)
)
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