Enable submit button for policy editor
What does this MR do and why?
According to pajamas guidelines, submit button on forms should always be enabled
This MR enables submit button for:
- Pipeline execution policy
- Scan execution policy
- Approval policy
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Description | UI |
---|---|
Pipeline execution | |
Scan execution | |
Approval policy |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Enable feature flag
Feature.enable(:pipeline_execution_policy_type)
- Go to group/project
- Secure -> Policies -> New policy
- Try every policy type, make sure submit button is enabled by default and stay enabled on any action
- When trying to submit empty form ,you see the validation
- You can also try with existing policies
-
enabled
-
enabled
-
Related to #469200 (closed)