DAST Site Validation - Validation failed alert - Frontend
- backend counterpart: #322607 (closed)
-
When loading the DAST profiles page, if the dast_failed_site_validations
feature flag is enabled, trigger thedastSiteValidations
query with thestatus
filter set toFAILED_VALIDATION
to retrieve the list of failed site validations for the project.-
Each normalized URL from the response should be parsed with the URL
interface so that we can use thehref
property for the rest of the logic.
-
-
For each failed validation, display an alert that includes: -
The site's normalized URL. -
A link to retry the validation. -
A dismiss button that fires the dastSiteValidationRevoke
for the given normalized URL.
-
Specs:
-
dastSiteValidations
is triggered. -
An alert is displayed for each failed validation. -
Each alert contains the normalized URL. -
Clicking on Retry validation
opens the validation modal. -
Clicking on dismiss hides the alert and fires the dastSiteValidationRevoke
mutation. -
dastSiteValidations
is not triggered if the feature flag is disabled.
Edited by Paul Gascou-Vaillancourt