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
1deccea4
Commit
1deccea4
authored
Dec 18, 2018
by
samdbeckham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates the filter ids to use strings
parent
207d49da
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
11 deletions
+10
-11
ee/app/assets/javascripts/security_dashboard/components/app.vue
.../assets/javascripts/security_dashboard/components/app.vue
+1
-0
ee/app/assets/javascripts/security_dashboard/store/modules/filters/state.js
...scripts/security_dashboard/store/modules/filters/state.js
+8
-8
ee/app/assets/javascripts/security_dashboard/store/modules/vulnerabilities/getters.js
...curity_dashboard/store/modules/vulnerabilities/getters.js
+0
-2
ee/spec/javascripts/security_dashboard/store/vulnerabilities/actions_spec.js
.../security_dashboard/store/vulnerabilities/actions_spec.js
+1
-1
No files found.
ee/app/assets/javascripts/security_dashboard/components/app.vue
View file @
1deccea4
...
...
@@ -43,6 +43,7 @@ export default {
},
computed
:
{
...
mapState
(
'
vulnerabilities
'
,
[
'
modal
'
]),
...
mapGetters
(
'
filters
'
,
[
'
activeFilters
'
]),
},
created
()
{
this
.
setVulnerabilitiesEndpoint
(
this
.
vulnerabilitiesEndpoint
);
...
...
ee/app/assets/javascripts/security_dashboard/store/modules/filters/state.js
View file @
1deccea4
...
...
@@ -11,42 +11,42 @@ export default () => ({
},
{
name
:
'
Critical
'
,
id
:
7
,
id
:
'
critical
'
,
selected
:
false
,
},
{
name
:
'
High
'
,
id
:
6
,
id
:
'
high
'
,
selected
:
false
,
},
{
name
:
'
Medium
'
,
id
:
5
,
id
:
'
medium
'
,
selected
:
false
,
},
{
name
:
'
Low
'
,
id
:
4
,
id
:
'
low
'
,
selected
:
false
,
},
{
name
:
'
Unknown
'
,
id
:
2
,
id
:
'
unknown
'
,
selected
:
false
,
},
{
name
:
'
Experimental
'
,
id
:
3
,
id
:
'
experimental
'
,
selected
:
false
,
},
{
name
:
'
Ignore
'
,
id
:
1
,
id
:
'
ignore
'
,
selected
:
false
,
},
{
name
:
'
Undefined
'
,
id
:
0
,
id
:
'
undefined
'
,
selected
:
false
,
},
],
...
...
ee/app/assets/javascripts/security_dashboard/store/modules/vulnerabilities/getters.js
View file @
1deccea4
import
{
sum
}
from
'
~/lib/utils/number_utils
'
;
export
const
dashboardError
=
state
=>
state
.
errorLoadingVulnerabilities
&&
state
.
errorLoadingVulnerabilitiesCount
;
export
const
dashboardListError
=
state
=>
...
...
ee/spec/javascripts/security_dashboard/store/vulnerabilities/actions_spec.js
View file @
1deccea4
...
...
@@ -682,7 +682,7 @@ describe('revert vulnerability dismissal', () => {
});
});
describe
(
'
vulnerabili
it
es history actions
'
,
()
=>
{
describe
(
'
vulnerabili
ti
es history actions
'
,
()
=>
{
const
data
=
mockDataVulnerabilitiesHistory
;
const
params
=
{
filters
:
{
severity
:
[
'
critical
'
]
}
};
const
filteredData
=
mockDataVulnerabilitiesHistory
.
critical
;
...
...
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