-
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
[HOLD for payment 2023-10-09] [$500] Android - State gets cleared when selecting the same country #28034
Comments
Triggered auto assignment to @trjExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~0182f7137fd1deb9ae |
Current assignee @trjExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @burczu ( |
Proposal by: krishna2323 ProposalPlease re-state the problem that we are trying to solve in this issue.App clears state even if the selected country is not changed. What is the root cause of that problem?We are not checking if the selected country is the changed or not before updating state to empty string. App/src/pages/settings/Profile/PersonalDetails/AddressPage.js Lines 119 to 129 in 778f763
What changes do you think we should make in order to solve the problem?We should return from the function if the
Result |
ProposalPlease re-state the problem that we are trying to solve in this issue.The state gets cleared when selecting the same country in CountryPicker. What is the root cause of that problem?In here, the
What changes do you think we should make in order to solve the problem?Update here to check if the country changes first before calling We have to fix it inside
What alternative solutions did you explore? (Optional)NA |
📣 @devharp! 📣
|
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Contributor details Proposal for Addressing TextInput State Clearance IssueProblem StatementThe issue at hand is related to the inadvertent clearing of the 'state' when selecting the same country in the CountryPicker. Root CauseThe root cause of this issue can be attributed to the CountryPicker component. Specifically, the Proposed SolutionTo resolve this issue, we propose a modification to the Reasons for Modifying CountryPickerPreserving Form State Integrity: By invoking Consistency and Efficiency: This adjustment ensures consistency with other form elements, following the principle of triggering change events only when necessary and avoiding redundant state updates in the form. Enhanced Reusability: Modifying CountryPicker ensures the resolution of this issue across the application, promoting reusability without encountering similar problems elsewhere. |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Is this perhaps linked? #27814 |
@trjExpensify, the root cause for this is different, but the issues are similar
I assumed this was by design, but clearly it's not.
In my opinion, we should keep the issues separate, those are two different bugs that happen on the same page |
I've just reviewed all the proposals and I think we should proceed with the one from @dukenv0307 - while the solution from @Krishna2323 would also fix the issue I agree with @dukenv0307's reasoning why it's better to fix it inside the The proposal from @devharp is actually the same as the one from @dukenv0307 but it was posted later. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @arosiclair, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.75-12 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-10-09. 🎊 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.
For reference, here are some details about the assignees on this issue:
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:
|
👋 Can we get this checklist filled out to proceed with payment please? |
Bump! |
Same as Friday, Melv! |
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:
|
👋 Mind adding a bit of reasoning on the justification for these, please?
|
Bump @burczu ^ |
No change. :) |
@arosiclair, @burczu, @trjExpensify, @dukenv0307 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@trjExpensify In terms of justification for not adding regression tests - I think this bug wasn't impactful and does not brake important flow of the application. It was just slightly inconvenient for the end user that they had to re-enter the state after selecting the same country from the country selector, so it's more like UX fix. What do you think? |
Cool, thanks for expanding. I can see that argument because it's reselecting the same country which is probably not that likely to happen. Alright, so with that out of the way, moving on to payments:
Urgency bonus applied as per here and the PR pre-dating the change. |
Settled up with @Krishna2323. Closing! |
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:
Action Performed:
Expected Result:
The state should not get cleared.
Actual Result:
The state gets cleared.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.73.0
Reproducible in staging?: y
Reproducible in production?: y
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
WhatsApp.Video.2023-09-19.at.17.19.38.mp4
Screen_Recording_20230922_122921_New.Expensify.mp4
Expensify/Expensify Issue URL:
Issue reported by: krishna2323
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695225387907579
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: