Skip to content

Improve code readability and layout of vulnerability report filters

Daniel Tian requested to merge 284471-refactor-vulnerability-report-filters into master

What does this MR do?

On the vulnerability report page (we have 3 different places where it's shown):

Project level Group level Instance level
vulnerability_report_project vulnerability_report_group vulnerability_report_instance

There are filter dropdowns that will filter the vulnerability list:

ksnip_20210409-025705

This MR does the following:

  1. Each dropdown has an option count threshold that, if exceeded, will show a search box. The logic for this has been improved.

  2. Improved the space usage of the filters to avoid text truncation.

  3. Changed from using <component :is="componentType">, to using the actual component.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Daniel Tian

Merge request reports