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

[HOLD for payment 2023-02-01] Console error appears when clicking Save&Continue without selecting the bank account after successful plaid flow. #13598

Closed
kavimuru opened this issue Dec 14, 2022 · 18 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff

Comments

@kavimuru
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Select Connect bank account for any workspace
  2. Choose connect online with plaid option
  3. Complete the plaid selection flow by selecting multiple accounts
  4. After navigating to our app try to click Save and continue button without selecting account from the dropdown
  5. Observe the console as it will throw an error

Expected Result:

Should show the related error(Choose the account plz) and console error shouldn’t be there

Actual Result:

Console error(Cannot read properties of undefined (reading ‘routingNumber’))

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platform:

Where is this issue occurring?

  • Web

Version Number: 1.2.39-0
Reproducible in staging?: y
Reproducible in production?: Could not check
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Recording.1102.mp4
Screen.Recording.2022-12-14.at.7.11.10.PM.mov

Expensify/Expensify Issue URL:
Issue reported by: @Pujan92
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1671026877428529

View all open jobs on GitHub

@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 14, 2022
@melvin-bot
Copy link

melvin-bot bot commented Dec 14, 2022

Triggered auto assignment to @flaviadefaria (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot locked and limited conversation to collaborators Dec 14, 2022
@thienlnam thienlnam self-assigned this Dec 14, 2022
@thienlnam thienlnam added the Internal Requires API changes or must be handled by Expensify staff label Dec 14, 2022
@thienlnam
Copy link
Contributor

Nabbing this and taking it internal to complete - you shouldn't be able to hit Save & Continue without selecting the bank account

@thienlnam
Copy link
Contributor

I've been digging into this and found out why this happens

When we load that page, we get the selectedPlaidAccountID from

const selectedPlaidAccountID = ReimbursementAccountUtils.getDefaultStateForField(this.props, 'plaidAccountID', '');

the reimbursement account draft

function getDefaultStateForField(props, fieldName, defaultValue = '') {
return lodashGet(props, ['reimbursementAccountDraft', fieldName])
|| lodashGet(props, ['reimbursementAccount', 'achData', fieldName], defaultValue);
}

Basically, if we've already gotten to this step and select an account, we'll have stored the bank account in that onyx key. So when you come back to it, it grabs that selectedAccountID from the old bank account

@thienlnam
Copy link
Contributor

An easy way to reproduce is

  1. Create a workspace, add a new bank account and select a bank account on that screen
  2. Exit out, and then go through the process again connecting with plaid and notice that even when you are shown 'Choose an account', the button is visible.

You can just fix it by signing out which will clear your onyx data.

This problem only happens when you decide to go back and reconnect to another bank account with plaid.

@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Dec 16, 2022
@nkuoch nkuoch self-assigned this Dec 19, 2022
@nkuoch
Copy link
Contributor

nkuoch commented Dec 19, 2022

Should be fixed by #13236

@flaviadefaria
Copy link
Contributor

As a note, I'm going to be OOO from Dec 23rd to January 9th. In case this needs to be paid before the week of January 9th then please reassign.

@flaviadefaria
Copy link
Contributor

@nkuoch and @thienlnam can I close this GH given this will be fixed by #13236?

@nkuoch
Copy link
Contributor

nkuoch commented Jan 10, 2023

Let's keep it open, and it will close once the PR is deployed. Meanwhile, let's just switch it to weekly

@nkuoch nkuoch added Weekly KSv2 and removed Daily KSv2 labels Jan 10, 2023
@melvin-bot melvin-bot bot unlocked this conversation Jan 10, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jan 17, 2023

@nkuoch, @thienlnam, @flaviadefaria Whoops! This issue is 2 days overdue. Let's get this updated quick!

@thienlnam
Copy link
Contributor

Linked PR #13236 is in review

@melvin-bot
Copy link

melvin-bot bot commented Jan 24, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jan 25, 2023
@melvin-bot melvin-bot bot changed the title Console error appears when clicking Save&Continue without selecting the bank account after successful plaid flow. [HOLD for payment 2023-02-01] Console error appears when clicking Save&Continue without selecting the bank account after successful plaid flow. Jan 25, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jan 25, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Jan 25, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.58-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-02-01. 🎊

After the hold period, please check if any of the following need payment for this issue, and if so check them off after paying:

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Jan 25, 2023

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:

  • [@nkuoch / @thienlnam] The PR that introduced the bug has been identified. Link to the PR: I think the bug has always been there
  • [@nkuoch / @thienlnam] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: N/A
  • [@nkuoch / @thienlnam] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
  • [@flaviadefaria] A regression test has been added or updated so that the same bug will not reach production again. Link to the GH issue for creating the test here: https://github.com/Expensify/Expensify/issues/257636

@flaviadefaria
Copy link
Contributor

Switching this back to daily so that I don't miss payment.

@flaviadefaria flaviadefaria added Daily KSv2 and removed Weekly KSv2 labels Jan 26, 2023
@melvin-bot melvin-bot bot added the Overdue label Jan 30, 2023
@flaviadefaria
Copy link
Contributor

Chill Melvin, I'm only paying them on the 1st.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jan 30, 2023
@flaviadefaria
Copy link
Contributor

I'm going to issue payment to @Pujan92 for reporting the bug. Once that's done are we good to close this @nkuoch and @thienlnam?

@melvin-bot melvin-bot bot removed the Overdue label Feb 1, 2023
@flaviadefaria
Copy link
Contributor

Payment has been made to @Pujan92. I'm going to close this, but please reopen it in case I missed something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

4 participants