Allow to filter vulnerabilities by image name on the project dashboard - Frontend

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Main issue

This is the frontend part for #215467 (closed)

Proposal

Here's what we want to do as part of this issue:

  • Extend the Security Dashboard filters to support a complex options structure in the Report type filter
    • The Container Scanning option will have optional child options to make it possible to filter vulnerabilities by specific scanned images
    • This should be implemented using the upcoming GlFormCheckboxTree component: gitlab-ui!1269 (merged)
  • Properly parse API responses and format API requests to support the new JSON structure (to be agreed upon with backend)
    • Note: there is some work being done to switch from REST to GraphQL in the Security Dashboard which might affect how we go about addressing this issue
  • Update the documentation to showcase the options nesting in the dropdown filter

all

/cc @nmccorrison

Edited by 🤖 GitLab Bot 🤖