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
1d0b0975
Commit
1d0b0975
authored
Jul 21, 2020
by
Alexander Turinske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add check for empty identifiers array
- add additional test data for this case
parent
8eaed8ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
ee/app/assets/javascripts/security_dashboard/components/vulnerability_list.vue
...ipts/security_dashboard/components/vulnerability_list.vue
+4
-1
ee/spec/frontend/security_dashboard/components/mock_data.js
ee/spec/frontend/security_dashboard/components/mock_data.js
+1
-0
No files found.
ee/app/assets/javascripts/security_dashboard/components/vulnerability_list.vue
View file @
1d0b0975
...
...
@@ -211,6 +211,9 @@ export default {
return
acc
;
},
{});
},
shouldShowExtraIdentifierCount
(
identifiers
)
{
return
identifiers
?.
length
>
1
;
},
shouldShowVulnerabilityPath
(
item
)
{
return
Boolean
(
item
.
location
.
image
||
item
.
location
.
file
);
},
...
...
@@ -338,7 +341,7 @@ export default {
{{
primaryIdentifier
(
item
.
identifiers
)
}}
</div>
<div
v-if=
"
e
xtraIdentifierCount(item.identifiers)"
v-if=
"
shouldShowE
xtraIdentifierCount(item.identifiers)"
data-testid=
"vulnerability-more-identifiers"
class=
"gl-text-gray-500"
>
...
...
ee/spec/frontend/security_dashboard/components/mock_data.js
View file @
1d0b0975
...
...
@@ -51,6 +51,7 @@ export const generateVulnerabilities = () => [
},
{
id
:
'
id_2
'
,
identifiers
:
[],
title
:
'
Vulnerability 2
'
,
severity
:
'
high
'
,
state
:
'
opened
'
,
...
...
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