Adjust VulnerabilitiesFinderResolver to accept only dismissal reason
What does this MR do and why?
Adjust VulnerabilitiesFinderResolver to accept only dismissal reason
Related to #421568 (closed)
How to set up and validate locally
echo "Feature.enable(:expose_dismissal_reason)" | rails c
- Go to
flightjs/Flight
project. Dismiss some Vulnerabilities withMitigating control
andFalse positive
- Go to
/-/graphql-explorer
and execute the query 1, it should return ALL vulnerabilities git switch 421568-bug-list-doesn-t-match-the-filter
- Go to
/-/graphql-explorer
and re-execute the query, it should return only relevant Vulnerabilities
GraphQL query
query projectVulnerabilities($fullPath: ID!, $state: [VulnerabilityState!], $dismissalReason: [VulnerabilityDismissalReason!]) {
project(fullPath: $fullPath) {
id
vulnerabilities(state: $state, dismissalReason: $dismissalReason) {
edges {
node {
id
state
dismissalReason
}
}
}
}
}
{
"fullPath": "flightjs/Flight",
"state": [
"CONFIRMED"
],
"dismissalReason": [
"MITIGATING_CONTROL",
"FALSE_POSITIVE"
]
}
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.