Update days property to an array
What does this MR do and why?
Update days property to an array
- the schema says the array of days for the weekly cadence is capitalized
- update schedule form for invalid cadence
- update tests
EE: true
References
Screenshots or screen recordings
| Invalid cadence | Adding a weekly cadence |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Upload a GitLab Ultimate license
- Enable the feature flag via terminal or http://gdk.test:3443/rails/features
echo "Feature.enable(:scheduled_pipeline_execution_policies)" | rails c
- Navigate to a project => Secure => Policies => New policy => Pipeline execution policy => Select "schedule a new"
- Navigate to yaml mode and change
typeto something invalid and navigate back to rule mode - Verify the cadence dropdown shows the placeholder
- Change the cadence to weekly
- Verify the yaml is updated to include
days: - Monday - Verify the policy can be saved
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #526746 (closed)

