Add data helper to format scanner query
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 |
---|---|
- The vulnerability scanners data is grouped by "reportType"
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Samantha Ming