-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
refactor: error messages reformatted and moved into own files (#1731) #7446
base: alpha
Are you sure you want to change the base?
Conversation
Not sure about this PR, see 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 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. |
That's certainly a nice consolidation!
|
Codecov Report
@@ Coverage Diff @@
## alpha #7446 +/- ##
==========================================
- Coverage 93.98% 93.96% -0.02%
==========================================
Files 183 184 +1
Lines 13655 13695 +40
==========================================
+ Hits 12833 12868 +35
- Misses 822 827 +5
Continue to review full report at Codecov.
|
@fn-faisal Is this ready for review? |
@mtrezza Yes, it's ready for review. |
Thanks for opening this pull request!
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
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.
|
@fn-faisal Apologies for the delay, I should look over this over the next days, it's quite a big (and great ;) PR. |
@mtrezza NP 👍 . I've gone through the requested changes have updated the PR as requested. Please let me know if any other updates are required. |
@mtrezza I have resolved some of the merge conflicts for the PR. Please let me know of any required updates for the PR once you review it. |
Thanks @fn-faisal, I'll review in the coming days, apologies for the delay. |
@mtrezza ok, sounds good. thanks. |
What is pending here @mtrezza? |
It needs a rebase and a complete review of the suggested changes. |
Hi guys, |
Thanks for the heads up, I guess we can keep it open for someone else to continue it. |
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)