Skip to content
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

Profile - Address - Zip code verification does not work correctly #41531

Closed
4 of 6 tasks
lanitochka17 opened this issue May 2, 2024 · 17 comments · Fixed by #42057
Closed
4 of 6 tasks

Profile - Address - Zip code verification does not work correctly #41531

lanitochka17 opened this issue May 2, 2024 · 17 comments · Fixed by #42057
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@lanitochka17
Copy link

lanitochka17 commented May 2, 2024

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.70-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4537799
Email or phone of affected tester (no customers): fischer9966+050224aa@gmail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Open app or go to staging.new.expensify.com
  2. Login with any account that does not have an address in Profile
  3. Go to Settings > Profile > Address
  4. Enter any US address with a numeric-only zip code and save it
  5. Open address again and input any UK address with a zip code containing letters and numbers and save it
  6. Do the same on the new account but first add the address in UK

Expected Result:

User can replace the saved address with numeric zip code with address with letters-numeric zip code and vice versa

Actual Result:

Zip code verification does not work correctly
User can NOT replace the saved address with numeric zip code with address with letters-numeric zip code and vice versa

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6469247_1714675718994.profile-address-zip-code-verification-fail.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label May 2, 2024
Copy link

melvin-bot bot commented May 2, 2024

Triggered auto assignment to @srikarparsi (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
Contributor

github-actions bot commented May 2, 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@lanitochka17
Copy link
Author

@srikarparsi FYI 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

@srikarparsi
Copy link
Contributor

srikarparsi commented May 2, 2024

This looks like it could be associated with this PR: https://github.com/Expensify/App/pull/38381/files. Looking into it.

@srikarparsi
Copy link
Contributor

srikarparsi commented May 2, 2024

Not able to reproduce on the latest dev. Still looking. Could be a backend problem since I haven't built in a day.

@srikarparsi
Copy link
Contributor

srikarparsi commented May 2, 2024

profileAddress.mov

Not able to reproduce with a new account. Building auth right now and will test with that. If it doesn't work then it's a backend problem, if it does work, then a recent frontend change might've fixed it and I can try finding that?

@francoisl
Copy link
Contributor

I'm able to repro on main – I had to rerun npm i, maybe you were missing that? Not 100% sure yet, but I think the issue comes from #41056 that bumped the onyx-react-native version (which would also explain why you couldn't repro without running npm i)

@francoisl
Copy link
Contributor

Did some more digging, reverting react-native-onyx to 2.0.32 fixes the issue, and it starts appearing in 2.0.33, which means it would have been introduced via (or as a side effect of) Expensify/react-native-onyx#519.

2.0.32 2.0.33
r2032.mov
r2033.mov

cc @chrispader @tgolen if you have an idea

What's happening is that the country key doesn't get updated on the Address page, so we end up using the wrong validation regex for the zip code when you try to save the changes.

This comment was marked as off-topic.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 Weekly KSv2 labels May 3, 2024
@francoisl francoisl removed the DeployBlockerCash This issue or pull request should block deployment label May 3, 2024
@chrispader chrispader mentioned this issue May 13, 2024
50 tasks
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels May 13, 2024
@chrispader
Copy link
Contributor

Fixed in #42057

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels May 28, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 29, 2024
@melvin-bot melvin-bot bot changed the title Profile - Address - Zip code verification does not work correctly [HOLD for payment 2024-06-05] Profile - Address - Zip code verification does not work correctly May 29, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 29, 2024
Copy link

melvin-bot bot commented May 29, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented May 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.76-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 2024-06-05. 🎊

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels May 30, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-06-05] Profile - Address - Zip code verification does not work correctly [HOLD for payment 2024-06-06] [HOLD for payment 2024-06-05] Profile - Address - Zip code verification does not work correctly May 30, 2024
Copy link

melvin-bot bot commented May 30, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.77-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 2024-06-06. 🎊

Copy link

melvin-bot bot commented Jun 13, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@ikevin127
Copy link
Contributor

⚠️ Automation failed here -> this should be on [HOLD for Payment 2024-06-21] according to yesterday’s production deploy of the 2nd PR (after revert) from #42772 (comment).

Additional issue attached to the PR Fixed Issues section:

@srikarparsi Could you please remove the previous HOLD from the issue's title and add the correct one and also add the Bug label to get a BZ team member assigned in order to handle payment here when it's due ?

cc @mountiny

  1. This onyx bump was a big PR which took lots of testing and given this, would you be cool with a $500 bounty for the C+ reviewers given the work involved in both reverted and currently merged PR ?
  2. What are we going to do about current / possible regressions (if any) in the context of the bounty ? Asking if any existing regression will -50% the bounty or not.

@srikarparsi srikarparsi changed the title [HOLD for payment 2024-06-06] [HOLD for payment 2024-06-05] Profile - Address - Zip code verification does not work correctly [HOLD for Payment 2024-06-21] Profile - Address - Zip code verification does not work correctly Jun 17, 2024
@srikarparsi srikarparsi added the Bug Something is broken. Auto assigns a BugZero manager. label Jun 17, 2024
Copy link

melvin-bot bot commented Jun 17, 2024

Triggered auto assignment to @OfstadC (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 17, 2024
@ikevin127
Copy link
Contributor

ikevin127 commented Jun 19, 2024

Based on this #expensify-open-source Slack discussion Vit suggested to handle payment in issue:

Edit:

Confirmed by Vit in:

Therefore this can be checked-off as completed, thank you all !

cc @OfstadC @srikarparsi

@srikarparsi srikarparsi changed the title [HOLD for Payment 2024-06-21] Profile - Address - Zip code verification does not work correctly Profile - Address - Zip code verification does not work correctly Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants