Make DAST scan schedules editable
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 |
---|---|
How to set up and validate locally
Example below:
- Enable the feature flag.
Feature.enable(:dast_on_demand_scans_scheduler)
- 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. - Edit any scan that has a schedule defined.