Skip to content

Migrate form errors in Push rules to Pajamas

Rajat Jain requested to merge 364968-push-rules-alert into master

What does this MR do and why?

Fixes #364968 (closed)

Migrate the existing form error in push_rules settings to be Pajamas complaint.

Screenshots or screen recordings

before after
before after

How to set up and validate locally

  1. Visit project settings > repository > push rules
  2. Open the file in editor ee/app/views/projects/push_rules/_index.html.haml
  3. To trigger an error, add this line on the top - @push_rule.errors.add(:base, "Something went wrong")
  4. View the error on the settings page.

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

Merge request reports

Loading