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 2024-05-09] [HOLD for payment 2024-05-08] [$250] Troubleshoot - App crashes when clicking Reset and refresh after inviting user to the room #41275

Closed
4 of 6 tasks
lanitochka17 opened this issue Apr 30, 2024 · 21 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

Comments

@lanitochka17
Copy link

lanitochka17 commented Apr 30, 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.68-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: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Create a room
  3. Invite a member to the room
  4. Go to Account settings > Troubleshoot
  5. Click Clear cache and restart
  6. Click Reset and refresh

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

Bug6466066_1714436350800.crash_invite.mp4

logs.txt

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a66317be07c94f84
  • Upwork Job ID: 1785195026765955072
  • Last Price Increase: 2024-04-30
  • Automatic offers:
    • alitoshmatov | Reviewer | 0
    • suneox | Contributor | 0
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Apr 30, 2024
Copy link

melvin-bot bot commented Apr 30, 2024

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

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.

@lanitochka17
Copy link
Author

@robertjchen FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@suneox
Copy link
Contributor

suneox commented Apr 30, 2024

Proposal

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

Troubleshoot - App crashes when clicking Reset and refresh after inviting user to the room due to we have missing condition check

What is the root cause of that problem?

After clear cache the personalDetails also clear, but we don't check personalDetails at this line before using it

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

We will add condition check personalDetails before using it the same solution with this line

    useEffect(() => {
        // there is no need to update the options if the options are not initialized
+       if (!areOptionsInitialized.current || !personalDetails) {
            return;
        }

        const newReportOptions: Array<{
            replaceIndex: number;
            newReportOption: OptionsListUtils.SearchOption<Report>;
        }> = [];

        Object.keys(personalDetails).forEach((accoutID) => {
        ....

Option 2: we can make the default value is empty object for usePersonalDetails same with this line or set default value is empty object for PERSONAL_DETAILS_LIST after clear cache same solution with this

What alternative solutions did you explore? (Optional)

We can add ONYXKEYS.PERSONAL_DETAILS_LIST into KEYS_TO_PRESERVE

@robertjchen robertjchen added the External Added to denote the issue can be worked on by a contributor label Apr 30, 2024
@melvin-bot melvin-bot bot changed the title Troubleshoot - App crashes when clicking Reset and refresh after inviting user to the room [$250] Troubleshoot - App crashes when clicking Reset and refresh after inviting user to the room Apr 30, 2024
Copy link

melvin-bot bot commented Apr 30, 2024

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

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

melvin-bot bot commented Apr 30, 2024

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

@ghost
Copy link

ghost commented Apr 30, 2024

I think this is the regression caused by this PR - #39230

@francoisl
Copy link
Contributor

@robertjchen @alitoshmatov did you get a chance to look into this one?

cc @tienifr as well in case it's coming from #39230

@suneox
Copy link
Contributor

suneox commented Apr 30, 2024

I think this is the regression caused by this PR - #39230

This isn't a regression from #39230 the logic migration still keeps the same before migrate page

      Onyx.clear(App.KEYS_TO_PRESERVE).then(() => {
          App.openApp();
      });

The new logic uses personalDetails raise crash comes from this PR

@francoisl
Copy link
Contributor

Ah ok, makes more sense. Let's go with your proposal then @suneox. Can you double-check if we also need to make the same change in this other effect, it also uses personalDetails.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 30, 2024
Copy link

melvin-bot bot commented Apr 30, 2024

📣 @alitoshmatov 🎉 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 Apr 30, 2024

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

@suneox
Copy link
Contributor

suneox commented Apr 30, 2024

Ah ok, makes more sense. Let's go with your proposal then @suneox. Can you double-check if we also need to make the same change in this other effect, it also uses personalDetails.

Sure I'll check another places and update in PR

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Apr 30, 2024
@suneox
Copy link
Contributor

suneox commented Apr 30, 2024

The PR is ready for review

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Apr 30, 2024
@francoisl francoisl removed the DeployBlockerCash This issue or pull request should block deployment label Apr 30, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 1, 2024
@melvin-bot melvin-bot bot changed the title [$250] Troubleshoot - App crashes when clicking Reset and refresh after inviting user to the room [HOLD for payment 2024-05-08] [$250] Troubleshoot - App crashes when clicking Reset and refresh after inviting user to the room May 1, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 1, 2024
Copy link

melvin-bot bot commented May 1, 2024

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

Copy link

melvin-bot bot commented May 1, 2024

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

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

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels May 2, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-05-08] [$250] Troubleshoot - App crashes when clicking Reset and refresh after inviting user to the room [HOLD for payment 2024-05-09] [HOLD for payment 2024-05-08] [$250] Troubleshoot - App crashes when clicking Reset and refresh after inviting user to the room May 2, 2024
Copy link

melvin-bot bot commented May 2, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.69-2 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-05-09. 🎊

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 7, 2024
Copy link

melvin-bot bot commented May 9, 2024

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

@sonialiap
Copy link
Contributor

sonialiap commented May 9, 2024

Payment summary

  • @suneox requires contributor $250 - paid ✔️
  • @alitoshmatov reviewer $250 - offer pending ⏳ offer withdrawn due to Ali saying that he didn't participate in the review

@alitoshmatov
Copy link
Contributor

@sonialiap I was not involved in reviewing. So no payment needed for me

@sonialiap
Copy link
Contributor

Thanks for letting me know

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
Projects
None yet
Development

No branches or pull requests

6 participants