Skip to content

Pass file to security training api

Samantha Ming requested to merge 356285-training-url-file-type into master

What does this MR do and why?

This MR adds support to

  1. Update the Vulnerability Training Component to call the security training API with a filename parameter from the prop if it exists.
  2. Pass the file to the vulnerability details page
  3. Pass the file to the vulnerability modal page (follow-up issue > #360719 (closed))

2022-06-20_at_3.55_PM

Screenshots or screen recordings

There is no UI/UX change with this MR.

How to set up and validate locally

  1. Navigate to the Vulnerability report
  2. Click on a vulnerability that is of the type of CWE to go to the vulnerability details page
  3. If the vulnerability has a file, it will be included in the API request
  4. If the vulnerability does not have a file, it will NOT be included in the API request
Has file No file
2022-06-20_at_10.01_PM 2022-06-20_at_10.02_PM

MR acceptance checklist

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

Related to #356285 (closed)

Edited by Samantha Ming

Merge request reports

Loading