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 2023-09-06] [$1000] Web - App displays single report in LHN for some time on login with that report link #23735
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Login and observe that app displays report open in step 2 for some time before displaying all the results
Expected Result:
App should load all the LHN reports together and display the URL report in focus on login with report URL
Actual Result:
App only loads URL report for some time and displays only that report before loading all other reports on login with report URL
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.45-7 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 Notes/Photos/Videos: Any additional supporting documentation
We're checking isLoading to show the skeleton. It would be true if chatReports is not empty or isPersonalDetailsLoading is true.
When we open App from deeplink like /r/:reportID the draft report is added to onyxData => _.isEmpty(chatReports) is false
Beside, the OpenReport API is called before OpenApp so one report can be loaded first, that why we can see the only one report in LHN.
After API OpenApp returns data, isPersonalDetailsLoading is updated to false, but the chatReports hasn't been updated yet
What changes do you think we should make in order to solve the problem?
We should show the skeleton only when users login successfully and the API OpenApp returns data.
isLoadingReportData===false means the chatReports is updated and isPersonalDetailsLoading is false so we don't need to check isPersonalDetailsLoading here
What alternative solutions did you explore? (Optional)
Solution 1: We can show the single report within skeleton below if isLoading is true but the current report is loaded
Solution 2: We can show the skeleton in ReportScreen until isLoadingReportData is false
changed the title [-]Web - App displays single report in LHN for some time on login with that report link[/-][+][$1000] Web - App displays single report in LHN for some time on login with that report link[/+]on Aug 1, 2023
@stephanieelliott we are considering the PR as an alternative: #25159 it is in review process, it seems like it is not handling all cases 100% well yet
Reacted by Arkadiusz Chrabąszczewski and Stephanie Elliott
changed the title [-][HOLD for payment 2023-08-24] [$1000] Web - App displays single report in LHN for some time on login with that report link[/-][+][HOLD for payment 2023-09-06] [$1000] Web - App displays single report in LHN for some time on login with that report link[/+]on Aug 31, 2023
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jul 27, 2023
Triggered auto assignment to @stephanieelliott (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jul 27, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)tienifr commentedon Jul 28, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Web - App displays single report in LHN for some time on login with that report link
What is the root cause of that problem?
In
App/src/pages/home/sidebar/SidebarLinksData.js
Line 78 in b2381f6
We're checking isLoading to show the skeleton. It would be true if chatReports is not empty or isPersonalDetailsLoading is true.
When we open App from deeplink like
/r/:reportIDthe draft report is added to onyxData => _.isEmpty(chatReports) is falseBeside, the
OpenReportAPI is called beforeOpenAppso one report can be loaded first, that why we can see the only one report in LHN.After API
OpenAppreturns data, isPersonalDetailsLoading is updated to false, but the chatReports hasn't been updated yetWhat changes do you think we should make in order to solve the problem?
We should show the skeleton only when users login successfully and the API
OpenAppreturns data.I suggest change this line
App/src/pages/home/sidebar/SidebarLinksData.js
Line 78 in b2381f6
to
const isLoading = SessionUtils.didUserLogInDuringSession() && isLoadingReportDataWe subscribe
isLoadingReportDatain withOnyxthe default isLoadingReportData is true
isLoadingReportData===falsemeans the chatReports is updated and isPersonalDetailsLoading is false so we don't need to check isPersonalDetailsLoading hereWhat alternative solutions did you explore? (Optional)
Solution 1: We can show the single report within skeleton below if isLoading is true but the current report is loaded
Solution 2: We can show the skeleton in ReportScreen until isLoadingReportData is false
stephanieelliott commentedon Aug 1, 2023
I agree, the report loads for too long upon login. Adding
Externallabel so we can get this worked on[-]Web - App displays single report in LHN for some time on login with that report link[/-][+][$1000] Web - App displays single report in LHN for some time on login with that report link[/+]melvin-bot commentedon Aug 1, 2023
Job added to Upwork: https://www.upwork.com/jobs/~018345473985202219
melvin-bot commentedon Aug 1, 2023
Current assignee @stephanieelliott is eligible for the External assigner, not assigning anyone new.
38 remaining items
stephanieelliott commentedon Aug 25, 2023
Hey @tienifr, can you please share the PR that addresses the regression mentioned above? I'm not seeing that PR anywhere
aldo-expensify commentedon Aug 25, 2023
@stephanieelliott we are considering the PR as an alternative: #25159 it is in review process, it seems like it is not handling all cases 100% well yet
aldo-expensify commentedon Aug 29, 2023
PR still under review, seems like some conflicts were incorrectly resolved.
stephanieelliott commentedon Aug 29, 2023
Cool, thanks @aldo-expensify! Will keep an eye in #25159
stephanieelliott commentedon Aug 31, 2023
Deployed to production 8/30, updating payment date in issue title.
[-][HOLD for payment 2023-08-24] [$1000] Web - App displays single report in LHN for some time on login with that report link[/-][+][HOLD for payment 2023-09-06] [$1000] Web - App displays single report in LHN for some time on login with that report link[/+]melvin-bot commentedon Sep 4, 2023
@ArekChr, @stephanieelliott, @aldo-expensify, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick!
stephanieelliott commentedon Sep 6, 2023
Summarizing payment on this issue:
Upwork job is here, no speed bonus due to regression