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

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

Closed
6 tasks done
lanitochka17 opened this issue Jan 5, 2024 · 19 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Jan 5, 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!


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
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Jan 5, 2024
Copy link
Contributor

github-actions bot commented 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:

  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 Jan 5, 2024

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

@Pujan92
Copy link
Contributor

Pujan92 commented 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

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.

@marcaaron
Copy link
Contributor

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

@Pujan92
Copy link
Contributor

Pujan92 commented Jan 5, 2024

Yes @marcaaron

@marcaaron
Copy link
Contributor

Cool I can review it let's gooo 🙇

@Pujan92
Copy link
Contributor

Pujan92 commented Jan 5, 2024

@marcaaron created a PR

@marcaaron marcaaron removed the DeployBlockerCash This issue or pull request should block deployment label Jan 6, 2024
@MonilBhavsar
Copy link
Contributor

Thanks for handling!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jan 10, 2024
@melvin-bot melvin-bot bot changed the title Expense - App crashes when attempting to request money from a deleted workspace [HOLD for payment 2024-01-17] Expense - App crashes when attempting to request money from a deleted workspace Jan 10, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 10, 2024
Copy link

melvin-bot bot commented Jan 10, 2024

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

Copy link

melvin-bot bot commented Jan 10, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.23-4 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-01-17. 🎊

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

  • @Pujan92 requires payment (Needs manual offer from BZ)

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jan 16, 2024
Copy link

melvin-bot bot commented 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!

Copy link

melvin-bot bot commented Jan 17, 2024

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

@laurenreidexpensify laurenreidexpensify added the External Added to denote the issue can be worked on by a contributor label Jan 18, 2024
Copy link

melvin-bot bot commented Jan 18, 2024

Job added to Upwork: https://www.upwork.com/jobs/~018ed1f3e02054d0aa

@melvin-bot melvin-bot bot 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 Jan 18, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 18, 2024
Copy link

melvin-bot bot commented Jan 18, 2024

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

@laurenreidexpensify
Copy link
Contributor

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

@Pujan92
Copy link
Contributor

Pujan92 commented Jan 18, 2024

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

Thanks, applied @laurenreidexpensify

@laurenreidexpensify
Copy link
Contributor

Offer sent!

@Pujan92
Copy link
Contributor

Pujan92 commented Jan 18, 2024

Offer sent!

Accepted!

@laurenreidexpensify
Copy link
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
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

6 participants