-
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
PAID [$500] Web - Workspace - After deleting a bank account, workspace options remain available initially #11512
Comments
Triggered auto assignment to @danieldoglas ( |
This is indeed something that should be automatically updated. Checked and can be exported. |
Triggered auto assignment to @laurenreidexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
Triggered auto assignment to @puneetlath ( |
So far from what I can see is that when you disconnect your bank account, you still have access to the "issue cards" page.
This function gets called when you disconnect your bank, so what does it do? Well it tells the API (backend) to update that this user with this and this ID has disconnect there bank account, but then there is no check of that in this page:
There is no check that checks that there is a bank account connect to this user, so it will always show that the cards are ready. in the WorkspaceBankAccountPage is a fix, that checks if there is a bank account yes or the no.
Here on component mount, it checks if there is a bank account connected,
and this function is basically just checking with the backend if this user has a bank account connected. |
@ItsJustTomDev Thanks for proposal. I am not sure I agree with the @kbecciv Can you confirm if its happening only on the Cards page? or other pages too? |
@mananjadhav Its happening on other pages as well. |
@mananjadhav @kbecciv, alright guys, I have not seen the |
@ItsJustTomDev are you still following up on this? Thanks |
@laurenreidexpensify I think we should double this |
ProposalAs @ItsJustTomDev mentioned, when we disconnect bank account, function resetFreePlanBankAccount() {
const bankAccountID = lodashGet(store.getReimbursementAccountInSetup(), 'bankAccountID');
if (!bankAccountID) {
throw new Error('Missing bankAccountID when attempting to reset free plan bank account');
}
if (!store.getCredentials() || !store.getCredentials().login) {
throw new Error('Missing credentials when attempting to reset free plan bank account');
}
const achData = {
useOnfido: true,
policyID: '',
isInSetup: true,
domainLimit: 0,
currentStep: CONST.BANK_ACCOUNT.STEP.BANK_ACCOUNT,
+ state: BankAccount.STATE.DELETED,
};
API.write('RestartBankAccountSetup',
{
bankAccountID,
ownerEmail: store.getCredentials().login,
},
{
optimisticData: [{
onyxMethod: 'merge',
key: ONYXKEYS.REIMBURSEMENT_ACCOUNT,
value: {achData, shouldShowResetModal: false},
},
{
onyxMethod: 'set',
key: ONYXKEYS.REIMBURSEMENT_ACCOUNT_DRAFT,
value: null,
}],
});
Navigation.navigate(ROUTES.getBankAccountRoute());
} |
@kbecciv Can you help me with some form data for Bank Account creation? I am stuck at this step: |
offers sent on Upwork |
@kbecciv Quick bump. Can you help me with the QA steps for this one? |
@mananjadhav Sorry, I missed you message earlier.
|
Okay thanks for the comment @kbecciv. Will I need to upload files with onfido with the given credentials? |
@mananjadhav I don't think you should need to. Did you try it? |
@puneetlath I'll be up in 2 hours, will test and confirm. |
PR Review is done. For some reason the flow didn't work for my usual account. I logged in from another account and the flow with the test information worked. Thanks @kbecciv for the help here. |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist will need to be completed before the issue can be closed:
|
2 similar comments
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
@mananjadhav could you help me with identifying the PR that caused the bug? |
@puneetlath I tried checking the PR, but the file has gone through multiple refactors. I'll try to take another stab at it. |
Issue not reproducible during KI retests. (First week) |
Everyone is hired in Upwork |
Issue not reproducible during KI retests. (Second week) |
Oh this was deployed to prod 8 days ago but for some reason the automation failed to flag it #12279. Updating now. |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist will need to be completed before the issue can be closed:
|
@bernhardoj @mananjadhav payments have been issued in Upwork |
@mananjadhav any luck with the offending PR? |
Well @puneetlath not so much. I traced the changes to the following PRs:
To further find the offending PR, I'll have to dig further to get the context of the changes. Do one of these PRs help? |
Issue not reproducible during KI retests. (Third week) Can we close it? |
I'm just having an internal convo here on whether we want to include this in regression testing. As soon as that is firmed I'll close this! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Workspace options become unavailable
Actual Result:
Workspace options remain available initially after disconnect bank account
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.11.2.0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers): any
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug5758053_Recording__2136.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: