You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-03-13] [$250] Track tax - RHP opens tax settings instead of distance rate after selecting the same tax rate #57233
Version Number: 9.1.3-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail: Exp Email or phone of affected tester (no customers):applausetester+sj9032@applause.expensifail.com Issue reported by: Applause Internal Team Device used: Mac 15.0 / Chrome App Component: Workspace Settings
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Please re-state the problem that we are trying to solve in this issue.
RHP opens tax settings instead of distance rate after selecting the same tax rate
What is the root cause of that problem?
The implementation of PolicyDistanceRateTaxRateEditPage is totally wrong here. The current bug happens because when we select the same option we call dismiss function:
This leads us to the WORKSPACE_TAXES_SETTINGS page.
This is the RCA, now there is not need to call the dismiss function here, we already handle the logic to navigate back in the onTaxRateChange function:
But the implementation was not rightly done leading to this bug, that PR added the filter logic correctly but pretty badly affected the navigation logic.
What changes do you think we should make in order to solve the problem?
Remove the use of OnDismiss from the parent TaxPicker, ie. remove the handleSelectRow function:
So we don't need to introduce any new thing. We also need to update a few places where TaxPicker is used, but this is the clean approach to solve this bug as we do not need OnDismiss and handleSelectRow can directly have the function onSubmit which simplifies logic handling
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A this is a navigation bug
What alternative solutions did you explore? (Optional)
changed the title [-]Track tax - RHP opens tax settings instead of distance rate after selecting the same tax rate[/-][+][$250] Track tax - RHP opens tax settings instead of distance rate after selecting the same tax rate[/+]on Feb 21, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.9-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@ishpaul777@bfitzexpensify@ishpaul777 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: no need simple navigation issue does not block any functionality
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again. - no need simple navigation issue does not block any functionality
Activity
melvin-bot commentedon Feb 21, 2025
Triggered auto assignment to @bfitzexpensify (
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.daledah commentedon Feb 21, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-02-21 08:38:35 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
RHP opens tax settings page.
What is the root cause of that problem?
When we click the item again we call
onDismissfunctionApp/src/components/TaxPicker.tsx
Lines 101 to 106 in 9d8eef2
We should navigate to
WORKSPACE_TAXES_SETTINGSrouteApp/src/pages/workspace/distanceRates/PolicyDistanceRateTaxRateEditPage.tsx
Lines 53 to 55 in 9d8eef2
What changes do you think we should make in order to solve the problem?
We are navigating to
WORKSPACE_DISTANCE_RATE_DETAILSroute when dismissingApp/src/pages/workspace/distanceRates/PolicyDistanceRateTaxRateEditPage.tsx
Lines 53 to 55 in 9d8eef2
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
twilight2294 commentedon Feb 21, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
RHP opens tax settings instead of distance rate after selecting the same tax rate
What is the root cause of that problem?
The implementation of
PolicyDistanceRateTaxRateEditPageis totally wrong here. The current bug happens because when we select the same option we calldismissfunction:App/src/pages/workspace/distanceRates/PolicyDistanceRateTaxRateEditPage.tsx
Lines 53 to 55 in 9d8eef2
This leads us to the
WORKSPACE_TAXES_SETTINGSpage.This is the RCA, now there is not need to call the
dismissfunction here, we already handle the logic to navigate back in theonTaxRateChangefunction:App/src/pages/workspace/distanceRates/PolicyDistanceRateTaxRateEditPage.tsx
Lines 33 to 37 in 9d8eef2
So the use of
dismisswas introduced inBut the implementation was not rightly done leading to this bug, that PR added the filter logic correctly but pretty badly affected the navigation logic.
What changes do you think we should make in order to solve the problem?
OnDismissfrom the parentTaxPicker, ie. remove thehandleSelectRowfunction:App/src/components/TaxPicker.tsx
Lines 101 to 110 in bf50378
Replace the usage of
handleSelectRowwithonSubmitas that is what is done when we select the row:App/src/components/TaxPicker.tsx
Line 119 in bf50378
Remove onDismiss function in
PolicyDistanceRateTaxRateEditPage:App/src/pages/workspace/distanceRates/PolicyDistanceRateTaxRateEditPage.tsx
Lines 53 to 56 in 9d8eef2
The case when we select the same key is already taken care of here:
App/src/pages/workspace/distanceRates/PolicyDistanceRateTaxRateEditPage.tsx
Lines 33 to 36 in 9d8eef2
So we don't need to introduce any new thing. We also need to update a few places where
TaxPickeris used, but this is the clean approach to solve this bug as we do not needOnDismissandhandleSelectRowcan directly have the functiononSubmitwhich simplifies logic handlingWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A this is a navigation bug
What alternative solutions did you explore? (Optional)
[-]Track tax - RHP opens tax settings instead of distance rate after selecting the same tax rate[/-][+][$250] Track tax - RHP opens tax settings instead of distance rate after selecting the same tax rate[/+]melvin-bot commentedon Feb 21, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021892975947202280745
melvin-bot commentedon Feb 21, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ishpaul777 (
External)melvin-bot commentedon Feb 25, 2025
@ishpaul777 Whoops! This issue is 2 days overdue. Let's get this updated quick!
23 remaining items
melvin-bot commentedon Mar 6, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.9-8 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 2025-03-13. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Mar 6, 2025
@ishpaul777 @bfitzexpensify @ishpaul777 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
bfitzexpensify commentedon Mar 13, 2025
Payment complete to @daledah
@ishpaul777, please complete the BZ checklist
ishpaul777 commentedon Mar 13, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: https://github.com/Expensify/App/pull/44046/files#r1993944642
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: no need simple navigation issue does not block any functionality
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again. - no need simple navigation issue does not block any functionality
melvin-bot commentedon Mar 17, 2025
@bfitzexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!
bfitzexpensify commentedon Mar 18, 2025
Payment summary:
@ishpaul777 due $250 via NewDot manual request for C+ work
garrettmknight commentedon Mar 24, 2025
$250 approved for @ishpaul777