For the securityReportFindings GraphQL resource, use specific type for severity and reportType filters instead of strings

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

For the securityReportFindings GraphQL resource, which is used to get the findings for a pipeline, the severity and reportType filters are String! arguments:

ksnip_20220315-001830

However, for vulnerabilities, they are specific types:

ksnip_20220315-002138 ksnip_20220315-002240

For consistency, securityReportFindings should also be using the specific types. This affects frontend because we need to add special logic to handle the pipeline report filtering.

From Align GraphQL arguments for `Pipeline.securityR... (#362578 - closed):

This inconsistency has caused the frontend to have to work around it: https://gitlab.com/gitlab-org/gitlab/blob/master/ee/app/assets/javascripts/security_dashboard/components/pipeline/pipeline_vulnerability_report.vue#L21-30

Edited by 🤖 GitLab Bot 🤖