Skip to content
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

Delete bank account key from bankAccountList #7557

Merged
merged 3 commits into from
Feb 9, 2022

Conversation

luacmartins
Copy link
Contributor

@luacmartins luacmartins commented Feb 3, 2022

Details

We never delete the bankAccountID key from the bankAccountList object, we just set the value to null here. We end up getting errors when looping over the object and trying to access properties on null - e.g. here and here.

Fixed Issues

$ #7391

Tests

  1. Log into the app
  2. Go to any Workspace and click Connect bank account
  3. Select Connect online with Plaid
  4. Use the info in this SO to add an OPEN bank account.
  5. After Bank connected successfully click on Disconnect bank account
  6. Verify that there is no error and the bank account is deleted.
  • Verify that no errors appear in the JS console

QA Steps

Steps above.

  • Verify that no errors appear in the JS console

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

web.mov

Mobile Web

mweb.mov

Desktop

desktop.mov

iOS

ios.mov

Android

android.mov

@luacmartins luacmartins self-assigned this Feb 3, 2022
@luacmartins luacmartins changed the title Cmartins delete account from bank account list Delete bank account key from bankAccountList Feb 3, 2022
@luacmartins luacmartins marked this pull request as ready for review February 3, 2022 21:49
@luacmartins luacmartins requested a review from a team as a code owner February 3, 2022 21:49
@MelvinBot MelvinBot requested review from Julesssss and removed request for a team February 3, 2022 21:49
@Julesssss
Copy link
Contributor

Hi @luacmartins, I don't think that this is due to your PR, but I am getting redirected to the Routing number / Account number step when trying to add an open account via Plaid 😕

Did you happen to see this during testing? I see it on both main and cmartins-deleteAccountFromBankAccountList. I have updated all repos too. I shared in Slack here for more help.

PlaidRedirect.mov

@luacmartins
Copy link
Contributor Author

I don't recall seeing that particular redirect, but I had some issues with the flow where I wasn't seeing the savings account option - https://expensify.slack.com/archives/C01GTK53T8Q/p1643906776673469

@Julesssss
Copy link
Contributor

Hmm, I'm still having problems after rebuilding the vm, and I'm not seeing any logs which stand out to me. I'm not sure what else to try at this point. I might need to reprovision as a last resort.

@Julesssss
Copy link
Contributor

I reprovisioned today, created a new account, but I see the same issue 😞

@luacmartins
Copy link
Contributor Author

I updated my repos today and also saw the redirect when selecting Chase. However, it works if I select Wells Fargo. Maybe it's related to Nick's comment.

@Julesssss
Copy link
Contributor

Julesssss commented Feb 9, 2022

Alright, sorry for the delay here. Until today I thought the only Plaid staging bank that worked was Chase!

It worked flawlessly on web and mobile once I tested with an open Wells Fargo bank 👍

@luacmartins
Copy link
Contributor Author

luacmartins commented Feb 9, 2022

No worries! Thanks for raising this issue! I updated the SO from Chase to Wells Fargo!

@luacmartins
Copy link
Contributor Author

Self-merging with approval!

@luacmartins luacmartins merged commit 33b768c into main Feb 9, 2022
@luacmartins luacmartins deleted the cmartins-deleteAccountFromBankAccountList branch February 9, 2022 12:53
@OSBotify
Copy link
Contributor

OSBotify commented Feb 9, 2022

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

OSBotify commented Feb 9, 2022

🚀 Deployed to staging by @luacmartins in version: 1.1.38-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @Julesssss in version: 1.1.38-3 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants