-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Personal details - "common.zipCodeExampleFormat" appears under Zip / Postcode field #38660
Comments
Triggered auto assignment to @sakluger ( |
👋 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:
|
Triggered auto assignment to @neil-marcellini ( |
@sakluger I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. We think this issue might be related to the #vip-vsb. |
ProposalPlease re-state the problem that we are trying to solve in this issue.:Personal details - "common.zipCodeExampleFormat" appears under Zip / Postcode field. What is the root cause of that problem?No fallback is provided when App/src/components/AddressForm.tsx Lines 78 to 80 in f4d3c18
What changes do you think we should make in order to solve the problem?Add const zipSampleFormat = country ? (CONST.COUNTRY_ZIP_REGEX_DATA[country] as CountryZipRegex)?.samples : CONST.COUNTRY_ZIP_REGEX_DATA.US.samples; Result |
Seems like offending is deployed to production 2 weeks ago: #34149 |
@hungvu193 are you sure that Regression is from #37200? |
I believe so 😄 |
@hungvu193 This issue is not regressed by #37200. I commented out the cache mechanism which was introduced in the PR and the issue still persists. After applying @Krishna2323 's suggestion here, the issue seems to be resolved. VEED.CREATE.Edit.mp4 |
I apologize if I was wrong, but can you try to revert your PR and test it? Or you can checkout this commit |
@hungvu193 I checked out to the commit and below is what I get now: ![]() Is it correct as we don't have the placeholder US number? |
I think @izarutskaya mentioned it here as expected result but I'm not sure. |
@hungvu193 Okay I am working on to find the cause in my PR 👍 |
AFAIK, |
@hungvu193 I have tried commenting out the cache mechanism but things are still the same. It's probably due to the fact that |
I don't have context about how cache work, but any reason other phrases exist in |
Hey @hungvu193, So I have found the issue. Basically, Below is how I think we should change the condition: ![]() With this change we have the same output as of production. |
@hurali97 Cool. This is only the concern I have now 🤔 |
Oh yes. The thing is in cache we don't store any phrases which are bound to a variable as it kills the purpose of cache. |
Great!. Seems @neil-marcellini is OOO. cc @roryabraham |
maybe better check for null and undefined, allowing other values to pass through if (translatedPhrase !== null && translatedPhrase !== undefined) {
return translatedPhrase;
} |
@dragnoir Oh yeah, agreed 👍 @hungvu193 How do you want this issue to be addressed? Should I create a PR fixing this issue or you've someone else to do it? |
I think you should create a PR to fix it if you're available |
I requested some changes on the PR, but since @hurali97 appears to be out for the day @hayata-suenaga has volunteered to do it. Thanks @hayata-suenaga! |
Closing this as it is fixed, and no additional payments are due since this was a regression |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.55-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Precondition:
Expected Result:
There will be no strings under Zip / Postcode field since the address is not filled.
Actual Result:
"common.zipCodeExampleFormat" appears under Zip / Postcode field.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: