-
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] Connect Bank Account - Disconnected bank account reappears after re-enabling Payments. #54612
Comments
Triggered auto assignment to @laurenreidexpensify ( |
Edited by proposal-police: This proposal was edited at 2024-12-30 11:32:32 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Connect Bank Account - Disconnected bank account reappears after re-enabling Payments. What is the root cause of that problem?when the toggle is on we set up a new workspace Reimbursement without checking if there's a bank account or not in the policy: App/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx Lines 212 to 215 in 483d287
Basically after we delete BankAccount and when we switch toggle off and on we add back a new one What changes do you think we should make in order to solve the problem?we need to check when toggle is enabled if there's bank account in 'policy' only then we call
Could be improve in PR phase What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?add test to check that component does not call What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~021873775484989346815 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
@M00rish Thanks for the proposal. Your RCA is not correct. After calling
|
@muttmuure adding this as medium but i'll leave it to you to modify if you think otherwise 👍 |
@M00rish Thanks for the update. I'm not sure how your RCA is related here. Did you check if the bank account gets deleted after confirming the modal? (i.e. an API request is made) Also the API you referenced does not add anything new, it already uses |
yes this API command gets executed RESTART_BANK_ACCOUNT_SETUP. when hit confirm disconnect, the bank account is deleted from policy and reimbursementAccount, but when toggle off and on bandicam.2024-12-31.18-34-13-412.mp4plus the EnableBankAccount.tsx component takes reimbursementAccount prop from parent ReimbursementAccountPage.tsx that's why even after creating a new workspace and not connecting any bank account to it, just toggle off and on was enough to add bank account i think either rely on or change from BE reimbursementAccount to be key-value array that would have the policyID and bank account associated with it and then we'll have change both |
@M00rish Looks to be BE related. PS: You can only have one business bank account linked (all the workspaces use that same bank) |
🎀 👀 🎀 Internal |
Triggered auto assignment to @arosiclair, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
👋 @arosiclair Can you please check why BE |
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.79-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): [email protected]
Issue reported by: Applause Internal Team
Device used: Web, mweb
App Component: Workspace Settings
Action Performed:
Precondition - Workspace is created and a fully verified bank account has been added
Expected Result:
The previously disconnected bank account should no longer be visible when attempting to reconnect a bank account in step 5.
Actual Result:
The bank account that was previously disconnected reappears after disabling and re-enabling Payments.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6702810_1735286733111.bandicam_2024-12-27_11-04-32-203.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @s77rtThe text was updated successfully, but these errors were encountered: