-
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 2024-09-07] [$250] Taxes - Name field is no longer grayed out after editing tax code offline #47747
Comments
Triggered auto assignment to @kadiealexander ( |
We think that this bug might be related to #wave-collect - Release 1 |
@kadiealexander 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 |
Edited by proposal-police: This proposal was edited at 2024-08-20 20:40:06 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Taxes - Name field is no longer grayed out after editing tax code offline What is the root cause of that problem?Current pending field are not spread when updating the tax code. When updating tax code we create a key/value pair with the new tax code name so the pending fields are not merged in this case like it does when updating name or value, that's why we don't need to spread the pending fields when updating name or value. App/src/libs/actions/TaxRate.ts Lines 498 to 503 in b2eb922
What changes do you think we should make in order to solve the problem?Spread the pending fields. We should also check for other update actions for tax details edit. EDIT: We don't need to do that when editing name or value. What alternative solutions did you explore? (Optional)ResultMonosnap.screencast.2024-08-21.01-59-36.mp4 |
Edited by proposal-police: This proposal was edited at 2024-08-20 21:06:07 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Taxes - Name field is no longer grayed out after editing tax code offline What is the root cause of that problem?when updating the tax code it overrides the existing pending fields: https://github.com/Expensify/App/blob/b2eb922823d491996faa5d50275bfce540e9b288/src/libs/actions/TaxRate.ts#L496C21-L525C27 What changes do you think we should make in order to solve the problem?we should add the existing pending field from the To do that we should change the pending fields property in the optimistic values to:
also, modify that in the success and failure objects What alternative solutions did you explore? (Optional)N.A |
Proposal Updated
|
Proposal Updated
|
Proposal UpdatedAdded the code implementation |
Job added to Upwork: https://www.upwork.com/jobs/~01da26942e57c47d6b |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 ( |
@Krishna2323 's first posted proposal comment shows the offending code block correctly in the RCA and the suggested solution is clear enough. I think we can proceed with his proposal because his is first. 🎀 👀 🎀 C+ Reviewed |
Triggered auto assignment to @mountiny, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Go ahead please @Krishna2323 |
@c3024, PR ready for review ^ |
Automation failed here. This was deployed to production yesterday. Payment due on 7-Sep or 8-Sep. cc: @kadiealexander |
Updated $250 to @Krishna2323 and to @c3024 |
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:
|
Payment Summary
BugZero Checklist (@kadiealexander)
|
Regression Test Proposal
|
Not overdue, offers sent! |
Offer accepted. |
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: v9.0.22-5
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp https://expensify.testrail.io/index.php?/tests/view/4874241
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Name field will remain grayed out after editing tax code offline.
Actual Result:
Name field is no longer grayed out after editing tax code offline.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6577125_1724165547316.20240820_224656.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @kadiealexanderThe text was updated successfully, but these errors were encountered: