-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Create new API command: ConnectBankAccountManually #10987
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
Conversation
|
OFF WIP and ready for review! |
tylerkaraszewski
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few comments. They're mostly just about my lack of understanding rather than requests to change anything.
| optimisticData: [ | ||
| { | ||
| onyxMethod: CONST.ONYX.METHOD.MERGE, | ||
| key: ONYXKEYS.REIMBURSEMENT_ACCOUNT, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgive me for asking "dumb" onyx questions, but I don't work in this code very much.
In what cases would onyxMethod and key be different for optimisticData, successData and failureData? It seems like these would always be the same? Maybe a failure would clear out an existing key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least in most cases, they'll be the same, but sometimes a failure could also modify a _DRAFT key. I don't think I've seen any cases where the methods differ, but maybe a failure could clear out a key in certain cases (although, in most cases, it'll just clean up the content of the key)
src/libs/actions/ReimbursementAccount/setupWithdrawalAccount.js
Outdated
Show resolved
Hide resolved
| BankAccounts.connectBankAccountManually( | ||
| this.state.accountNumber, | ||
| this.state.routingNumber, | ||
| '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In what cases is this not blank?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm waiting on the PR for the automated flow (this is the manual one) to fully implement this. For Chase bank accounts, we need to ask people to enter the info manually afterwards (through this flow). In those cases, we'll pass the info we got from the automated flow in this parameter, so we can check the manually entered one is correct. It is basically a corner-ish case.
src/libs/actions/ReimbursementAccount/setupWithdrawalAccount.js
Outdated
Show resolved
Hide resolved
src/libs/actions/ReimbursementAccount/setupWithdrawalAccount.js
Outdated
Show resolved
Hide resolved
|
Comments addressed! |
MariaHCD
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've got a couple linter errors
|
Comments readdressed! |
dangrous
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updates look good and all comments addressed!
MariaHCD
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to update this due to: #11162 (comment)
|
#11162 has been merged on main - please merge main on your branch |
e155156
|
OFF HOLD! Ready for review! |
MariaHCD
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Could you also add test steps for connecting a Chase bank account with Plaid and verifying that we ask the user to enter the bank account numbers manually
I Added them to the QA section! I don't have a Chase account to test them 🤷 |
These are the test credentials for any Plaid banks: |
|
@MariaHCD looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
|
Merged without contributor+ checklist passing but all other tests succeeded. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
write 1234 :)
…On Tue, Sep 27, 2022 at 12:20 PM OSBotify ***@***.***> wrote:
✋ This PR was not deployed to staging yet because QA is ongoing. It will
be automatically deployed to staging after the next production release.
—
Reply to this email directly, view it on GitHub
<#10987 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASZRZ4AHHVVTIYJXJBAMTDWALC5NANCNFSM6AAAAAAQMKUON4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
🚀 Deployed to production by @roryabraham in version: 1.2.8-0 🚀
|
Create new API command: ConnectBankAccountManually
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/226849
Tests
Connect with Plaidand follow the steps to connect your Chase bank account via Plaid.Connect Manuallyflow (Chase is a special case).PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)QA Steps
Same as tests. It'd be nice to ping someone with a
Chaseaccount that can test the Chase part.Screenshots
Web
Mobile Web
Desktop
iOS
Android