Skip to content

Create on-demand scans index page

What does this MR do and why?

This creates the empty on-demand DAST scans empty page. In this first iteration, we're only making the page available at /:namespace/:project/on_demand_scans, and we're only showing the empty state for now.

This is being controlled by the dast_view_scans feature flag. When the feature flag is disabled, we redirect to /:namespace/:project/on_demand_scans/new, which is the on-demand scans form. We're doing this because, in the current state, the index page behaves exactly like the new page, so this preserves the current behavior for users that have the feature flag off.

Screenshots or screen recordings

Before After
Screen_Shot_2021-10-06_at_2.39.15_PM Screen_Shot_2021-10-06_at_2.36.16_PM

How to set up and validate locally

  1. Enable the feature flag
    echo "Feature.enable(:dast_view_scans)" | rails c
  2. Visit the 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 #341356 (closed)

Edited by Paul Gascou-Vaillancourt

Merge request reports