Skip to content

[$500] [HOLD for payment 2024-01-17] Expense - App crashes when attempting to request money from a deleted workspace #34063

Closed

Description

@lanitochka17

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.22-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:

Precondition: User is an employee of a Collect workspace on Old Dot

  1. [Employee] Go to workspace chat
  2. [Admin] Delete the workspace on Old Dot
  3. [Employee] Click + > Request money
  4. [Employee] Enter amount > Next

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

Bug6333470_1704484833865.20240105_134408.mp4

logs.txt

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @marcaaron
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018ed1f3e02054d0aa
  • Upwork Job ID: 1747946417104683008
  • Last Price Increase: 2024-01-18

Activity

  1. github-actions commented on Jan 5, 2024

    @github-actions
    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.
  2. melvin-bot commented on Jan 5, 2024

    @melvin-bot

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

  3. Pujan92 commented on Jan 5, 2024

    @Pujan92
    Contributor

    Proposal

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

    App crashes on request money flow for the deleted workspace report

    What is the root cause of that problem?

    Once workspace gets deleted, the policy will be removed from the onyx and it will be undefined. Here we are trying to access value from undefined which causing the crash. Regression from PR

    const shouldShowTax = isPolicyExpenseChat && policy.isTaxTrackingEnabled;

    Screenshot 2024-01-06 at 03 11 07

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

    We need to safely access the field by checking the policy first to avoid this issue.

  4. marcaaron commented on Jan 5, 2024

    @marcaaron
    Contributor

    Cool. Thanks! Do you want to create a PR for this? cc @MonilBhavsar @teneeto @alitoshmatov

  5. Pujan92 commented on Jan 5, 2024

    @Pujan92
    Contributor
  6. marcaaron commented on Jan 5, 2024

    @marcaaron
    Contributor

    Cool I can review it let's gooo 🙇

  7. Pujan92 commented on Jan 5, 2024

    @Pujan92
    Contributor

    @marcaaron created a PR

  8. 12 remaining items

  9. melvin-bot commented on Jan 17, 2024

    @melvin-bot

    Issue is ready for payment but no BZ is assigned. @laurenreidexpensify you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!

  10. melvin-bot commented on Jan 17, 2024

    @melvin-bot

    Payment Summary

    Upwork Job

    • ROLE: @Pujan92 paid $(AMOUNT) via Upwork (LINK)

    BugZero Checklist (@laurenreidexpensify)

    • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  11. melvin-bot commented on Jan 18, 2024

    @melvin-bot
  12. changed the title [-][HOLD for payment 2024-01-17] Expense - App crashes when attempting to request money from a deleted workspace[/-] [+][$500] [HOLD for payment 2024-01-17] Expense - App crashes when attempting to request money from a deleted workspace[/+] on Jan 18, 2024
  13. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Jan 18, 2024
  14. melvin-bot commented on Jan 18, 2024

    @melvin-bot

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

  15. laurenreidexpensify commented on Jan 18, 2024

    @laurenreidexpensify
    Contributor
  16. Pujan92 commented on Jan 18, 2024

    @Pujan92
    Contributor

    @Pujan92 correct job link for upwork here https://www.upwork.com/jobs/~018ed1f3e02054d0aa

    Thanks, applied @laurenreidexpensify

  17. laurenreidexpensify commented on Jan 18, 2024

    @laurenreidexpensify
    Contributor

    Offer sent!

  18. Pujan92 commented on Jan 18, 2024

    @Pujan92
    Contributor

    Offer sent!

    Accepted!

  19. laurenreidexpensify commented on Jan 18, 2024

    @laurenreidexpensify
    Contributor

    Payment Summary

    C+ Review @Pujan92 paid in Upwork $500

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions