-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-04-24] [$2000] Connect Bank Account - Plaid triggered again after several clicks on selector page in offline mode #15861
Comments
Triggered auto assignment to @slafortune ( |
Bug0 Triage Checklist (Main S/O)
|
@slafortune Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@slafortune Eep! 4 days overdue now. Issues have feelings too... |
Looks like the external label should be used here 👍 |
Job added to Upwork: https://www.upwork.com/jobs/~01f856df63ae19dee5 |
Current assignee @slafortune is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav ( |
Triggered auto assignment to @grgia ( |
No proposals yet |
@slafortune @grgia @0xmiroslav this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Plaid triggered again after go online again in the select bank accounts screen What is the root cause of that problem?The root cause is come from this PR https://github.com/Expensify/App/pull/14827/files#diff-2a35d342f7be1cc5c1a8f02937f635a5c7083ec66b64b400027d65087d400e09R90-R98 Which it always re-run Plaid again when we are coming back from offline What changes do you think we should make in order to solve the problemI think we can add more condition to skip re-run logic as metioned in the RCA to match with our new expectation. More details, in this case, we would like keep the page as it's if user already logged in with Plaid. There are 2 cases here:
If either 2 above cases are satisfy, we can assume user has finished Plaid bank login step and don't re-run Plaid again we are coming back from offline. Beside that, I found that those logics also used in the componentDidAmount so we can make a function to implement those logics, then reuse it in both componentDidAmount and componentDidUpdate places Code reference: const haveFinishedPlaidBankLogin = () => (
!_.isEmpty(lodashGet(this.props.plaidData, 'bankAccounts'))
|| !_.isEmpty(lodashGet(this.props.plaidData, 'errors'))
);
if (!prevProps.network.isOffline || this.props.network.isOffline || haveFinishedPlaidBankLogin()) {
return;
} |
@hoangzinh thanks for your proposal. You explained root cause correctly but not about solution. |
That's explain why I couldn't pass step authentication in Plaid. Last week, I tried on local dev but unsuccessfully so I read code and do some check on staging directly to come with current proposal.
Might be you're right. I just looked at the code here and make a guest on that condition, may be I missed 'bankName' 🤔 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.0-2 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-04-24. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
Follow up with this comment #15861 (comment) @situchan and I discussed internally and we're happy with this split:
To be clear:
Please help us on it after the payment hold date. |
https://ex-syt.glitch.me/?issue=15861&pr=17136 Here's the Issue timeline analysis: 💰 Timeline Bonus/Penalty: 50% Bonus! 🎉 |
Friendly bump for payment date. |
cc @slafortune for payments |
Sorry for my delay - sent offers to you both @hoangzinh and @situchan |
@slafortune You sent an offer to me as well by mistake 😄 |
Alrighty - all squared away! Thanks so much @allroundexperts ! NOW I've sent you an offer @situchan |
@slafortune please send offer to me too 🙂 |
Sorry about that @0xmiroslav ! What a struggle today 😂 - sent you an offer too! |
@slafortune accepted, thanks! |
@slafortune I am also eligible for 50% bonus in case you missed. Thanks |
OH my gosh @0xmiroslav ! No, I knew it, just totally forgot to update that in the original! - - - sorry for the extra run around on this fabulous Friday! Another invite sent! |
@slafortune accepted, thanks |
@slafortune are we good to close this one out? |
@slafortune no PRs caused regression but missed this edge case while refactoring VBBA setup flow in #11162. As this is unusual scenario, no regression test needed. |
Great! Thanks so much @0xmiroslav ! |
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:
Expected Result:
User can proceed with submitting chosen account
Actual Result:
Plaid triggered again after several clicks on selector page in offline mode
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.82.3
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug5972180_video_51.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: