Skip to content

Fix GraphQL error for VulnerabilityType

Thiago Figueiró requested to merge fix-vulnerability-graphql-message into master

What does this MR do and why?

As part of #411575 (closed), the finding_message method was removed from Vulnerability.

This was causing an error when requesting the message field in a GraphQL query (#411575 (comment 1404635286)).

This MR fixes the error above, ensuring the field always returns an empty string.

Fix GraphQL error for VulnerabilityType

When using the deprecated message field, an exception was being raised.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

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

Merge request reports

Loading