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 2023-08-08] Split bill - App crashed when delete split bill #23824

Closed
2 of 6 tasks
kbecciv opened this issue Jul 28, 2023 · 32 comments
Closed
2 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

@kbecciv
Copy link

kbecciv commented Jul 28, 2023

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


Action Performed:

  1. Launch App
  2. Create split bill
  3. Long press on request
  4. Tap on 'Delete request"

Expected Result:

The request should be delete.

Actual Result:

App crashed when delete split bill.

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: v1.3.47-3
Reproducible in staging?: y
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):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Bug6145295_RPReplay_Final1690569314.mp4

Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

View all open jobs on GitHub

@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Jul 28, 2023
@OSBotify
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.

@melvin-bot
Copy link

melvin-bot bot commented Jul 28, 2023

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

@melvin-bot melvin-bot bot added the Overdue label Jul 31, 2023
@Beamanator
Copy link
Contributor

@mountiny
Copy link
Contributor

cc @luacmartins I am not sure if we have tested this flow well

@Beamanator
Copy link
Contributor

I'm seeing this in web when I try to delete a split:

Screenshot 2023-07-31 at 2 05 00 PM

@Beamanator
Copy link
Contributor

@mountiny can you find the PR that may have caused this?

@mountiny
Copy link
Contributor

#19095

I dont think we should revert though, I think we should just disable the option on split action before we figure this out

@Beamanator
Copy link
Contributor

Ok can you take over finding a good solution for this one? 🙏

@Beamanator Beamanator changed the title IOS - Split bill - App crashed when delete split bill Split bill - App crashed when delete split bill Jul 31, 2023
@mountiny mountiny assigned mountiny and unassigned thienlnam Jul 31, 2023
@mountiny mountiny added the Reviewing Has a PR in review label Jul 31, 2023
@melvin-bot melvin-bot bot removed the Overdue label Jul 31, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Hourly KSv2 labels Jul 31, 2023
@Beamanator Beamanator added Hourly KSv2 and removed Weekly KSv2 labels Jul 31, 2023
@Beamanator
Copy link
Contributor

Idk why melvin thought this should be weekly lol

@situchan
Copy link
Contributor

const iouReport = allReports[`${ONYXKEYS.COLLECTION.REPORT}${reportAction.originalMessage.IOUReportID}`];

The crash happens on this line because originalMessage.IOUReportID doesn't exist in split report action
Based on https://github.com/Expensify/App/pull/19095/files#diff-16a590a45460a9abf1e402441b50e3cb2659ee3da203ca30a2fa4ce3f9411957L253-R253, I think the issue existed before #19095. And enabling delete money request feature just revealed this.

@mountiny
Copy link
Contributor

correct, I think we just forgot about this case.

@mountiny
Copy link
Contributor

@Beamanator thats an automation for when PR is raised and marked as ready for a review.

@melvin-bot
Copy link

melvin-bot bot commented Jul 31, 2023

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Jul 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 31, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 31, 2023
@melvin-bot melvin-bot bot changed the title Split bill - App crashed when delete split bill [HOLD for payment 2023-08-07] Split bill - App crashed when delete split bill Jul 31, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 31, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 31, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.47-6 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-08-07. 🎊

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

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Jul 31, 2023

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:

  • [@mountiny] The PR that introduced the bug has been identified. Link to the PR:
  • [@mountiny] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@mountiny] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@mountiny] Determine if we should create a regression test for this bug.
  • [@mountiny] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@greg-schroeder] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@mountiny
Copy link
Contributor

mountiny commented Aug 1, 2023

$1000 to @Ollyws for internal review

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Aug 1, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-08-07] Split bill - App crashed when delete split bill [HOLD for payment 2023-08-08] [HOLD for payment 2023-08-07] Split bill - App crashed when delete split bill Aug 1, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

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

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:

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

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:

  • [@Ollyws] The PR that introduced the bug has been identified. Link to the PR:
  • [@Ollyws] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@Ollyws] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@Ollyws] Determine if we should create a regression test for this bug.
  • [@Ollyws] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@greg-schroeder] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@mountiny
Copy link
Contributor

mountiny commented Aug 6, 2023

$1000 for @Ollyws for internal review.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 6, 2023
@Ollyws
Copy link
Contributor

Ollyws commented Aug 7, 2023

Is the BZ checklist required for a temporary fix like this?

@greg-schroeder greg-schroeder changed the title [HOLD for payment 2023-08-08] [HOLD for payment 2023-08-07] Split bill - App crashed when delete split bill [HOLD for payment 2023-08-08] Split bill - App crashed when delete split bill Aug 8, 2023
@greg-schroeder
Copy link
Contributor

Offer sent to @Ollyws

@greg-schroeder
Copy link
Contributor

Don't think the checklist will be super necessary here personally. Going to close this now that offer is sent! will pay as soon as accepted

@Ollyws
Copy link
Contributor

Ollyws commented Aug 15, 2023

@greg-schroeder Friendly bump for payment.

@greg-schroeder
Copy link
Contributor

Oh, wow, sorry, sending now @Ollyws

@tranvantoan-qn
Copy link

tranvantoan-qn commented Aug 17, 2023

@mountiny I apologize for bringing up this matter once more.

Did we solely disable the "Delete" option on the main Request?

I'm still experiencing the same crash, but in a slightly different manner.

Whenever a split request is initiated, it also generates a sub-report for each participant, allowing me to delete each request. Unfortunately, this leads to a crash when in Offline mode.

TypeError: Cannot read properties of null (reading 'reportID')
    at main-426150f61736a9bd57d7.bundle.js:1:3040782
    at vendors-3db7fcdc0b1c4dcfe55f.bundle.js:1:16283362
    at Xt (vendors-3db7fcdc0b1c4dcfe55f.bundle.js:1:16282859)
    at Function.qt (vendors-3db7fcdc0b1c4dcfe55f.bundle.js:1:16283340)
    at Object.P (main-426150f61736a9bd57d7.bundle.js:1:3040751)
    at Object.m (main-426150f61736a9bd57d7.bundle.js:1:1269288)
    at jn (main-426150f61736a9bd57d7.bundle.js:1:1470777)
    at fA (vendors-3db7fcdc0b1c4dcfe55f.bundle.js:1:9865482)
    at Bs (vendors-3db7fcdc0b1c4dcfe55f.bundle.js:1:9922584)
    at bl (vendors-3db7fcdc0b1c4dcfe55f.bundle.js:1:9911745)

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

10 participants