-
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 2023-06-28] [$1000] Settings - Zip/ Pin code validation is case sensitive #20569
Comments
Triggered auto assignment to @johncschuster ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Zip/ Pincode validation is case sensitive What is the root cause of that problem?Example for Ascension Island Country Lines 1570 to 1573 in 82ce35f
We are using this regex to check if the zipcode is valid or not. And this regex is accepted if the input is uppercase What changes do you think we should make in order to solve the problem?We should uppercase the input before validating and saving zipcode
and
Update
to
What alternative solutions did you explore? (Optional)In some countries, we only have some options in zip code field (ex: Ascension Island Country, we only have 1 option is |
It looks like country zip code is case sensitive and would like to tag @Prince-Mendiratta to confirm as you added the feature #14958 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The zip codes in the address form are case sensitive What is the root cause of that problem?Our zip code regex for countries is designed to be case-sensitive for all countries other than We currently have ~42 (-1 What changes do you think we should make in order to solve the problem?Most countries use uppercase zipcodes for ease of processing, but lowercase ones also work. We can allow case-insensitive zip codes for all countries by adding an AC: {
regex: /^ASCN 1ZZ$/i,
// ... which will match the lower and upper case alphabets. Optional:
What alternative solutions did you explore? (Optional)N/A |
Job added to Upwork: https://www.upwork.com/jobs/~01ebaa85cf62804d03 |
Current assignee @johncschuster is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
Triggered auto assignment to @mountiny ( |
@Prince-Mendiratta Can you please confirm if the case sensitiveness has been intentional and any reason we should not make this case insensitive? |
Also cc-ing @Beamanator |
As far as I recall, we implemented case sensitiveness as letters in zip code are supposed to be in upper case. If we think differently now and we want to allow case insensitive inputs, I can put in a PR (without any payment) as it is a pretty simple change. |
Hmm I am not sure, I know in UK for example sometimes the websites complain if I dont use uppercase so maybe a bit more digging into this should be done. Or we can just simply enfore the uppercase and let users know. Or map it to uppercase as they write it in |
We can just fix this in web only. (flicker happens in native but it's already uppercased as default in keyboard so no need) |
I am inclined to overwriting user to uppercase in this case. |
@mountiny I thought we didn't prefer modifying user input as we typed? Example: we don't accept uppercase letters in contact methods, but instead of overwriting user input as they type, we lowercase the text before sending it to the API So maybe we just auto capitalize before storing the zip code in onyx & sending to the API? |
That works as well, I was not sure if there are some generic guidelines about this. @0xmiroslav does that sound good to you? |
I think I discussed it with Shawn in the past - we can tag him if you'd like, but otherwise I think I'd go with auto-uppercasing without the user needing to know |
Sounds good to me. I have no concern either way as long as it's not against our form guidelines. |
@0xmiroslav In this context, Could you take a look at my proposal with the idea to uppercase zipcode when validating and submitting? And then we can discuss more if there is any problem |
Updated the issue op |
Proposal looks good to me. It's straightforward. |
📣 @dukenv0307 You have been assigned to this job by @mountiny! |
Hi @abdulrahuman5196 The PR is ready for review |
🎯 ⚡️ Woah @abdulrahuman5196 / @dukenv0307, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.29-11 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-06-28. 🎊 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:
|
BZ checklist
This wasn't a regression. We have identified this requirement now to uppercase zip/postal codes in background
Yes
cc: @mountiny |
Gentle ping on this @johncschuster |
Sorry for the delay everyone, @johncschuster is out for the week. I just sent offers through Upwork to @dhanashree-sawant, @dukenv0307, and @abdulrahuman5196. |
@sakluger Thank you. Accepted the job invite. |
@dukenv0307 @abdulrahuman5196 and @dhanashree-sawant has this all been paid out? If yes we can close this |
@mountiny no. I have accepted the contract. But still waiting on payment release. |
Independence day, probably gonna be paid tomorrow, sorry for that |
No problem. Thought so. Many people would be off this time of the year. 😅 |
Sorry for the delay, folks! I'm working on this now! |
Payment has been issued! Thanks for your patience, everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Action Performed:
Expected Result:
The Zip/ Pin code should be uppercased on the background without user noticing and then we can run the verification making the case sensitiveness irrelevant.
Actual Result:
Zip/ Pin code validation is case sensitive
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.26.1
Reproducible in staging?: yes
Reproducible in production?: yes
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: Any additional supporting documentation
case.sensitive.zipcode.error.mp4
Recording.3066.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686066243272029
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: