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 2024-03-26] [$500] BA - Not able to add Regions BA, modal redirects to initial Bank account page #38069

Closed
2 of 6 tasks
izarutskaya opened this issue Mar 11, 2024 · 62 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@izarutskaya
Copy link

izarutskaya commented Mar 11, 2024

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: v1.4.50-2
Reproducible in staging?: Y
Reproducible in production?: Unable to check
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4413762
Email or phone of affected tester (no customers): applausetester+vd_mweb031124@applause.expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

Pre-requisite: user must be logged in on mWeb/Safari (iPhone) and must have created a Workspace.

  1. Go to Workspace > Bank account.
  2. Select Connect online with Plaid.
  3. Select Regions bank and use the testing credentials.

Expected Result:

The page to confirm the account should be displayed.

Actual Result:

The modal redirects to the initial add bank account page.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6409977_1710179297819.Lswv1474_1_.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a531e07d9e5f1c52
  • Upwork Job ID: 1767269083257348096
  • Last Price Increase: 2024-03-11
  • Automatic offers:
    • shubham1206agra | Reviewer | 0
    • abzokhattab | Contributor | 0
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 11, 2024
@github-actions github-actions bot removed the Daily KSv2 label Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

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

Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Hourly KSv2 labels Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

Triggered auto assignment to @chiragsalian (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@izarutskaya
Copy link
Author

@chiragsalian I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@dylanexpensify
Copy link
Contributor

commented here

@chiragsalian
Copy link
Contributor

I'm pretty sure this is external since it's happening only on mWeb. Assigning external label.

@chiragsalian chiragsalian added the External Added to denote the issue can be worked on by a contributor label Mar 11, 2024
@melvin-bot melvin-bot bot changed the title BA - Not able to add Regions BA, modal redirects to initial Bank account page [$500] BA - Not able to add Regions BA, modal redirects to initial Bank account page Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01a531e07d9e5f1c52

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (External)

@abzokhattab
Copy link
Contributor

abzokhattab commented Mar 11, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Not able to add Regions BA, modal redirects to initial Bank account page

What is the root cause of that problem?

The PlaidLink opens the connection multiple times because of the following useEffect, since the onError is a function that doesn't have dependencies causing it to rerender:

useEffect(() => {
if (error) {
onError(error);
return;
}
if (!ready) {
return;
}
if (!isPlaidLoaded) {
return;
}
open();
}, [ready, error, isPlaidLoaded, open, onError]);

What changes do you think we should make in order to solve the problem?

there is no need to add the onError to the dependency list of the useEffect since we already have the error object inside the dependencies list so it should call the useEffect in case the error changes:

    // eslint-disable-next-line react-hooks/exhaustive-deps
    }, [ready, error, isPlaidLoaded, open]);

this way the Plaid component behaviour will be consistent and the useEffect will not depend on whether the incoming onError prop has a dependencies list or not

also, we can remove the open function from the dependencies as well since we don't know what the dependencies of this function but this step is optional in solving our issue

POC

Screen.Recording.2024-03-13.at.12.56.53.PM.mov

@shubham1206agra
Copy link
Contributor

@abzokhattab Can you mark the offending PR as this is deploy blocker?

@abzokhattab
Copy link
Contributor

Does that mean its not occurring on production? As far as i can see we were not able to test it on prod

@abzokhattab
Copy link
Contributor

abzokhattab commented Mar 12, 2024

Thanks, honestly I am not able to find it i just checked the differences between staging and production and I see that all the changes are not related to the bank setup.

production...staging

let me know if you are able to find any

@shubham1206agra
Copy link
Contributor

Can you confirm the repro of the issue on staging? And on https://36676.pr-testing.expensify.com/

@abzokhattab
Copy link
Contributor

abzokhattab commented Mar 12, 2024

Yes, the issue is reproducible on both:

Screen.Recording.2024-03-12.at.4.07.45.AM.mov
Screen.Recording.2024-03-12.at.4.09.12.AM.mov

Copy link

melvin-bot bot commented Mar 19, 2024

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:

  • [@shubham1206agra] The PR that introduced the bug has been identified. Link to the PR:
  • [@shubham1206agra] 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:
  • [@shubham1206agra] 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:
  • [@shubham1206agra] Determine if we should create a regression test for this bug.
  • [@shubham1206agra] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@dylanexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@dylanexpensify
Copy link
Contributor

Payment coming up!

@dylanexpensify
Copy link
Contributor

paying out today!

@shubham1206agra
Copy link
Contributor

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:

@shubham1206agra
Copy link
Contributor

@dylanexpensify I have discussed this internally here. You may close this issue when you issue the payment to other contributor as I am keeping track of payment internally and will ask to pay once the issue is resolved. Just write in the payment summary that I have not been paid yet.

@melvin-bot melvin-bot bot added the Overdue label Apr 5, 2024
@dylanexpensify
Copy link
Contributor

Payment summary:

Please apply/request!

@melvin-bot melvin-bot bot removed the Overdue label Apr 9, 2024
@dylanexpensify
Copy link
Contributor

@bernhardoj please accept offer when ready and I'll pay it out!

@bernhardoj
Copy link
Contributor

@dylanexpensify the offer is broken.
image

@dylanexpensify
Copy link
Contributor

oh weird! Let me send a new one then!

@dylanexpensify
Copy link
Contributor

@bernhardoj sent an invite to apply!

@bernhardoj
Copy link
Contributor

@dylanexpensify applied

@dylanexpensify
Copy link
Contributor

@bernhardoj sent!

@dylanexpensify
Copy link
Contributor

done!

@shubham1206agra
Copy link
Contributor

@dylanexpensify You can process payment here now.

@shubham1206agra
Copy link
Contributor

@dylanexpensify Bump here.

@luacmartins luacmartins reopened this Apr 23, 2024
@luacmartins
Copy link
Contributor

@dylanexpensify seems like we missed paying @shubham1206agra

@dylanexpensify
Copy link
Contributor

Ayy, on it!

@dylanexpensify
Copy link
Contributor

@shubham1206agra invited you to apply 😄

@shubham1206agra
Copy link
Contributor

@dylanexpensify Invitation accepted.

@dylanexpensify
Copy link
Contributor

@shubham1206agra offer sent!

@shubham1206agra
Copy link
Contributor

@dylanexpensify Offer accepted.

@shubham1206agra
Copy link
Contributor

@dylanexpensify Bump on this

@dylanexpensify
Copy link
Contributor

paying now!

@dylanexpensify
Copy link
Contributor

Done!

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. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
Archived in project
Development

No branches or pull requests

8 participants