FIX: Bump reject_reason limit for reviewables to 2000 characters (#27507)

Followup 783c935dcb7f114c206da4fe9c46c91ca5c687f3

Some admins were finding that the limit introduced above was
too short especially when sending an email to rejected users.
This commit bumps the limit from 500 to 2000 and also fixes
an issue where the friendly error message was not shown in
the browser.

c.f. https://meta.discourse.org/t/500-character-reject-reason-is-too-small-a-limit/291884
This commit is contained in:
Martin Brennan
2024-06-18 15:49:58 +10:00
committed by GitHub
parent 006169f782
commit 6b872c4c53
4 changed files with 22 additions and 2 deletions

View File

@ -2,7 +2,7 @@
RSpec.describe Reviewable, type: :model do
describe "Validations" do
it { is_expected.to validate_length_of(:reject_reason).is_at_most(500) }
it { is_expected.to validate_length_of(:reject_reason).is_at_most(2000) }
end
describe ".create" do