Skip to content

Render scans that don't have a DAST profile anymore

What does this MR do and why?

This fixes a bug that would prevent the on-demand scans from loading if it contained scans that don't have a dastProfile attached anymore. For those scans, we render an empty Name and Target cell.

Note: This does not contain a changelog entry because it fixes a bug that hasn't been released yet.

Screenshots or screen recordings

Before After
Screen_Shot_2021-12-08_at_10.27.12_AM Screen_Shot_2021-12-08_at_10.25.41_AM

How to set up and validate locally

  1. Run at least one on-demand scan then delete the corresponding dastProfile.
  2. Visit the on-demand scans index page at /:namespace/:project/-/on_demand_scans

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 #347381 (closed)

Edited by Paul Gascou-Vaillancourt

Merge request reports