-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Message error for required fields #1731
Comments
I am wondering whether I tend to think (b), because we are lacking a style guide for error messages in Parse Server and now Dashboard tries to correct this, but it seems like addressing the symptom instead of the issue. Error messages appear in a variety of forms:
And in general, the wording comes in all shapes and forms. Any error code-dependent logic we implement now into dashboard is just complicating the issue I think. The error message Similar to the wording guideline we have for Security Check. For example for the message above:
|
In the current implementation, I see in the dashboard The first letter of the all the error messages is currently being capitalised. |
Would you want to tackle (b)? It is surely quite an undertaking, because often tests are also verifying the specific error message. It could also cause breaking changes for developers who parse the error message (which we should really discourage). But I think fixing the error messages would be a sustainable fix and improve the quality of error messages in Parse Server for developers in general. |
Implementing (b) would make sense as it'll delegate the responsibility to show an error dialog and the server to send reformatted error strings. |
So we can close this issue here in the dashboard repo? |
I think there's already existing formatting in the dashboard as well which would need to be removed. |
I have made a PR for server parse-community/parse-server#7446 and the dashboard #1737 |
I'm not sure we should introduce a change in capitalization for a single error message. Not only may this be a breaking change for some deployments, but it is also missing a broader concept of how error messages should be styled across the server. See #1731 (comment). |
I've made a new update to the PR for the server parse-community/parse-server#7446 (comment). This PR should remove formatting for frontend. In the master, there's existing formatting for field required error message. |
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Dashboard!
You're running version >=1.0.23 of Parse Dashboard.
You're running version >=2.3.2 of Parse Server.
You've searched through existing issues. Chances are that your issue has been reported or resolved before.
Steps to reproduce
If I have a field called "test", the message error shows "Test is required" with the letter T in uppercase (see screenshot)
The text was updated successfully, but these errors were encountered: