-
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
[$250] Address - Country field reverts to the previous selection after selecting a new state #44957
Comments
Triggered auto assignment to @lakchote ( |
👋 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:
|
@lakchote 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 |
We think that this bug might be related to #vip-vsp |
I see no obvious cause in our checklist so far... |
Job added to Upwork: https://www.upwork.com/jobs/~0114854c60bfc7069c |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
I've talked with @mountiny on the matter, refactoring was difficult to undertake, as such we should try to find the issue and fix. Which is why I've made it |
@lakchote @mountiny I'm happy to raise PR asap if assigned ProposalPlease re-state the problem that we are trying to solve in this issue.The country field reverts to the previous selection after selecting a new state What is the root cause of that problem?In App/src/components/StateSelector.tsx Line 92 in e7a46a5
getActiveRoute , not getActiveRouteWithoutParams like in CountrySelector App/src/components/CountrySelector.tsx Line 78 in e7a46a5
So the param of the old country left over in the route param is still used, and the country gets updated to the old value. If we look at the param in the URL path when selecting state, we'll see that What changes do you think we should make in order to solve the problem?In StateSelector here App/src/components/StateSelector.tsx Line 92 in e7a46a5
getActiveRouteWithoutParams like in CountrySelector
What alternative solutions did you explore? (Optional) |
@nkdengineer We had to revert your change here #45121 as as it led to worse blocker. Lets find a proper solution for this issue and make sure #45060 is not brought back. cc @mateuuszzzzz can help maybe |
I'll raise follow PR soon |
@nkdengineer lets try to identify the root cause as @s77rt highlighted it seems like we are still not clear on that |
hi there 😊 after investigation, me and @mateuuszzzzz came to a conclusion that the problem here is connected to navigation. 🤔 |
Thank you! PR merged |
PR #45394 (comment) has been deployed to Prod since last week. It's payment time :yay: |
@lakchote already found the offending PR #44957 (comment). Therefore we don't need a BZ checklist 🤔 |
Issue not reproducible during KI retests. (First week) |
@mountiny can you help me understand what needs to happen here. I see that both @s77rt and @hoangzinh reviewed this PR. Do they both need to be paid? |
@puneetlath Only @hoangzinh is due payment |
Got it! @hoangzinh has been paid. @mountiny is @nkdengineer due any payment here? |
I think nope. @nkdengineer's PR has been reverted here #44957 (comment). |
Ok going to go ahead and close this out then. Thanks everyone! |
Thanks for handling |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.5-3
Reproducible in staging?: Y
Reproducible in production?: N
**If this was caught during regression testing, add the test name, ID and link from TestRail:**N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The country field will not revert to the previous selection after selecting a new state
Actual Result:
The country field reverts to the previous selection after selecting a new state
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6535805_1720442346387.country.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @puneetlathThe text was updated successfully, but these errors were encountered: