Skip to content

Creates new on-demand scans routes

Paul Gascou-Vaillancourt requested to merge 295240-saved-scans-routes into master

What does this MR do?

This creates two new routes to access the On-demand scans form: new and edit. These new routes will be used as part of the upcoming Saved scans feature.

This also creates the dast_saved_scans feature flag.

When the feature flag is enabled, the Security & Compliance > On-demand scans nav item points to the new route.

In a follow-up issue, new fields will be added to the On-demand scans form (and hidden behind the feature flag).

The edit route will remain inaccessible via the navigation items until the edit mode is implemented (#295242 (closed)).

How to test this?

  1. The current route should still be accessible at /:namespace/:project/-/on_demand_scans
  2. Enable the feature flag:
echo "Feature.enable(:dast_saved_scans)" | rails c
  1. Navigate to the new route at /:namespace/:project/-/on_demand_scans/new.
  2. Navigate to the edit route at /:namespace/:project/-/on_demand_scans/:id/edit, where :id can be anything (validation will be added in #295242 (closed)).

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #295240 (closed)

Edited by Paul Gascou-Vaillancourt

Merge request reports