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] [HOLD for payment 2023-12-20] [HOLD for payment 2023-12-18] LHN - Applausecard account is crashing after clicking on any Request in LHN #32727

Closed
6 tasks done
kbecciv opened this issue Dec 8, 2023 · 18 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item.

Comments

@kbecciv
Copy link

kbecciv commented Dec 8, 2023

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: 1.4.10.0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com
  2. Log in with tester@applausecard.expensifail.com
  3. Click on any Request in LHN

Expected Result:

Applausecard account is not crashing after clicking on any Request in LHN

Actual Result:

Applausecard account is crashing after clicking on any Request in LHN

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

Add any screenshot/video evidence

Recording.5661.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0163fa2ca7f62b144d
  • Upwork Job ID: 1738223765809868800
  • Last Price Increase: 2023-12-22
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Dec 8, 2023
Copy link
Contributor

github-actions bot commented Dec 8, 2023

👋 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 Dec 8, 2023

Triggered auto assignment to @arosiclair (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@kbecciv
Copy link
Author

kbecciv commented Dec 8, 2023

Not reproduced on production

Recording.5662.mp4

@situchan
Copy link
Contributor

situchan commented Dec 8, 2023

@kbecciv can you please share console error?

@kbecciv
Copy link
Author

kbecciv commented Dec 8, 2023

@situchan Please attached!

image

@ZhenjaHorbach
Copy link
Contributor

@bernhardoj
Copy link
Contributor

bernhardoj commented Dec 8, 2023

Proposal

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

Crash when opening a money request with EReceipt.

What is the root cause of that problem?

This is a regression from #32498. Here, we use a useMemo to get the bg image, but useMemo function takes no argument/param, so trans is always undefined.

const getBackgroundImage = useMemo((trans) => backgroundImages[StyleUtils.getEReceiptColorCode(trans)], [StyleUtils]);

source={getBackgroundImage(transaction)}

It should be a useCallback if we want to pass an argument.

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

Replace with useCallback

OR

Keep the useMemo and change it like this:

-const getBackgroundImage = useMemo((trans) => backgroundImages[StyleUtils.getEReceiptColorCode(trans)], [StyleUtils]);
+const backgroundImage = useMemo(() => backgroundImages[StyleUtils.getEReceiptColorCode(transaction)], [StyleUtils, transaction]);

<Image
-   source={getBackgroundImage(transaction)}
+   source={backgroundImage}

@situchan
Copy link
Contributor

situchan commented Dec 8, 2023

@grgia can you please add this fix to PR as well?

@grgia
Copy link
Contributor

grgia commented Dec 8, 2023

On it @situchan

@yuwenmemon
Copy link
Contributor

CP'ed! Removing blocker.

@yuwenmemon yuwenmemon removed the DeployBlockerCash This issue or pull request should block deployment label Dec 8, 2023
@melvin-bot melvin-bot bot added Overdue Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Hourly KSv2 labels Dec 11, 2023
@melvin-bot melvin-bot bot changed the title LHN - Applausecard account is crashing after clicking on any Request in LHN [HOLD for payment 2023-12-18] LHN - Applausecard account is crashing after clicking on any Request in LHN Dec 11, 2023
@melvin-bot melvin-bot bot removed the Overdue label Dec 11, 2023
Copy link

melvin-bot bot commented Dec 11, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.10-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-12-18. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

@melvin-bot melvin-bot bot removed the Weekly KSv2 label Dec 13, 2023
@melvin-bot melvin-bot bot added the Weekly KSv2 label Dec 13, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-12-18] LHN - Applausecard account is crashing after clicking on any Request in LHN [HOLD for payment 2023-12-20] [HOLD for payment 2023-12-18] LHN - Applausecard account is crashing after clicking on any Request in LHN Dec 13, 2023
Copy link

melvin-bot bot commented Dec 13, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.11-25 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-12-20. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR — @situchan paid $500 in Upwork as the reviewer

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Dec 18, 2023
@melvin-bot melvin-bot bot removed the Overdue label Dec 20, 2023
@grgia grgia added NewFeature Something to build that is a new item. Overdue labels Dec 20, 2023
@melvin-bot melvin-bot bot added the Overdue label Dec 20, 2023
Copy link

melvin-bot bot commented Dec 20, 2023

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Overdue Daily KSv2 labels Dec 20, 2023
@grgia
Copy link
Contributor

grgia commented Dec 20, 2023

@CortneyOfstad could you help ensure that the $500 C+ review payment is made to @situchan for #32721

@CortneyOfstad CortneyOfstad added the External Added to denote the issue can be worked on by a contributor label Dec 22, 2023
Copy link

melvin-bot bot commented Dec 22, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0163fa2ca7f62b144d

@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-12-20] [HOLD for payment 2023-12-18] LHN - Applausecard account is crashing after clicking on any Request in LHN [$500] [HOLD for payment 2023-12-20] [HOLD for payment 2023-12-18] LHN - Applausecard account is crashing after clicking on any Request in LHN Dec 22, 2023
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 22, 2023
Copy link

melvin-bot bot commented Dec 22, 2023

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Dec 22, 2023
@CortneyOfstad CortneyOfstad removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 22, 2023
@CortneyOfstad
Copy link
Contributor

@situchan I just sent you a proposal in Upwork — please let me know as soon as you accept and I'll get that paid ASAP. Thanks!

@CortneyOfstad
Copy link
Contributor

Paid! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item.
Projects
None yet
Development

No branches or pull requests

8 participants