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] Distance - App crashes when creating a distance request after creating a new workspace #36854

Closed
6 tasks done
izarutskaya opened this issue Feb 20, 2024 · 20 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Hourly KSv2 Reviewing Has a PR in review

Comments

@izarutskaya
Copy link

izarutskaya commented Feb 20, 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!


Found when validating PR: #36147

Version Number: v1.4.43-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation:

Action Performed:

  1. Navigate to staging.new.expensify.com
  2. Create a new workspace.
  3. Go to workspace chat.
  4. Click + > Request money > Distance.
  5. Enter addresses.
  6. Proceed to confirmation page.
    (Step 2-6 must be done quickly.)

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

Bug6385297_1708401830321.bandicam_2024-02-20_09-31-11-883.mp4

Bug6385297_1708401830330!staging.new.expensify.com-1708401721990.txt

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e5db64f304cac8ab
  • Upwork Job ID: 1759883217035563008
  • Last Price Increase: 2024-02-20
  • Automatic offers:
    • c3024 | Reviewer | 0
    • situchan | Contributor | 0
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 20, 2024
@melvin-bot melvin-bot bot changed the title Distance - App crashes when creating a distance request after creating a new workspace [$500] Distance - App crashes when creating a distance request after creating a new workspace Feb 20, 2024
Copy link

melvin-bot bot commented Feb 20, 2024

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

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

melvin-bot bot commented Feb 20, 2024

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

Copy link

melvin-bot bot commented Feb 20, 2024

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

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 melvin-bot bot added Daily KSv2 and removed Hourly KSv2 labels Feb 20, 2024
Copy link

melvin-bot bot commented Feb 20, 2024

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

@izarutskaya
Copy link
Author

We think that this bug might be related to #wave5-free-submitters
CC @dylanexpensify

@tienifr
Copy link
Contributor

tienifr commented Feb 20, 2024

Proposal

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

App crashes.

What is the root cause of that problem?

policyCategories can be null in

if (policyCategories[transaction.category] && !policyCategories[transaction.category].enabled) {

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

We need add null check for policyCategories in

if (policyCategories[transaction.category] && !policyCategories[transaction.category].enabled) {

        if (policyCategories && policyCategories[transaction.category] && !policyCategories[transaction.category].enabled) 

or we can define the default for policyCategories

What alternative solutions did you explore? (Optional)

NA

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Feb 20, 2024

Already known issue
#35540 (comment)
And regression related with this PR
#35540

@dukenv0307
Copy link
Contributor

This issue is a regression related to my PR 35540 so I will create a follow-up PR to fix this issue.

@cristipaval cristipaval added Hourly KSv2 and removed Daily KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors labels Feb 20, 2024
@cristipaval cristipaval added the Reviewing Has a PR in review label Feb 20, 2024
@cristipaval cristipaval assigned c3024 and situchan and unassigned parasharrajat Feb 20, 2024
Copy link

melvin-bot bot commented Feb 20, 2024

📣 @situchan 🎉 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 Feb 20, 2024

📣 @c3024 🎉 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 Feb 20, 2024

📣 @c3024 🎉 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 📖

Copy link

melvin-bot bot commented Feb 20, 2024

📣 @situchan 🎉 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 📖

@cristipaval cristipaval removed the DeployBlockerCash This issue or pull request should block deployment label Feb 20, 2024
@CortneyOfstad
Copy link
Contributor

PR here and looks as though it was cherry-picked for Staging 5 hours ago 👍

@cristipaval
Copy link
Contributor

@CortneyOfstad, FYI: @situchan is the only contributor to pay here. The C+ is the one who reviewed the original PR that introduced the regression (Thanks, @c3024, for quickly jumping into this! 🙏 )

@tienifr
Copy link
Contributor

tienifr commented Feb 21, 2024

@CortneyOfstad @cristipaval Should we have a payment here since we used my proposal to fix this blocker?

Similar case: https://expensify.slack.com/archives/C01GTK53T8Q/p1707782382926619?thread_ts=1707781846.347169&cid=C01GTK53T8Q

@situchan
Copy link
Contributor

@tienifr #35540 (comment) was posted before this issue created and your proposal is posted. And simple enough so not worth considering efforts made to request compensation.
(Just my opinion)

@CortneyOfstad
Copy link
Contributor

I agree with @situchan. @cristipaval do you have any thoughts on whether payment is needed based on the comment here?

@cristipaval
Copy link
Contributor

I get what @tienifr is saying, and that there were similar cases when other proposals were compensated if they were guiding the developer in fixing it, but given that the discussion about the fix for this issue happened a few days before this issue was created, I think @situchan is the only eligible for the payment here.

@CortneyOfstad
Copy link
Contributor

Thanks @cristipaval!

Payment Summary

@situchanpaid $500 via Upwork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Hourly KSv2 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

9 participants