Pass file to security training api
What does this MR do and why?
This MR adds support to
- Update the Vulnerability Training Component to call the security training API with a
filename
parameter from the prop if it exists. - Pass the
file
to the vulnerability details page - Pass the
file
to the vulnerability modal page (follow-up issue > #360719 (closed))
Screenshots or screen recordings
There is no UI/UX change with this MR.
How to set up and validate locally
- Navigate to the Vulnerability report
- Click on a vulnerability that is of the type of
CWE
to go to the vulnerability details page - If the vulnerability has a file, it will be included in the API request
- If the vulnerability does not have a file, it will NOT be included in the API request
Has file | No file |
---|---|
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 #356285 (closed)
Edited by Samantha Ming