Skip to content

Allow filtering Vulnerabilties by dismissal reason

What does this MR do and why?

Allow filtering Vulnerabilties by dismissal reason in GraphQL

Database review

Cold cache: https://postgres.ai/console/gitlab/gitlab-production-tunnel-pg12/sessions/20720/commands/67982

Warm cache: https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/20720/commands/67983

How to set up and validate locally

  1. Make sure you have some Vulnerabilities in a project
  2. Dismiss some of them with different reasons
  3. Execute the following GraphQL query
query {
  project(fullPath: "<PROJECT PATH HERE>") {
    vulnerabilities(dismissalReason: [<DISMISSAL REASONS HERE>]) {
      nodes {
        id
        state
        dismissalReason
      }
    }
  }
}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #411570 (closed)

Edited by Michał Zając

Merge request reports