Allow users to reset all selections

What does this MR do and why?

Allow users to reset all selections

  • create reset all button
  • sort days of the month in order
  • update tests

Changelog: added

EE: true

References

Screenshots or screen recordings

Dropdown Before After
Weekly image image
Monthly image image

How to set up and validate locally

  1. Upload a GitLab Ultimate license
  2. Enable the feature flag via terminal or http://gdk.test:3443/rails/features
echo "Feature.enable(:scheduled_pipeline_execution_policies)" | rails c
  1. Navigate to the security policy project (SPP) and add experimental features to the configuration with the enabled: true flag
experiments:
  pipeline_execution_schedule_policy:
    enabled: true
  1. Navigate to a project => Secure => Policies => Edit policy project => Link SPP
  2. Navigate to a project => Secure => Policies => New policy => Pipeline execution policy => "schedule a new"
  3. Switch the cadence to "Weekly"
  4. Verify the days dropdown has a reset all button
  5. Switch the cadence to "Monthly"
  6. Verify the days dropdown has a reset all button

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 #536087 (closed)

Edited by Alexander Turinske

Merge request reports

Loading