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
{{ message }}
Repository navigation
[HOLD for payment 2023-07-17] [$1000] Contact method - An error message is in English in Spanish account #21001
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Please re-state the problem that we are trying to solve in this issue.
Contact method - An error message is in English in Spanish account
What is the root cause of that problem?
While validating secondary contact methods, we're displaying the error from server, but the server's returning message instead of phrase key, that's why even we changed the language, the error is still in English.
What changes do you think we should make in order to solve the problem?
From Frontend: Add translations key for the error from server, for example in this issue, we should add translation for invalid magic code.
From backend: Return error with the key phrase instead of english text.
What alternative solutions did you explore? (Optional)
changed the title [-]Contact method - An error message is in English in Spanish account[/-][+][$1000] Contact method - An error message is in English in Spanish account[/+]on Jun 22, 2023
changed the title [-][$1000] Contact method - An error message is in English in Spanish account[/-][+][HOLD for payment 2023-07-17] [$1000] Contact method - An error message is in English in Spanish account[/+]on Jul 10, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.38-7 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 2023-07-17. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
External issue reporter
Contributor that fixed the issue
Contributor+ that helped on the issue and/or PR
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
Merged PR within 3 business days of assignment - 50% bonus
Merged PR more than 9 business days after assignment - 50% penalty
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@mollfpr] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
I can't make sure this, this might be related to an update in the BE.
[@mollfpr] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
The regression test should be enough.
[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Login with any account
Go to Settings -> Preferences -> Language -> Change language to English
Go to Profile -> Contact method -> Open any unvalidated contact method
Fill-in incorrect magic codes
Verify that it shows an invalid magic codes error in English
Go to Settings -> Preferences -> Language -> Change language to Spanish
Go to Profile -> Contact method -> Open previous unvalidated contact method in step 3
Verify that it shows an invalid magic code error in Spanish
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jun 19, 2023
Triggered auto assignment to @muttmuure (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 19, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)hungvu193 commentedon Jun 19, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Contact method - An error message is in English in Spanish account
What is the root cause of that problem?
While validating secondary contact methods, we're displaying the error from server, but the server's returning message instead of phrase key, that's why even we changed the language, the error is still in English.

What changes do you think we should make in order to solve the problem?
From Frontend: Add translations key for the error from server, for example in this issue, we should add translation for invalid magic code.
From backend: Return error with the key phrase instead of english text.
What alternative solutions did you explore? (Optional)
N/A
muttmuure commentedon Jun 22, 2023
[-]Contact method - An error message is in English in Spanish account[/-][+][$1000] Contact method - An error message is in English in Spanish account[/+]melvin-bot commentedon Jun 22, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0160ca5817cf9d9f89
melvin-bot commentedon Jun 22, 2023
Current assignee @muttmuure is eligible for the External assigner, not assigning anyone new.
25 remaining items
[-][$1000] Contact method - An error message is in English in Spanish account[/-][+][HOLD for payment 2023-07-17] [$1000] Contact method - An error message is in English in Spanish account[/+]melvin-bot commentedon Jul 10, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jul 10, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.38-7 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 2023-07-17. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
melvin-bot commentedon Jul 10, 2023
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
mollfpr commentedon Jul 18, 2023
I can't make sure this, this might be related to an update in the BE.
The regression test should be enough.
mollfpr commentedon Jul 18, 2023
Posting the calculation since Melvin forget about it
The issue assignment is on Jul 3, 2023, 6:52 PM GMT+8.
PR merged is on Jul 6, 2023, 6:35 PM GMT+8.
This is still eligible for the bonus.
muttmuure commentedon Jul 20, 2023
Everybody got paid