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

[HOLD for payment 2024-08-19] [$250] iOS - Distance split - App crashes after opening split distance expense receipt #47022

Closed
1 of 6 tasks
m-natarajan opened this issue Aug 8, 2024 · 30 comments
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 External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented Aug 8, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Issue found when validating #42302
Version Number: 9.0.18.0
Reproducible in staging?: Yes
Reproducible in production?: New Feature
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers): applausetester+0708pm1e@applause.expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause Internal Team
Slack conversation:

Action Performed:

  1. Open the app and log in
  2. Navigate to a group chat
  3. Tap + > Split expense > Distance
  4. Enter the start and finish viewpoints and complete creating a split expense
  5. Open the receipt

Expected Result:

The receipt is displayed

Actual Result:

The 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

Bug6565083_1723073513605.IMG_8914.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01bdf11a6c8415e801
  • Upwork Job ID: 1821474729087191120
  • Last Price Increase: 2024-08-08
  • Automatic offers:
    • shubham1206agra | Reviewer | 103446274
    • dominictb | Contributor | 103446277
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @joekaufmanexpensify
@m-natarajan m-natarajan 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 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

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

Copy link

melvin-bot bot commented Aug 8, 2024

Triggered auto assignment to @joekaufmanexpensify (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.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Aug 8, 2024
Copy link
Contributor

github-actions bot commented Aug 8, 2024

👋 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.

@dominictb
Copy link
Contributor

Proposal

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

The app crashes

What is the root cause of that problem?

Let's see the optimistic receipt data here, the source is a static image and for IOS native the type of this source is a number.

const receipt: Receipt | undefined = iouRequestType === CONST.IOU.REQUEST_TYPE.DISTANCE ? {source: ReceiptGeneric as ReceiptSource, state: CONST.IOU.RECEIPT_STATE.OPEN} : undefined;

It leads to the optimistic filename is a number,

filename: receipt?.source ?? receipt?.name ?? filename,

Then the app crashes when we use the check Str.isPDF(receiptFilename) here because in this function we have a logic url.split('.')

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

We should cast the receiptFilename to string when we use the Str.isPDF here

Str.isPDF(String(receiptFilename))

{isLocalFile && Str.isPDF(receiptFilename) ? (

What alternative solutions did you explore? (Optional)

We can cast the filename to String here

filename: String(receipt?.source ?? receipt?.name ?? filename),

filename: receipt?.source ?? receipt?.name ?? filename,

@techievivek techievivek added the External Added to denote the issue can be worked on by a contributor label Aug 8, 2024
@melvin-bot melvin-bot bot changed the title iOS - Distance split - App crashes after opening split distance expense receipt [$250] iOS - Distance split - App crashes after opening split distance expense receipt Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01bdf11a6c8415e801

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

melvin-bot bot commented Aug 8, 2024

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

@shubham1206agra
Copy link
Contributor

shubham1206agra commented Aug 8, 2024

Lets go with @dominictb's alternative solution.

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Aug 8, 2024

Current assignee @techievivek is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

📣 @shubham1206agra 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Aug 8, 2024

📣 @dominictb 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@techievivek
Copy link
Contributor

@shubham1206agra You meant @dominictb right? I can't see a proposal by user @cretadn22 😄

@shubham1206agra
Copy link
Contributor

shubham1206agra commented Aug 8, 2024

@shubham1206agra You meant @dominictb right? I can't see a proposal by user @cretadn22 😄

Oh sorry. Got mixed up in 2 issues. Updated the comment now.

@dominictb
Copy link
Contributor

I will raise a PR soon.

@techievivek
Copy link
Contributor

The fix has been CPed to staging, going to ask QA to retest this.

@techievivek techievivek removed DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Aug 8, 2024
@m-natarajan
Copy link
Author

Issue fixed.

RPReplay_Final1723131816.MP4

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 12, 2024
@melvin-bot melvin-bot bot changed the title [$250] iOS - Distance split - App crashes after opening split distance expense receipt [HOLD for payment 2024-08-19] [$250] iOS - Distance split - App crashes after opening split distance expense receipt Aug 12, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 12, 2024
Copy link

melvin-bot bot commented Aug 12, 2024

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

Copy link

melvin-bot bot commented Aug 12, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.18-10 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 2024-08-19. 🎊

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

Copy link

melvin-bot bot commented Aug 12, 2024

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:

@joekaufmanexpensify
Copy link
Contributor

@shubham1206agra please complete BZ so we can prep for payment

@shubham1206agra
Copy link
Contributor

shubham1206agra commented Aug 13, 2024

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:

@joekaufmanexpensify
Copy link
Contributor

joekaufmanexpensify commented Aug 16, 2024

Checklist complete. All set to issue payment on Monday. We need to pay:

@shubham1206agra
Copy link
Contributor

@joekaufmanexpensify I was not the C+ on previous issue 😄

It was @mananjadhav

@joekaufmanexpensify
Copy link
Contributor

Ah, okay. I saw you listed in the assignees of the PR, but see now that was just as a commenter. Adjusted checklist!

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Aug 18, 2024
@joekaufmanexpensify
Copy link
Contributor

All set to issue payment here!

@melvin-bot melvin-bot bot removed the Overdue label Aug 19, 2024
@joekaufmanexpensify
Copy link
Contributor

@shubham1206agra could you please accept the offer so we can pay you?

@joekaufmanexpensify
Copy link
Contributor

@dominictb $250 sent and contract ended!

@shubham1206agra
Copy link
Contributor

@joekaufmanexpensify Offer accepted

@joekaufmanexpensify
Copy link
Contributor

@shubham1206agra $250 sent and contract ended!

@joekaufmanexpensify
Copy link
Contributor

Upwork job closed.

@joekaufmanexpensify
Copy link
Contributor

All set, thanks everyone!

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 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

5 participants