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 2024-02-20] [$250] Address – Incorrect error message appear when enter Cyrillic letters into Zip field #34668
Version Number: 1.4.26-1 Reproducible in staging?: Y Reproducible in production?: N If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
Action Performed:
Login to New dot
Navigate to Settings -> Profile -> Personal details
Navigate to Home address page
Add Cyrillic letters or symbols into Zip/Postcode field
Expected Result:
"Incorrect zip code format" message should appear
Actual Result:
Incorrect error message ( privatePersonalDetails.error.incorrectZipFormat ) appear when enter Cyrillic letters into Zip/Postcode field
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
in the case of the zipcode we don't provide a second argument to the translation making the variables object assigned to undefined which make the translate function unable to resolve the translation.
What changes do you think we should make in order to solve the problem?
we can add an empty object as the default value for the variables obj here :
changed the title [-]Address – Incorrect error message appear when enter Cyrillic letters into Zip field[/-][+][$500] Address – Incorrect error message appear when enter Cyrillic letters into Zip field[/+]on Jan 18, 2024
changed the title [-][$250] Address – Incorrect error message appear when enter Cyrillic letters into Zip field[/-][+][HOLD for payment 2024-02-20] [$250] Address – Incorrect error message appear when enter Cyrillic letters into Zip field[/+]on Feb 13, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.40-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
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:
[@s77rt] The PR that introduced the bug has been identified. Link to the PR:
[@s77rt] 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:
[@s77rt] 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:
[@s77rt] Determine if we should create a regression test for this bug.
[@s77rt] 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.
[] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Issue is ready for payment but no BZ is assigned. @sonialiap you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!
Activity
github-actions commentedon Jan 17, 2024
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
melvin-bot commentedon Jan 17, 2024
Triggered auto assignment to @jasperhuangg (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.abzokhattab commentedon Jan 17, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Address - Incorrect error message appear when enter Cyrillic letters into Zip field
What is the root cause of that problem?
TextInputerrorText: errors[inputID] || fieldErrorMessage,TextInputas propsFormHelpMessageto display the error where the input is theerrorTextprovided in the propsFormHelpMessagecomponent callsLocalize.translateIfPhraseKeyto translate the error messageundefinedwhich make the translate function unable to resolve the translation.What changes do you think we should make in order to solve the problem?
we can add an empty object as the default value for the
variablesobj here :alternatively
we can modify the zipcode translation above to:
App/src/components/AddressForm.js
Line 106 in 9208c95
futhermore this snippet could be refactored to:
[-]Address – Incorrect error message appear when enter Cyrillic letters into Zip field[/-][+][$500] Address – Incorrect error message appear when enter Cyrillic letters into Zip field[/+]melvin-bot commentedon Jan 18, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01ae2a56928644ce4f
35 remaining items
[-][$250] Address – Incorrect error message appear when enter Cyrillic letters into Zip field[/-][+][HOLD for payment 2024-02-20] [$250] Address – Incorrect error message appear when enter Cyrillic letters into Zip field[/+]melvin-bot commentedon Feb 13, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Feb 13, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.40-5 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-02-20. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Feb 13, 2024
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:
s77rt commentedon Feb 13, 2024
melvin-bot commentedon Feb 20, 2024
Issue is ready for payment but no BZ is assigned. @sonialiap you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!
sonialiap commentedon Feb 21, 2024
@s77rt Reviewer $250 - paid ✔️
@dukenv0307 Contributor $250 - paid ✔️