Skip to content

Make DAST scan schedules editable

Paul Gascou-Vaillancourt requested to merge edit-scan-schedules into master

What does this MR do and why?

This makes DAST scan schedules editable by properly passing the data down to the HAML view from the controller.

This also slightly refactors how data is passed to the DAST profiles list by moving the dataset payload's generation to a dedicated helper.

Screenshots or screen recordings

Before After
Screen_Shot_2021-09-08_at_6.53.46_PM Screen_Shot_2021-09-08_at_6.56.00_PM

How to set up and validate locally

Example below:

  1. Enable the feature flag.
    Feature.enable(:dast_on_demand_scans_scheduler)
  2. Visit the DAST profiles list at /:namespace/:project/-/security/configuration/dast_scans#saved-scans. Make sure you have at least one scan with a schedule, create one otherwise.
  3. Edit any scan that has a schedule defined.

Re #340430 (closed)

Merge request reports