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
[HOLD for payment 2024-07-10] [$250] [CRITICAL] [UX Reliability] When deeplinking to expense report from email empty screen is shown #42753
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2InternalRequires API changes or must be handled by Expensify staff
Version Number: Reproducible in staging?: Y Reproducible in production?: Y 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:@danielrvidal Slack conversation:
The subheader is not loading right away and LHN chats are not loading right away.
After letting it load, I click into the DM and there is nothing showing.
a. I let it load for a bit, nothing.
b. I refresh and see the expense show up.
This makes for a confusing experience. As a side note, we’ll be updating the flow so we don’t send users to the expense directly but rather the DM (GH) but I still experienced this bug so it felt like we should update it.
Expected Result:
The DM chat should load immediately as well as the chats should be available in LHN first, we should wait for the openApp response and show the skeleton if its not available
Actual Result:
Subheader not showing when I’m brought into a report for the first time as a new user, and the DM the IOU sent to me is not loading.
The DM chat is showing empty screen
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-][CRITICAL] [UX Reliability] When deeplinking to expense report from email empty screen is shown[/-][+][$250] [CRITICAL] [UX Reliability] When deeplinking to expense report from email empty screen is shown[/+]on May 29, 2024
Please re-state the problem that we are trying to solve in this issue.
Subheader not showing when user brought into a report for the first time as a new user, and the DM the IOU sent to me is not loading.
Also reproducible for any user, who received IOU link, on the first app load (after clearing DB) when the user navigates to IOU report directly.
What is the root cause of that problem?
On the first app load, we're making OpenApp request which blocks any other updates to Onyx, until it finishes.
changed the title [-][$250] [CRITICAL] [UX Reliability] When deeplinking to expense report from email empty screen is shown[/-][+][HOLD for payment 2024-07-10] [$250] [CRITICAL] [UX Reliability] When deeplinking to expense report from email empty screen is shown[/+]on Jul 3, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
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:
[@c3024] The PR that introduced the bug has been identified. Link to the PR:
[@c3024] 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:
[@c3024] 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:
[@c3024] Determine if we should create a regression test for this bug.
[@c3024] 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.
[@johncschuster] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
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:
[@c3024] The PR that introduced the bug has been identified. Link to the PR: No specific PR can be held responsible for this bug.
[@c3024] 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: NA
[@c3024] 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: Not started as this bug cannot be caught earlier.
[@c3024] Determine if we should create a regression test for this bug. Yes
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2InternalRequires API changes or must be handled by Expensify staff
Activity
melvin-bot commentedon May 29, 2024
Triggered auto assignment to @johncschuster (
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.[-][CRITICAL] [UX Reliability] When deeplinking to expense report from email empty screen is shown[/-][+][$250] [CRITICAL] [UX Reliability] When deeplinking to expense report from email empty screen is shown[/+]melvin-bot commentedon May 29, 2024
Job added to Upwork: https://www.upwork.com/jobs/~0167ada75a878e8b10
melvin-bot commentedon May 29, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 (
External)Skakruk commentedon May 30, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Subheader not showing when user brought into a report for the first time as a new user, and the DM the IOU sent to me is not loading.
Also reproducible for any user, who received IOU link, on the first app load (after clearing DB) when the user navigates to IOU report directly.
What is the root cause of that problem?
On the first app load, we're making OpenApp request which blocks any other updates to Onyx, until it finishes.
App/src/libs/actions/OnyxUpdateManager/index.ts
Lines 74 to 80 in 15600b0
Since OpenReport request is established before the OpenApp, the Report data is skipped and not saved into IndexedDB.
What changes do you think we should make in order to solve the problem?
We need to delay OpenReport request until OpenApp is made.
In
ReportScreen.tsxwe addand add checks for
isLoadingAppin a few places:fetchReportIfNeeded()callApp/src/pages/home/ReportScreen.tsx
Lines 472 to 480 in 21d7884
App/src/pages/home/ReportScreen.tsx
Line 377 in 21d7884
shouldShowNotFoundPagefor not showing "Report not found"App/src/pages/home/ReportScreen.tsx
Line 388 in 21d7884
Also add condition
to
App/src/pages/home/ReportScreen.tsx
Line 417 in 21d7884
load-report.mp4
arosiclair commentedon May 30, 2024
I can manage this. Looks like we're having @kacper-mikolajczak take a look
50 remaining items
[-][$250] [CRITICAL] [UX Reliability] When deeplinking to expense report from email empty screen is shown[/-][+][HOLD for payment 2024-07-10] [$250] [CRITICAL] [UX Reliability] When deeplinking to expense report from email empty screen is shown[/+]melvin-bot commentedon Jul 3, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jul 3, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-7 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-07-10. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jul 3, 2024
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:
johncschuster commentedon Jul 8, 2024
Acknowledged! I will issue payment after the regression window 👍
johncschuster commentedon Jul 9, 2024
@c3024 can you complete the BZ Checklist above when you get a moment? Thank you!
c3024 commentedon Jul 9, 2024
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:
johncschuster commentedon Jul 10, 2024
Payment has been issued. Thanks for your contributions! 🎉