-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Create new API command: ConnectBankAccountManually #10987
Conversation
OFF WIP and ready for review! |
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! |
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! |
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!
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! |
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 Plaid
and follow the steps to connect your Chase bank account via Plaid.Connect Manually
flow (Chase is a special case).PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is 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 Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)QA Steps
Same as tests. It'd be nice to ping someone with a
Chase
account that can test the Chase part.Screenshots
Web
Mobile Web
Desktop
iOS
Android