Add validation for length of push rules regex fields
What does this MR do and why?
Contributes to #407722 (closed)
Problem
We don't verify length of the regex related fields for push rules.
Solution
Add Rails based validation to return a human-friendly error for values above the limit.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vasilii Iakliushin