Commit 1deccea4 authored by samdbeckham's avatar samdbeckham

Updates the filter ids to use strings

parent 207d49da
......@@ -43,6 +43,7 @@ export default {
},
computed: {
...mapState('vulnerabilities', ['modal']),
...mapGetters('filters', ['activeFilters']),
},
created() {
this.setVulnerabilitiesEndpoint(this.vulnerabilitiesEndpoint);
......
......@@ -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,
},
],
......
import { sum } from '~/lib/utils/number_utils';
export const dashboardError = state =>
state.errorLoadingVulnerabilities && state.errorLoadingVulnerabilitiesCount;
export const dashboardListError = state =>
......
......@@ -682,7 +682,7 @@ describe('revert vulnerability dismissal', () => {
});
});
describe('vulnerabiliites history actions', () => {
describe('vulnerabilities history actions', () => {
const data = mockDataVulnerabilitiesHistory;
const params = { filters: { severity: ['critical'] } };
const filteredData = mockDataVulnerabilitiesHistory.critical;
......
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