FE: Users cannot update a Scan Execution Policy's name
Summary
Once a scan execution policy has been created, a user cannot update the policy's name
Steps to reproduce
- Follow the scan execution creation snippet to create some scan execution policies
- Navigate to
Security & Compliance
=>Policies
- Create a new scan execution policy
- Select the policy and click
Edit policy
in the sidebar - Modify the name and click
Create merge request
Example Project
https://staging.gitlab.com/defend-team-test/cnp-alert-demo/-/security/policies
What is the current bug behavior?
The user is navigated to the merge request where the name has been changed
What is the expected correct behavior?
The user gets a Policy does not exist
error on the page
Relevant logs and/or screenshots
Page | Screenshot |
---|---|
gif | |
Request Data | |
Request Response |
Possible fixes
-
frontend Update frontend code to send name
to the graphql mutation
Edited by Sashi Kumar Kumaresan