Skip to content

Add length validations for error tracking errors and events

Peter Leitzen requested to merge pl-error-tracking-length-validation into master

What does this MR do and why?

This MR adds missing model validations for errors and events. These validations mirror the actual database constraints and prevent exceptions like ActiveRecord::StatementInvalid: PG::CheckViolation and raise ActiveRecord::RecordInvalid instead.

Contributes to #345168 (closed).

MR acceptance checklist

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

Edited by Peter Leitzen

Merge request reports