-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Paid] [$8000] zip /postcode validation error message not displayed for entering ,
on the Home address screen
#14958
Comments
Triggered auto assignment to @anmurali ( |
Bug0 Triage Checklist (Main S/O)
|
A bit more context: on the "Personal Information" step of setting up a bank account show an error when entering |
,
on the Home address screen,
on the Home address screen
Job added to Upwork: https://www.upwork.com/jobs/~015b692899f4b1568b |
Current assignee @anmurali is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
Triggered auto assignment to @Beamanator ( |
ProposalRestating the problemSome unwanted characters are allowed in zip code Root Cause
SolutionHere are some conditions for the post code:
source: https://stackoverflow.com/a/19844362/15373641 So I'll just this validation to the Note: |
ProposalPlease re-state the problem that we are trying to solve in this issue.The validation on the What is the root cause of that problem?The root cause behind this issue is that none of the values on the home address are validated properly, the only thing checked is if the fields are empty or not in App/src/pages/settings/Profile/PersonalDetails/AddressPage.js Lines 115 to 122 in b113107
What changes do you think we should make in order to solve the problem?The validation in For each required field, we can run it through Zip code: Zip codes across the world can vary differently, they need not be of 5 digits only. I suggest we just do a basic sanity check and not do anything else.
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Validation errors are not shown in the address page with zip code What is the root cause of that problem?We don't validate zip codes. In fact In the particular page i don't see any validation except empty check validation. What changes do you think we should make in order to solve the problem?We can add proper validation for all fields in the particular page including the concerned zip code. For ex: We already have validation util for zipcode here - https://github.com/Expensify/App/blob/main/src/libs/ValidationUtils.js#L167 |
ProposalRe-state the problemzip/postcode validation error message not displayed for entering , on the Home address screen What is the root cause of that problem?The root cause of this problem is the non-existent validation function for zip/postcode field. What changes do you think we should make in order to solve the problem?Solution is very simple!!! Before clicking save button, just validate the zip/postcode field by using this function and show the validation error message if the user entered wrong.
What alternative solutions did you explore? (Optional)Optionally, we can use postal code API for postal code validation from https://developer.bring.com/api/postal-code/ |
@twisterdotcom And with add some space to pass the validation of required field, I can see other form get this issue like AddDebitCardPage.js, you see the billing address is required field but still not show required when I type more space. The validationUtils has using in this form, but not for address field, maybe other form have this scenario too. |
@anmurali @Beamanator Can you please assign another C+ here? I have backlog of issues to cover from my OOO. |
@Prince-Mendiratta your proposal doesn't explain what validation to use exactly for Zip / Postcode. Please note that it's a bit different rule from Zip code in Personal information page in bank account step. It should allow letters as well as numbers. Here's context |
@abdulrahuman5196 same feedback as above |
@hackykitty same feedback as above on your main solution. Regarding optional solution, this is pretty simple and we may not need 3rd party api to get postal code. |
,
on the Home address screen,
on the Home address screen
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.94-3 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-04-12. 🎊 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:
|
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:
|
Hey folks! Sharing the timeline for this issue for calculation of bonus: 🐛 Issue created at: Wed, 08 Feb 2023 22:09:49 GMT |
@Beamanator, @anmurali, @Prince-Mendiratta, @0xmiroslav Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Bump @anmurali are you able to take care of this payment? I can assign another Bug-Zero team member if needed |
Another quick bump @anmurali - I'm OOO till Thurs, I will ask for a new BZ if we haven't moved forward by then :D 👍 |
Sent offers |
@anmurali Thank you, accepted! |
@anmurali accepted |
@0xmiroslav can you please complete the checklist |
,
on the Home address screen,
on the Home address screen
There are 2 issues here:
|
@anmurali please close the upwork contract |
@Beamanator, @anmurali, @Prince-Mendiratta, @0xmiroslav Huh... This is 4 days overdue. Who can take care of this? |
We're all done here! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
it should show validation error message
Actual Result:
does not show validation message
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.67-7
Reproducible in staging?: y
Reproducible in production?: new feature
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
Notes/Photos/Videos:
Screen.Recording.2023-02-08.at.12.16.24.PM.mov
Recording.1468.mp4
Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1675838827973319
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: