App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2024-12-03] [$250] Hybrid app - Loading skeleton when notification tapped and app is killed state

Open m-natarajan opened this issue 1 year ago • 47 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: Reproducible in staging?: Needs Reproduction Reproducible in production?: Needs Reproduction 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: @quinthar Slack conversation: https://expensify.slack.com/archives/C05LX9D6E07/p1727449830031979

Action Performed:

  1. Have a long chat with User B
  2. As User A, access the chat on your device so it’s cached and kill the app
  3. As User B, message User A
  4. As User A, tap on the notification for the message.

Expected Result:

The full cached chat should be opened, potentially minus the most recent message.

Actual Result:

A skeleton page loads, indicating the app is reloading the chat from scratch rather than using the cache.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • [x] Android: Native
  • [ ] Android: mWeb Chrome
  • [x] iOS: Native
  • [ ] iOS: mWeb Safari
  • [ ] MacOS: Chrome / Safari
  • [ ] MacOS: Desktop

Screenshots/Videos

Screenshot_20240927-080643

Screenshot_20240927-080656

Screenshot_20240927-080707

https://github.com/user-attachments/assets/bcce4fa4-e084-45d1-af36-f9510ae0c435

Profile_trace_for_9.0.41-2.cpuprofile

logs-2024-09-30 14_32_20.691.txt

Add any screenshot/video evidence

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021844432440110156078
  • Upwork Job ID: 1844432440110156078
  • Last Price Increase: 2024-10-10
Issue OwnerCurrent Issue Owner: @eVoloshchak

m-natarajan avatar Oct 01 '24 01:10 m-natarajan

Triggered auto assignment to @Beamanator (AutoAssignerNewDotQuality)

melvin-bot[bot] avatar Oct 01 '24 01:10 melvin-bot[bot]

Triggered auto assignment to @garrettmknight (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

melvin-bot[bot] avatar Oct 01 '24 01:10 melvin-bot[bot]

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

MelvinBot avatar Oct 01 '24 01:10 MelvinBot

Maybe we can make this Weekly since it's not reproducible yet?

Beamanator avatar Oct 01 '24 20:10 Beamanator

One possible fix to this (removing duplicate reconnectapp calls) is out, bumping to see if this is still happening here.

garrettmknight avatar Oct 08 '24 23:10 garrettmknight

Repro steps updated!

garrettmknight avatar Oct 10 '24 15:10 garrettmknight

Triggered auto assignment to @stitesExpensify (AutoAssignerNewDotQuality)

melvin-bot[bot] avatar Oct 10 '24 15:10 melvin-bot[bot]

@stitesExpensify reassigning since Alex is going to be OOO until Tuesday. Can you take a look? I'll try to grab logs from my repro in a minute.

garrettmknight avatar Oct 10 '24 15:10 garrettmknight

I don't see any reason that this couldn't at least start as External to see if we can get it fixed by a contributor, so I'm going to start there and see where we end up!

stitesExpensify avatar Oct 10 '24 17:10 stitesExpensify

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

melvin-bot[bot] avatar Oct 10 '24 17:10 melvin-bot[bot]

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

melvin-bot[bot] avatar Oct 10 '24 17:10 melvin-bot[bot]

Actively discussing in the slack thread in the OP. Might be related to https://github.com/Expensify/App/pull/47243.

garrettmknight avatar Oct 15 '24 15:10 garrettmknight

@kirillzyusko can I assign this to you?

muttmuure avatar Oct 15 '24 15:10 muttmuure

Is this a dupe? https://github.com/Expensify/App/issues/50484

muttmuure avatar Oct 15 '24 16:10 muttmuure

@muttmuure yes, please 😊

kirillzyusko avatar Oct 15 '24 17:10 kirillzyusko

@garrettmknight @eVoloshchak @stitesExpensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

melvin-bot[bot] avatar Oct 15 '24 18:10 melvin-bot[bot]

@garrettmknight, @eVoloshchak, @stitesExpensify Huh... This is 4 days overdue. Who can take care of this?

melvin-bot[bot] avatar Oct 15 '24 18:10 melvin-bot[bot]

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

melvin-bot[bot] avatar Oct 23 '24 16:10 melvin-bot[bot]

The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.52-5 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

  • https://github.com/Expensify/App/pull/51098

If no regressions arise, payment will be issued on 2024-10-30. :confetti_ball:

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

  • @eVoloshchak requires payment through NewDot Manual Requests
  • @kirillzyusko does not require payment (Contractor)

melvin-bot[bot] avatar Oct 23 '24 16:10 melvin-bot[bot]

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [ ] [@eVoloshchak] The PR that introduced the bug has been identified. Link to the PR:
  • [ ] [@eVoloshchak] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [ ] [@eVoloshchak] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [ ] [@eVoloshchak] Determine if we should create a regression test for this bug.
  • [ ] [@eVoloshchak] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [ ] [@garrettmknight] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

melvin-bot[bot] avatar Oct 23 '24 16:10 melvin-bot[bot]

@kirillzyusko looks like @quinthar is still experiencing:

https://github.com/user-attachments/assets/b395a0c2-c922-4785-aec3-6e4e11cb32da

garrettmknight avatar Oct 29 '24 14:10 garrettmknight

@garrettmknight @eVoloshchak @kirillzyusko @stitesExpensify this issue is now 4 weeks old, please consider:

  • Finding a contributor to fix the bug
  • Closing the issue if BZ has been unable to add the issue to a VIP or Wave project
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

melvin-bot[bot] avatar Oct 29 '24 18:10 melvin-bot[bot]

@garrettmknight, @eVoloshchak, @kirillzyusko, @stitesExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] avatar Nov 01 '24 18:11 melvin-bot[bot]

Looks like a recent adhoc build is solving this! Let's keep it open till we've deployed and tested on prod, but I'll take over monitoring to keep an eye on the PR.

garrettmknight avatar Nov 01 '24 18:11 garrettmknight

Checking for an internal Hybrid App engineer to handle this.

garrettmknight avatar Nov 06 '24 12:11 garrettmknight

Hey @garrettmknight, I took a quick look, and I think we should update the description and reproduction steps and downgrade the current priority.

~~I'm unable to reproduce the loading skeleton issue for iOS or Android with the app either background or killed. @muttmuure mentioned this occurring for Concierge email chats, I didn't test that specific case but if that is still occurring I don't think it should be critical and take priority over our other HybridApp tasks.~~

^ I misunderstood the bug. Still don't think it's critical but we can get this looked at soon

https://github.com/user-attachments/assets/3c1a22a5-f71f-4fc1-8655-3644f4418811

https://github.com/user-attachments/assets/cf5a615d-b47a-46e7-9c4a-b26f55660d05

Julesssss avatar Nov 06 '24 13:11 Julesssss

I'm from Software Mansion and I'll work on this one

jnowakow avatar Nov 07 '24 14:11 jnowakow

I found out that the problems are caused by this code: https://github.com/Expensify/App/blob/bd880d1e1a5ac0ef4bd7590c995b8569fe11f4ea/src/pages/home/ReportScreen.tsx#L349

In ND isLoadingApp is set to true before the bootsplash is hidden and messages are shown correctly. While in hybrid app it takes more time to finish loading the app and thus both isLoadingApp and isSidebarLoaded equal to false when ReportScreen is shown causing the skeleton to show up. I don't know why openApp (function that sets isAppLoading to false) takes more time on hybrid. I have to figure out what is causing this behaviour.

jnowakow avatar Nov 08 '24 14:11 jnowakow

Sorry, yesterday I worked shorter hours and didn't had time to answer at the end of the day. I found out that on the ND when opening the app there is no OpenApp call. Instead ReconnectApp is called. So there are two options. The easier option is to enforce hybrid app to wait until OpenApp call is finished and only then hide bootsplash. The other way is to investigate why OpenApp is called every and check if it's necessary. For now I'll to check the second option

jnowakow avatar Nov 13 '24 09:11 jnowakow