You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$500] [HOLD for payment 2024-01-17] Expense - App crashes when attempting to request money from a deleted workspace #34063
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
[Employee] Go to workspace chat
[Admin] Delete the workspace on Old Dot
[Employee] Click + > Request money
[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?
👋 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:
Identify the pull request that introduced this issue and revert it.
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
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!
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
Activity
github-actions commentedon Jan 5, 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:
melvin-bot commentedon Jan 5, 2024
Triggered auto assignment to @marcaaron (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.Pujan92 commentedon Jan 5, 2024
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
App/src/components/MoneyTemporaryForRefactorRequestConfirmationList.js
Line 280 in cb00747
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.
marcaaron commentedon Jan 5, 2024
Cool. Thanks! Do you want to create a PR for this? cc @MonilBhavsar @teneeto @alitoshmatov
Pujan92 commentedon Jan 5, 2024
Yes @marcaaron
marcaaron commentedon Jan 5, 2024
Cool I can review it let's gooo 🙇
Pujan92 commentedon Jan 5, 2024
@marcaaron created a PR
12 remaining items
melvin-bot commentedon Jan 17, 2024
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!
melvin-bot commentedon Jan 17, 2024
Payment Summary
Upwork Job
BugZero Checklist (@laurenreidexpensify)
melvin-bot commentedon Jan 18, 2024
Job added to Upwork: https://www.upwork.com/jobs/~018ed1f3e02054d0aa
[-][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[/+]melvin-bot commentedon Jan 18, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee (
External)laurenreidexpensify commentedon Jan 18, 2024
@Pujan92 correct job link for upwork here https://www.upwork.com/jobs/~018ed1f3e02054d0aa
Pujan92 commentedon Jan 18, 2024
Thanks, applied @laurenreidexpensify
laurenreidexpensify commentedon Jan 18, 2024
Offer sent!
Pujan92 commentedon Jan 18, 2024
Accepted!
laurenreidexpensify commentedon Jan 18, 2024
Payment Summary
C+ Review @Pujan92 paid in Upwork $500