You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a PR regarding the below issue. The formatting has been added to the server. I'll update the existing PR for the dashboard to exclude formatting of response string from dashboard. parse-community/parse-dashboard#1731 (comment)
I have updated this PR to refactor error messages from server into their own files. This way, the error messages are easier to update. I have also updated the error message for the required fields.
mtrezza
added
type:bug
Impaired feature or lacking behavior that is likely assumed
and removed
type:bug
Impaired feature or lacking behavior that is likely assumed
labels
Jul 11, 2021
@mtrezza For this one, I refactored the messages in the a separate file and refactored the messages. I wasn't too sure about the changes required for this issue but from what I understood, I refactored the message strings in their own file and referenced them in the error responses.
I didn't see a support for locale strings and wasn't sure if multiple locales were supported so I made a new file for locale string.
There are still some error messages that should begin uppercase, I think, for example 'bad or missing username'
Could you rename the message.js path to be more specific, for example /Errors/messages.js? These should actually go into the Parse JS SDK Parse.Error object, but that is so complicated at the moment that we can leave this here for now. The errors will hopefully go into their own repo in the future, to be able to reference them from all other SDKs as well.
For the tests to pass, they should also use the error references.
❌ Please edit your post and use the provided template when creating a new pull request. This helps everyone to understand your post better and asks for essential information to quicker review the pull request.
mtrezza
changed the title
refactor: error message reformatted and moved into own files (#1731)
refactor: error messages reformatted and moved into own files (#1731)
Sep 20, 2021
I see that some error messages are ending with a period (.), others are not. Should all end with a period or none? I would think that all should end with period, because it makes the end of the message and it allows to concat another message, if that should be necessary in any case. What do you think?
The reason will be displayed to describe this comment to others. Learn more.
Could you take a look at the previous comments, like #7446 (comment). Maybe you did not see some of the comments because they were folded in the thread. These comments mostly require renaming the error keys, to make it easier to understand what they are used for. It would then also be good if you could sort the error messages alphabetically, so we have a list that is easy to read.
Thanks for the effort, this is quite a large change, so it takes some revisions.
Could you take a look at the previous comments, like #7446 (comment). Maybe you did not see some of the comments because they were folded in the thread. These comments mostly require renaming the error keys, to make it easier to understand what they are used for. It would then also be good if you could sort the error messages alphabetically, so we have a list that is easy to read.
Thanks for the effort, this is quite a large change, so it takes some revisions. @mtrezza
I have gone through the comments and updated the PR.
Hi guys,
I made this PR about a year ago back when I was working at Back4App but as I'm no longer working with them and have moved on to better opportunities, I'm afraid I won't be able to invest time on the open issues anymore. @mtrezza if you'd like, I'm ok with closing this PR or if someone else would like to pick this one up, that's cool too.
Thanks for the heads up, I guess we can keep it open for someone else to continue it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New Pull Request Checklist
Issue Description
Message error for required fields #1731
Related issue: Issue link
Approach
This is a PR regarding the below issue. The formatting has been added to the server. I'll update the existing PR for the dashboard to exclude formatting of response string from dashboard.
parse-community/parse-dashboard#1731 (comment)