Skip to content

Update error to show in correct place

Alexander Turinske requested to merge 430943-update-action-alert into master

What does this MR do and why?

Update error to show in correct place

  • move branches errors to top of the page
  • rename components
  • update tests

EE: true

Changelog: changed

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Scenario Screenshot
Approvals error - rule mode a_-_r
Approvals error - yaml mode a_-_y
Branches error - rule mode b_-_r
Branches error - yaml mode b_-_y
Errors Screenshot
Approvals error approval_errors
Branches error branches_error

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Upload a GitLab Ultimate license
  2. Navigate to a project/group => Secure => Policies => New policy => Scan Result Policy
  3. Create a policy with no protected branches selected (e.g. select all protected branches as exceptions)
  4. Attempt to save the policy
  5. Verify the error is at the top of the page
  6. Create a policy with valid branches selected and no approvers selected
  7. Verify the error is by the approvals section
  8. Switch to yaml mode
  9. Verify the error is always at the top

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #430943 (closed)

Merge request reports