Security dashboards: Return [ – ] for metrics not being filtered on instead of [ 0 ]

Problem

When users of the security dashboard use filtering, the metrics not included in that filtering return 0. This may mislead users to believe that there are 0 vulnerabilities for a given severity when in fact there are not.

Example:

No filters applied Critical severity filter applied
Screen_Shot_2019-06-27_at_11.23.50_AM Screen_Shot_2019-06-27_at_11.17.12_AM

Solution:

When filtering is applied show an – en dash in the severity metrics instead of 0

Critical severity filter applied using [–] 
Screen_Shot_2019-06-27_at_11.16.51_AM
Assignee Loading
Time tracking Loading