Skip to content

Add data helper to format scanner query

Samantha Ming requested to merge add-tool-dropdown-helper into master

What does this MR do and why?

This MR introduces a helper to format the GraphQL response. To maintain a smaller MR, this implementation is split iteratively like so:

MR Changes
This MR Add helper to format GraphQL response
!93600 (merged) Populate dropdown with GraphQL response
GraphQL Response Formatted
2022-08-03_at_10.39_PM image
  1. The vulnerability scanners data is grouped by "reportType"
  2. And then formatted like this:
[
  {
    reportType: '...', 
    id: '...',
    name: '...', // This is the human-friendly report type name that is displayed in the dropdown
    scannerIds: ['id', 'id', 'id'],
  },
  {...}
]

Screenshots or screen recordings

There is no UI/UX change with this MR

How to set up and validate locally

n/a

MR acceptance checklist

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

Edited by Samantha Ming

Merge request reports

Loading