-
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] Tax - Toggle becomes unlocked, Delete button appears briefly after saving tax code of default rate #45858
Comments
Triggered auto assignment to @cead22 ( |
👋 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:
|
We think that this bug might be related to #wave-control |
ProposalPlease re-state the problem that we are trying to solve in this issue.Tax - Toggle becomes unlocked, Delete button appears briefly after saving tax code of default rate What is the root cause of that problem?When updating tax code, App/src/libs/actions/TaxRate.ts Lines 486 to 495 in f3a8f73
Then canEditTaxRate returns true comparing the old defaultExternalID with the new tax code hereLines 408 to 409 in f3a8f73
Then shouldShowDeleteMenuItem becomes true we display delete buttonApp/src/pages/workspace/taxes/WorkspaceEditTaxPage.tsx Lines 42 to 44 in f3a8f73
Then BE udpates defaultExternalID with new value and delete button becomes hidden since the new defaultExternalID is equal to newTaxCode
What changes do you think we should make in order to solve the problem?We should set taxRates: {
defaultExternalID: oldTaxCode === policy?.taxRates?.defaultExternalID ? newTaxCode : policy?.taxRates?.defaultExternalID,
App/src/libs/actions/TaxRate.ts Lines 494 to 496 in f3a8f73
And add for failureData to
defaultExternalID: policy?.taxRates?.defaultExternalID; Note: We should apply the same pattern on foreignTaxDefault: oldTaxCode === policy?.taxRates?.defaultExternalID ? newTaxCode : policy?.taxRates?defaultExternalID, Applying the same pattern on App/src/pages/workspace/taxes/WorkspaceTaxesPage.tsx Lines 82 to 86 in f3a8f73
What alternative solutions did you explore? (Optional)Result: Screen.Recording.2024-07-21.at.2.35.03.at.night.mp4 |
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. |
Job added to Upwork: https://www.upwork.com/jobs/~017da022f8b49cd8bf |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ahmedGaber93 ( |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@etCoderDysto's proposal LGTM! When we update the default tax rate code, We missed updating 🎀 👀 🎀 C+ reviewed |
Current assignee @cead22 is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@ahmedGaber93 @etCoderDysto what PR was this introduced in / was this a regression? |
half way done. |
@cead22, @mollfpr, @rushatgabhane, @etCoderDysto Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@cead22, @mollfpr, @rushatgabhane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
1 similar comment
@cead22, @mollfpr, @rushatgabhane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@rushatgabhane do you have an ETA? Just curious |
@cead22, @mollfpr, @rushatgabhane Eep! 4 days overdue now. Issues have feelings too... |
@rushatgabhane how that PR coming along? |
@cead22, @mollfpr, @rushatgabhane Huh... This is 4 days overdue. Who can take care of this? |
DM'ed @rushatgabhane on slack to ask for an update |
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. |
This issue has not been updated in over 15 days. @cead22, @mollfpr, @rushatgabhane eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
this can be closed |
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.10-2
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:
Precondition:
Expected Result:
The toggle will remain locked and Delete button will not appear after saving the tax code of the default tax rate
Actual Result:
The toggle becomes unlocked and Delete button appears briefly after saving the tax code of the default tax rate
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6548319_1721502876398.20240721_031001.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ahmedGaber93The text was updated successfully, but these errors were encountered: