Skip to content
GitLab
Next
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Get free trial
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #228740

Use GraphQL for the vulnerability state dropdown

When viewing an individual vulnerability on the security dashboard, there is a dropdown that lets the user change the status of the vulnerability:

ksnip_20200914-223513

Currently, changing the status will call a REST endpoint. We need to use GraphQL instead.

See Design Issue and parent Epic for details.

Implementation Plan

  • Change changeVulnerabilityState() and refreshVulnerability() in ee/app/assets/javascripts/vulnerabilities/components/header.vue to use GraphQL. refreshVulnerability() is called from ee/app/assets/javascripts/vulnerabilities/components/vulnerability.vue, we should look into whether we still need it after switching to GraphQL.
Edited Sep 15, 2020 by Daniel Tian
Assignee
Assign to
Time tracking