Populate project tools dropdown from GraphQL query
What does this MR do and why?
This MR is part of the vulnerability tool filter migration to GraphQL. The Project, Group, and Instance views will use a shared component and populate the dropdown menu items from the vulnerability scanner GraphQL query. Please see the Epic for details > Refactor and consolidate all "tool" dropdowns t... (&8407 - closed)
In this MR, it queries the scanners and populates the dropdown from the response for the PROJECT view only (the other views: group, and instance will be added in a later MR). To maintain a smaller MR, this implementation is split iteratively like so:
MR | Changes |
---|---|
!94132 (merged) | Add helper to format GraphQL response |
This MR | Populate dropdown with GraphQL response |
Screenshots or screen recordings
How to set up and validate locally
- Enable the FF
echo "Feature.enable(:refactor_vulnerability_tool_filter)" | rails c
- Project view (Project > Security & Compliance > Vulnerability report)
- It displays the scanners returned from GraphQL's vulnerability scanner
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.
Related to #368255 (closed)