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

[Paid] Android - IOU - App crashes when adding a receipt from gallery in confirmation page #32865

Closed
1 of 6 tasks
lanitochka17 opened this issue Dec 11, 2023 · 35 comments
Closed
1 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@lanitochka17
Copy link

lanitochka17 commented Dec 11, 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.11-1
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. Launch New Expensify app
  2. Go to 1:1 DM > + > Request money
  3. Enter amount and proceed to confirmation page
  4. Tap 3-dot menu > Add receipt
  5. Upload a receipt from gallery

Expected Result:

App does not crash

Actual Result:

App crashes

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

Bug6309601_1702326171227.Screen_Recording_20231212_011607_New_Expensify.mp4

logs.txt

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @JmillsExpensify
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Dec 11, 2023
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 Dec 11, 2023

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

@mkhutornyi
Copy link
Contributor

Proposal

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

Android - IOU - App crashes when adding a receipt from gallery in confirmation page

What is the root cause of that problem?

App crashes on this line:

_.some(participants, (participant) => participant.searchText.toLowerCase().includes(searchTerm.trim().toLowerCase())),

participant.searchText is undefined. Why?

After scanning receipt, there's no navigation goBack logic.

This doesn't happen when capture photo from camera because that logic is here:

if (backTo) {
Navigation.goBack(backTo);
return;
}

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

Apply same logic above to gallery picker:

This bug also happens on mWeb, when capture photo. The fix is same as above so add navigation goBack logic here:

similar to here: (document picker)
if (backTo) {
Navigation.goBack(backTo);
return;
}

@luacmartins
Copy link
Contributor

@mkhutornyi are you able to work on a PR within the next hour?

@mkhutornyi
Copy link
Contributor

yes, I am

@mkhutornyi
Copy link
Contributor

For speed-up, I can raise one PR for 2 issue fixes.
Here's another one - #32844 I found root cause & solution

@luacmartins luacmartins assigned luacmartins and mkhutornyi and unassigned grgia Dec 12, 2023
@luacmartins
Copy link
Contributor

Cool, assigned you to the issue. Let me know when the PR is ready

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Dec 12, 2023
@luacmartins
Copy link
Contributor

Tested in staging. This is a pass.

@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Dec 12, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Dec 13, 2023
@melvin-bot melvin-bot bot changed the title Android - IOU - App crashes when adding a receipt from gallery in confirmation page [HOLD for payment 2023-12-20] Android - IOU - App crashes when adding a receipt from gallery in confirmation page Dec 13, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 13, 2023
Copy link

melvin-bot bot commented Dec 13, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

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

For reference, here are some details about the assignees on this issue:

  • @mkhutornyi is contributor requires payment (Needs manual offer from BZ).
  • @parasharrajat is C+ requires payment (Needs manual offer from BZ).

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

melvin-bot bot commented Jan 1, 2024

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

@parasharrajat
Copy link
Member

@strepanier03 This issue is completed and waiting on payments.

@mkhutornyi is a PR author.
@parasharrajat is C+.

@parasharrajat
Copy link
Member

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

Regression Test Steps

  1. Launch New Expensify app
  2. Go to 1:1 DM > + > Request money
  3. Enter amount and proceed to confirmation page
  4. Tap 3-dot menu > Add receipt
  5. Upload a receipt from gallery.
  6. Observe that receipt is uploaded successfully.

Do you agree 👍 or 👎 ?

Copy link

melvin-bot bot commented Jan 3, 2024

@strepanier03, @luacmartins, @mkhutornyi Eep! 4 days overdue now. Issues have feelings too...

@strepanier03
Copy link
Contributor

Been OoO but back in now. Working on payments.

@melvin-bot melvin-bot bot removed the Overdue label Jan 4, 2024
@strepanier03
Copy link
Contributor

Regression test made and bug checklist is done.

I've sent offers to both @parasharrajat and @mkhutornyi. I'll check back in tomorrow.

@strepanier03
Copy link
Contributor

Waiting for offers to be accepted and then I'll pay out. I'll check again tomorrow.

@parasharrajat
Copy link
Member

I will request it on NewDot later. Could you please post a summary here? Feel free to close the issue when you are done paying others. Thanks.

@melvin-bot melvin-bot bot added the Overdue label Jan 8, 2024
Copy link

melvin-bot bot commented Jan 8, 2024

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

@strepanier03
Copy link
Contributor

Got it, will do that shortly @parasharrajat.

@melvin-bot melvin-bot bot removed the Overdue label Jan 9, 2024
@strepanier03
Copy link
Contributor

@mkhutornyi - I've paid you in Upwork and closed the contract.

@strepanier03
Copy link
Contributor

strepanier03 commented Jan 9, 2024

Payment Summary

@JmillsExpensify - head's up, a request is incoming from Rajat.

@strepanier03 strepanier03 changed the title [HOLD for payment 2023-12-20] Android - IOU - App crashes when adding a receipt from gallery in confirmation page [Paid] Android - IOU - App crashes when adding a receipt from gallery in confirmation page Jan 9, 2024
@parasharrajat
Copy link
Member

Payment requested as per #32865 (comment)

@parasharrajat
Copy link
Member

@strepanier03 Could you please update the summary to include the amount?

@JmillsExpensify
Copy link

Re-opening so that I can get payment summaries with an amount.

@strepanier03
Copy link
Contributor

Oops, sorry about that, don't know how I managed to forget that 🤦‍♀️. Updated the payment summary above with amounts.

@melvin-bot melvin-bot bot added the Overdue label May 23, 2024
Copy link

melvin-bot bot commented May 24, 2024

@JmillsExpensify, @strepanier03, @luacmartins, @mkhutornyi Whoops! This issue is 2 days overdue. Let's get this updated quick!

@luacmartins
Copy link
Contributor

Seems like we can close this again since the payment summary was updated. Please reopen if we're still missing something.

@melvin-bot melvin-bot bot removed the Overdue label May 27, 2024
@JmillsExpensify
Copy link

$500 approved for @parasharrajat

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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

8 participants