-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2024-05-09] [$250] Standardize Error Periods #38989
Comments
Triggered auto assignment to @NickTooker ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.We need to standardise error periods. What is the root cause of that problem?As an example, if you see the below block, some messages have dot at the end and others don't have it. Lines 222 to 237 in d8361ee
What changes do you think we should make in order to solve the problem?We need to add periods at the end of each message. After change:
Also, we'll need to update the This needs to be done for all error messages, above list is just one of the examples. We can also add new ESlint rule to prevent error messages with a dot at the end. Pseudo code:
This will be added in a new rule created in |
@grgia Can this be made external after confirmation from marketing team? |
Let's standardize on using periods for all error messages please! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Standardize Error Periods What is the root cause of that problem?As mentioned here by @NickTooker , we need to add periods for all the error messages. we can do it for all the error messages here : Lines 222 to 237 in d8361ee
What changes do you think we should make in order to solve the problem?We can add
Similarly, we can do this for
And all the other places in What alternative solutions did you explore? (Optional)N/A |
ProposalUpdated to have only one scenario since the expectation is now defined by the copy team. Earlier my proposal mentioned both scenarios since the expectation was yet to be decided. |
Job added to Upwork: https://www.upwork.com/jobs/~01bae2463fd69274c1 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha ( |
Upwork job price has been updated to $250 |
@getusha only gotcha that comes to mind is how should we approach testing for this? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Standardize Error Periods What is the root cause of that problem?We currently have periods at some places but not everywhere, we need to fix this: Line 243 in 43f8b39
Lines 928 to 932 in 43f8b39
Lines 2493 to 2496 in 43f8b39
Lines 222 to 237 in 43f8b39
Lines 331 to 333 in 43f8b39
Lines 577 to 578 in 43f8b39
Lines 683 to 688 in 43f8b39
Lines 928 to 932 in 43f8b39
Lines 968 to 969 in 43f8b39
Lines 983 to 984 in 43f8b39
Lines 997 to 999 in 43f8b39
Lines 1258 to 1261 in 43f8b39
Lines 1294 to 1295 in 43f8b39
Lines 1425 to 1427 in 43f8b39
Lines 1439 to 1440 in 43f8b39
Line 1486 in 43f8b39
Line 1515 in 43f8b39
Lines 1721 to 1722 in 43f8b39
Line 1729 in 43f8b39
Lines 1995 to 1996 in 43f8b39
Line 2180 in 43f8b39
Lines 2346 to 2350 in 43f8b39
Lines 2467 to 2471 in 43f8b39
What changes do you think we should make in order to solve the problem?add What alternative solutions did you explore? (Optional)N/A |
Updated Proposal |
ProposalPlease re-state the problem that we are trying to solve in this issue.Standardize Error Periods What is the root cause of that problem?Some of our error messages have periods, and some don't. What changes do you think we should make in order to solve the problem?we need to add a logic to the if (translatedPhrase) {
if (typeof translatedPhrase === 'function') {
return translatedPhrase(...phraseParameters);
}
let translatedString: string = translatedPhrase;
if (phraseKey.includes(".error.") || phraseKey.includes(".errors.")) {
// Append the period to the translated phrase
translatedString += '.';
}
// We set the translated value in the cache only for the phrases without parameters.
cacheForLocale?.set(phraseKey, translatedString);
return translatedString;
} and we should remove all existing periods from error messages translations in the en.ts and es.ts files. and ensure that the ".error." and ".errors." patterns are consistently used in error messages translations. |
ProposalUpdated to add ESlint check. |
@ShridharGoel's proposal looks good to me 🎀 👀 🎀 C+ Reviewed. |
Triggered auto assignment to @tylerkaraszewski, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @getusha 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @ShridharGoel 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@getusha Link to eslint-config-expensify PR: Expensify/eslint-config-expensify#88 |
@getusha Can you have a look at the PR when possible? |
PR in review |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.69-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-05-09. 🎊 For reference, here are some details about the assignees on this issue:
|
Issue is ready for payment but no BZ is assigned. @adelekennedy you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks! |
@ShridharGoel it looks like the automatic offer failed for some reason - I just created a manual offer for this issue I'll pay out once you accept! |
@adelekennedy I've accepted it, thanks.
…On Fri, 10 May 2024 at 00:45, adelekennedy ***@***.***> wrote:
@ShridharGoel <https://github.com/ShridharGoel> it looks like the
automatic offer failed for some reason - I just created a manual offer for this
issue <https://www.upwork.com/nx/wm/offer/102241851> I'll pay out once
you accept!
—
Reply to this email directly, view it on GitHub
<#38989 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIPLJHDAZCTMVY2MYY7A2LDZBPDM3AVCNFSM6AAAAABFIR65LWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBTGI3DKOBUGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Payouts due:
|
I noticed some of our error messages have periods, and some don't. Let's standardize the rule here.
Tagging marketing for confirmation on the rule!
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: