-
-
Notifications
You must be signed in to change notification settings - Fork 827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return a more helpful server side validation message #25823
base: master
Are you sure you want to change the base?
Return a more helpful server side validation message #25823
Conversation
(Standard links)
|
@MegaphoneJon test fails related |
test this please |
476297f
to
f72219d
Compare
jenkins test this please |
@MegaphoneJon Looks like tests need updating for the more specific validation messages. |
@eileenmcnaughton @mattwire I looked at this yesterday - and what I decided is that these errors need to be cleaned up in conjunction with this. "Illegal value for test_af_fields: contact_ref." is more helpful than "Validation Error" but I think it'd be far better to have a more user-friendly message. |
@MegaphoneJon is label cleanup something you'd like help with ? |
I never volunteered to clean up the labels :) But if someone does, I'll update the affected tests to match the new labels. I'll also say that we shouldn't get too hung up on this, because I think it'd be valuable to have more or less verbose messages based on a debug mode. Form builders and end users have different needs here. |
Overview
Presently, a FormBuilder form that fails server-side validation doesn't give a helpful message to the user. This makes it hard to fix their error.
Before
After
Comments
See also #25533.