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

[Workspace Feeds] Web - Card - Added bank account isn't showing for Expensify Card #47239

Closed
1 of 6 tasks
IuliiaHerets opened this issue Aug 12, 2024 · 24 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Reviewing Has a PR in review

Comments

@IuliiaHerets
Copy link

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: 9.0.19-0
Reproducible in staging?: Y
Reproducible in production?: Can't check
Issue was found when executing this PR #46860
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:

Action Performed:

  1. Navigate to https://staging.new.expensify.com/
  2. Log in with a new Expensifail account
  3. Create a workspace
  4. Navigate to Workspace settings - More features
  5. Enable "Expensify Card"
  6. Enable "Workflows"
  7. Navigate to Workflows - Connect bank account
  8. Add Regions bank with plaid
  9. Navigate to Workspace settings - Expensify Card
  10. Click on the "Issue new card" button

Expected Result:

I should be able to see and choose the existing bank account.

Actual Result:

Added bank account isn't showing for Expensify Card. I can add the missing bank account if I go a step further and click on "Add a new bank account". The bank account also shows up after a relog.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6569878_1723469823410.bandicam_2024-08-12_15-24-30-297.mp4

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Aug 12, 2024
Copy link

melvin-bot bot commented Aug 12, 2024

Triggered auto assignment to @abekkala (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Aug 12, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Aug 12, 2024
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.

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-collect - Release 2

@robertjchen robertjchen added Daily KSv2 and removed DeployBlocker Indicates it should block deploying the API DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Aug 12, 2024
@mountiny mountiny changed the title Web - Card - Added bank account isn't showing for Expensify Card [Workspace Feeds] Web - Card - Added bank account isn't showing for Expensify Card Aug 12, 2024
@mountiny
Copy link
Contributor

@IuliiaHerets Can you please check if this is reliably repro by other testers or across platforms?

cc @koko57 @VickyStash for viz

@mountiny mountiny self-assigned this Aug 12, 2024
@mountiny
Copy link
Contributor

Happy to take over Robert if you want

@IuliiaHerets
Copy link
Author

@mountiny As soon as the team has checked, I'll get back to you with an answer

@koko57
Copy link
Contributor

koko57 commented Aug 13, 2024

looks like the same root cause like in this one: #45729
so either we don't receive a properly formatted data or the account is not eligible (but in the second case we should be redirected to VBBA, it should have been fixed by my last merged PR #46564)

@IuliiaHerets
Copy link
Author

@mountiny QA Team still can reproduce the issue on different platforms (Web, iOS app, Android app). Build - v9.0.19-9

DFVL1178.MP4
bandicam.2024-08-13.12-04-39-384.mp4
az_recorder_20240813_121312.mp4

@koko57
Copy link
Contributor

koko57 commented Aug 13, 2024

The problem is definitely with the format we get from AcceptACHContractForBankAccount and OpenPaymentsPage API calls - we don't get a bank account with type and allowDebit properties - that's why we get an empty list. Before we've filtered out eligible bank account we had the problem described in this issue #45729

here's how we get the data for AcceptACHContractForBankAccount
Screenshot 2024-08-13 at 15 16 33
Screenshot 2024-08-13 at 15 16 44

and for OpenPaymentsPage
Screenshot 2024-08-13 at 15 17 40
Screenshot 2024-08-13 at 15 36 32

We could possibly call OpenPaymentsPage when we click Issue New Card, but it would be much better to unify how the data is sent from the backend and maybe change the onyx method in the OpenPaymentsPage from set to merge

cc @mountiny

@mountiny
Copy link
Contributor

I will have a look thanks!

@mountiny mountiny added the Reviewing Has a PR in review label Aug 14, 2024
@mountiny
Copy link
Contributor

PR is up here https://github.com/Expensify/Auth/pull/12043 that should start returning these properties

@robertjchen robertjchen removed their assignment Aug 14, 2024
@mountiny
Copy link
Contributor

@koko57 @DylanDylann @allgandalf could you please retest this? Now the AcceptACHContractForBankAccount should return the bank account with the type and allowDebit too

@koko57
Copy link
Contributor

koko57 commented Aug 20, 2024

I will retest it today

@koko57
Copy link
Contributor

koko57 commented Aug 20, 2024

@mountiny
So this issue is solved - we get type and allowDebit and the account is showing in the account list.
Screenshot 2024-08-20 at 14 40 33

Screenshot 2024-08-20 at 15 08 35

We still have the #45729 problem, because we still don't get accountNumber in the AcceptACHContractForBankAccount. But this can be solved by using mask property from additionalData.

cc @s77rt

Copy link

melvin-bot bot commented Aug 22, 2024

@abekkala, @mountiny Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Aug 26, 2024

@abekkala, @mountiny Still overdue 6 days?! Let's take care of this!

@mountiny
Copy link
Contributor

@koko57 The backend changes for this are deployed now, can you check if you can still repro your issue?

@koko57
Copy link
Contributor

koko57 commented Aug 27, 2024

@mountiny accountNumber is sent now but not the same way it is sent in OpenPaymentsPage - we get this in accountData in OpenPaymentsPage when in AcceptACHContractForBankAccount in the bankAccount object
Screenshot 2024-08-27 at 15 35 12
Screenshot 2024-08-27 at 15 32 47

@mountiny
Copy link
Contributor

@koko57 damn ok updating this, I must have mixed it up in the previous screenshots.

@koko57
Copy link
Contributor

koko57 commented Aug 29, 2024

@mountiny please let me know when it's ready to retest

@mountiny
Copy link
Contributor

mountiny commented Sep 2, 2024

@koko57 This is ready to test, can you please have a look?

@koko57
Copy link
Contributor

koko57 commented Sep 2, 2024

Screenshot 2024-09-02 at 14 05 12

Confirming it's working - bank account is showing after adding it.

cc @mountiny

@mountiny
Copy link
Contributor

mountiny commented Sep 2, 2024

So I believe we can close this one now, thank you for confirming

@mountiny mountiny closed this as completed Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Reviewing Has a PR in review
Projects
Status: Done
Development

No branches or pull requests

5 participants