-
Notifications
You must be signed in to change notification settings - Fork 3k
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] Bank Account - After deleting the payment method in Wallet, it is displayed in the WS settings #53575
Comments
Triggered auto assignment to @lschurr ( |
Job added to Upwork: https://www.upwork.com/jobs/~021864721429534820736 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ishpaul777 ( |
Edited by proposal-police: This proposal was edited at 2024-12-06 06:08:18 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.After deleting the payment method in Wallet, it is displayed in the WS settings What is the root cause of that problem?We do not clear the What changes do you think we should make in order to solve the problem?When we delete bank account here, we should get all the policies and check if anywhere Onyx.connect({
key: ONYXKEYS.COLLECTION.POLICY,
waitForCollectionCallback: true,
callback: (value) => (allPolicies = value),
});
Object.values(allPolicies ?? {}).forEach((policy) => {
if (policy?.achAccount && policy?.achAccount?.bankAccountID === bankAccountID) {
onyxData?.optimisticData?.push({
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.POLICY}`,
value: {
...allPolicies,
[policy.id]: {
...policy,
achAccount: null,
},
},
});
onyxData?.failureData?.push({
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.POLICY}`,
value: {
...allPolicies,
},
})
}
}); Note that during PR phase we might have to adjust the mapping a bit but this is the approach we need to follow, we might need to add success data as well, this is just overview, details can be done during PR phase What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A this is related to data change, but we can surely have a unit test if needed, we would just need to mock data and expect appropriate policy data What alternative solutions did you explore? (Optional)N/A |
@lschurr, @ishpaul777 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Hi @ishpaul777 - could you review the proposal? |
Sure i'll review in update: Will review tmrw.. |
I think proposal from @twilight2294 should work on FE side but i'll bring a internal engineer to decide if backend changes are plausible. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @marcochavezf, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Sounds good, thanks for the review @ishpaul777, assigning @twilight2294 🚀 |
📣 @ishpaul777 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @twilight2294 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@marcochavezf are the BE changes ready for this one ? Also please take a look at these comments: https://github.com/Expensify/App/pull/54235/files#r1888100521 |
I'll send an auth PR for it, so we remove the achAccount from the policy if no other reimburser owning this bank account exit in the policy |
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.71-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
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): n/a
Issue reported by: Applause Internal Team
Action Performed:
Preconditions: user must be logged in, have created a collect workspace and have connected a bank account.
Expected Result:
The payment account is not displayed in the workspace settings after deleting it.
Actual Result:
After deleting the payment method in Wallet, it's displayed in the WS settings
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ishpaul777The text was updated successfully, but these errors were encountered: