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

[$500] Assigned cards have the bank name only without last 4 digits of card number #36869

Closed
6 tasks done
izarutskaya opened this issue Feb 20, 2024 · 30 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@izarutskaya
Copy link

izarutskaya commented Feb 20, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Found when validating PR : #35885

Version Number: 1.4.43-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation:

Action Performed:

  1. Assign a third party card feed to a test account in OldDot following these steps:
  2. Navigate to Settings > Domains > Import Card to add the test card feed
  3. Search ‘Discover’
  4. Enter the login ‘expensifydemo’ and the password ‘#USD’
  5. Assign the single available card to your test account
  6. Navigate to NewDot and go to your Wallet > Assigned cards
  7. Verify "bankName - lastFourDigits" shown for each card in Assigned cards menu

Expected Result:

"bankName - lastFourDigits" shown for each card in Assigned cards menu

Actual Result:

Assigned cards have the bank name only without last 4 digits of card number

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Bug6385376_1708410390197.35885_Desktop.mp4
Bug6385376_1708410390210.35885_mWeb.mp4
Bug6385376_1708410390215.35885_Android.mp4
Bug6385376_1708410390217.35885_Web.mp4
Bug6385376_1708410390217.35885_iOS.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016608e25454a96698
  • Upwork Job ID: 1759902287781416960
  • Last Price Increase: 2024-02-27
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 20, 2024
Copy link

melvin-bot bot commented Feb 20, 2024

Triggered auto assignment to @MitchExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@izarutskaya
Copy link
Author

I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

We think that this bug might be related to #wave8-collect-admins
CC @zanyrenney

@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment External Added to denote the issue can be worked on by a contributor labels Feb 20, 2024
@melvin-bot melvin-bot bot changed the title Assigned cards have the bank name only without last 4 digits of card number [$500] Assigned cards have the bank name only without last 4 digits of card number Feb 20, 2024
Copy link

melvin-bot bot commented Feb 20, 2024

Job added to Upwork: https://www.upwork.com/jobs/~016608e25454a96698

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 20, 2024
Copy link

melvin-bot bot commented Feb 20, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary (External)

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

Copy link

melvin-bot bot commented Feb 20, 2024

Triggered auto assignment to @youssef-lr (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@izarutskaya izarutskaya added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment External Added to denote the issue can be worked on by a contributor Engineering Hourly KSv2 labels Feb 20, 2024
@youssef-lr
Copy link
Contributor

@izarutskaya is this reproducible in production? If yes then we can remove the blocker.

@aeioual
Copy link
Contributor

aeioual commented Feb 20, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Assigned cards have the bank name only without last 4 digits of card number

What is the root cause of that problem?

We are printing bank instead of cardName on the FE:

const cartTitle = card.lastFourPAN ? `${card.bank} - ${card.lastFourPAN}` : card.bank;

image

What changes do you think we should make in order to solve the problem?

We should directly print out card.cardName instead:

const cartTitle = card.cardName ? `${card.cardName}` : card.bank;

What alternative solutions did you explore? (Optional)

N/A

@allgandalf
Copy link
Contributor

allgandalf commented Feb 20, 2024

regression from: #35885 #35685

@youssef-lr
Copy link
Contributor

Thanks @GandalfGwaihir! I've let the contributor know.

@chiragsalian
Copy link
Contributor

chiragsalian commented Feb 21, 2024

I'm unsure why deploy blocker label was removed here. i don't see a comment explaining why it was removed and the issue description says its not reproducible on production so i am re-adding the label. If i am mistaken feel free to correct me.

Also adding back external label since it looks like it can be tackled by contributors.

@chiragsalian chiragsalian added the DeployBlockerCash This issue or pull request should block deployment label Feb 21, 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.

Copy link

melvin-bot bot commented Feb 21, 2024

Current assignee @ntdiary is eligible for the External assigner, not assigning anyone new.

Copy link

melvin-bot bot commented Feb 21, 2024

Current assignee @youssef-lr is eligible for the Engineering assigner, not assigning anyone new.

@chiragsalian chiragsalian removed the Daily KSv2 label Feb 21, 2024
@ghost
Copy link

ghost commented Feb 21, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Assigned cards have the bank name only without last 4 digits of card number

What is the root cause of that problem?

The root cause here is that firstly it is coming from the regression of this PR - #35885, we are passing card.bank.

const cartTitle = card.lastFourPAN ? `${card.bank} - ${card.lastFourPAN}` : card.bank;

What changes do you think we should make in order to solve the problem?

To resolve this issue, we must pass card.cardName instead, this will resolve the issue completely.

Result

Screenshot 2024-02-22 at 1 34 33 AM

What alternative solutions did you explore? (Optional)

Since, my this comment, I tried to figure out a way to display "bankName - lastFourDigits" is firstly , we need to extract the lastFourDigits of the PAN using

                const panNumber = card.cardName.split('- ');
                const lastFourPan = panNumber[panNumber.length - 1];

from the card.cardName and after that we need to add it here :

const cartTitle = card.lastFourPAN ? `${card.bank} - ${card.lastFourPAN}` : card.bank;

like this : const cartTitle = card.bank ? `${card.bank} - ${lastFourPan}` : card.bank;.

Result

Screenshot 2024-02-22 at 2 58 27 AM Screenshot 2024-02-22 at 2 59 07 AM

@ghost
Copy link

ghost commented Feb 21, 2024

One more thing that I have discovered from the API calls is that, lastFourPAN is always empty. That's why I believe it is not possible to display bankName along with lastFourPAN

cc - @MitchExpensify @ntdiary @youssef-lr

Screenshot 2024-02-22 at 2 16 30 AM

Without PAN, this is the thing that can be achieved

Screenshot 2024-02-22 at 2 42 53 AM

@ghost
Copy link

ghost commented Feb 21, 2024

updated Proposal

@rushatgabhane
Copy link
Member

discussion here https://expensify.slack.com/archives/C01GTK53T8Q/p1708558924151619

@marcochavezf
Copy link
Contributor

Created a PR to always send the lastFourPAN from the backend

@rushatgabhane
Copy link
Member

Thanks a lot @marcochavezf 🙇

@ntdiary
Copy link
Contributor

ntdiary commented Feb 23, 2024

Oops, I didn't notice this blocker, but maybe @rushatgabhane can take over it? (I still have many other issues to review) 😂

@rushatgabhane
Copy link
Member

it's backend only mostly @ntdiary

@MitchExpensify MitchExpensify added Daily KSv2 and removed Hourly KSv2 labels Feb 23, 2024
@marcochavezf
Copy link
Contributor

This has been addressed in a backend fix. Removing the deploy blocker since. @izarutskaya we can check it off since it's not testable now

@marcochavezf marcochavezf removed the DeployBlockerCash This issue or pull request should block deployment label Feb 23, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 26, 2024
@MitchExpensify
Copy link
Contributor

This looks like an improvement but I'm not sure this fits into a wave or VIP

image

@melvin-bot melvin-bot bot removed the Overdue label Feb 26, 2024
Copy link

melvin-bot bot commented Feb 27, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@ghost
Copy link

ghost commented Feb 27, 2024

Hey @MitchExpensify is this issue still open? Can you please review my proposal?

@youssef-lr
Copy link
Contributor

@marcochavezf we can close this right?

@marcochavezf
Copy link
Contributor

I think the backend fix was deployed to production already, so yup we can close it out.

@youssef-lr
Copy link
Contributor

Nice thanks.

@youssef-lr
Copy link
Contributor

Assigning you for points :D

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 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

9 participants