DAST On-demand site profile edit page shows error banner
Summary
When editing an existing DAST on-demand site profile a error-banner is displayed above the form.
Steps to reproduce
- Visit https://gitlab.com/gitlab-examples/security/security-reports/-/on_demand_scans/profiles/dast_site_profiles/109/edit
- Wait until banner shows
Example Project
https://gitlab.com/gitlab-examples/security/security-reports
What is the current bug behavior?
An error banner is showing
What is the expected correct behavior?
No banner should be visible
Relevant logs and/or screenshots
Possible fixes
The error happens because when editing a profile we are sending a request to a GraphQL endpoint that does not yet exist. This should be behind a feature flag to prevent the request from being fired.