Closed lanitochka17 closed 3 months ago
Triggered auto assignment to @joekaufmanexpensify (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.
Reproduced. We should probably clean this up. Customers might think the "hm not here" message indicates an issue saving the code they selected.
https://github.com/user-attachments/assets/590b229d-50d8-4f1d-83e9-4c7e34630d6c
Job added to Upwork: https://www.upwork.com/jobs/~01ed44e8676aed82e6
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eh2077 (External
)
Hm it's not here shown when edit the tax code and save
When we edit the tax code we navigate to the tax edit page with taxID
param as newTaxCode
.
And because there are some delays when we merge the onyx data here, the not found page appears briefly
Since we already stored the previousTaxCode
in Onyx here, we can use the same solution we apply for category or tag when we edit the name of the category/tag.
goBack
here instead of dismissModal
and navigate
Navigation.goBack(ROUTES.WORKSPACE_TAX_EDIT.getRoute(policyID, currentTaxCode));
function getCurrentTaxID(policy: OnyxEntry<Policy>, taxID: string): string | undefined {
return Object.keys(policy?.taxRates?.taxes ?? {}).find((taxIDKey) => policy?.taxRates?.taxes?.[taxIDKey].previousTaxCode === taxID || taxIDKey === taxID);
}
WorkspaceEditTaxPage
, change the taxID
param to the new taxID param if the currentTaxID
is different from taxID
const currentTaxID = PolicyUtils.getCurrentTaxID(policy, taxID);
const currentTaxRate = currentTaxID && policy?.taxRates?.taxes?.[currentTaxID];
useEffect(() => {
if (currentTaxID === taxID || !currentTaxID) {
return;
}
navigation.setParams({taxID: currentTaxID})
}, [navigation, taxID, currentTaxID])
NA
https://github.com/user-attachments/assets/cf9acd66-def5-4367-81dc-832c6588157a
@nkdengineer 's proposal looks good to me. I think it makes sense to apply similar fix as editing tag/catetory to avoid displaying not here page briefly.
πππ C+ reviewed
Triggered auto assignment to @mountiny, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
π£ @eh2077 π An offer has been automatically sent to your Upwork account for the Reviewer role π Thanks for contributing to the Expensify app!
π£ @nkdengineer π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.12-0 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-08-02. :confetti_ball:
For reference, here are some details about the assignees on this 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:
@eh2077 please handle BZ checklist so we can prep to issue payment this week
Do we agree π or π
There's actually already an existing regression test for this so we should be good to go there.
Checklist is all set! All set to issue payment soon
All set to issue payment! We need to pay:
@nkdengineer $250 sent and contract ended!
@eh2077 $250 sent and contract ended!
Upwork job closed.
All set, thanks everyone!
If you havenβt already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.10-4 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers): rybkina+071824@gmail.com Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The tax code should edit and and save
Actual Result:
Hm it's not here shown when edit the tax code and save
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/eafa06bf-78fa-469b-9ac7-6d7d05587407
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @joekaufmanexpensify