Skip to content

[HOLD for payment 2023-09-06] [$1000] Web - App displays single report in LHN for some time on login with that report link #23735

Closed

Description

@kbecciv

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Open the app
  2. Open any report and pin it
  3. Copy the URL
  4. Logout and paste the URL and press enter
  5. 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

only.one.report.loaded.login.mov
Recording.3939.mp4

Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690386361860209

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018345473985202219
  • Upwork Job ID: 1686430262619181056
  • Last Price Increase: 2023-08-08
  • Automatic offers:
    • tienifr | Contributor | 26019546
    • dhanashree-sawant | Reporter | 26019547

Activity

  1. added
    Daily
    Bug
    on Jul 27, 2023
  2. melvin-bot commented on Jul 27, 2023

    @melvin-bot

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

  3. melvin-bot commented on Jul 27, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. tienifr commented on Jul 28, 2023

    @tienifr
    Contributor

    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

    const isLoading = _.isEmpty(chatReports) || isPersonalDetailsLoading;

    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.

    Screenshot 2023-07-28 at 17 46 33

    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.

    I suggest change this line

    const isLoading = _.isEmpty(chatReports) || isPersonalDetailsLoading;

    to const isLoading = SessionUtils.didUserLogInDuringSession() && isLoadingReportData

    We subscribe isLoadingReportData in withOnyx

            isLoadingReportData: {
                key: ONYXKEYS.IS_LOADING_REPORT_DATA
            },
    

    the default isLoadingReportData is true

    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

    Screenshot 2023-07-28 at 18 22 29

    Solution 2: We can show the skeleton in ReportScreen until isLoadingReportData is false

  5. stephanieelliott commented on Aug 1, 2023

    @stephanieelliott
    Contributor

    I agree, the report loads for too long upon login. Adding External label so we can get this worked on

  6. added
    External
    on Aug 1, 2023
  7. 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
  8. melvin-bot commented on Aug 1, 2023

    @melvin-bot
  9. added
    Help Wanted
    on Aug 1, 2023
  10. melvin-bot commented on Aug 1, 2023

    @melvin-bot

    Current assignee @stephanieelliott is eligible for the External assigner, not assigning anyone new.

  11. 38 remaining items

  12. stephanieelliott commented on Aug 25, 2023

    @stephanieelliott
    Contributor

    Hey @tienifr, can you please share the PR that addresses the regression mentioned above? I'm not seeing that PR anywhere

  13. aldo-expensify commented on Aug 25, 2023

    @aldo-expensify
    Contributor

    @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

  14. aldo-expensify commented on Aug 29, 2023

    @aldo-expensify
    Contributor

    PR still under review, seems like some conflicts were incorrectly resolved.

  15. stephanieelliott commented on Aug 29, 2023

    @stephanieelliott
    Contributor

    Cool, thanks @aldo-expensify! Will keep an eye in #25159

  16. stephanieelliott commented on Aug 31, 2023

    @stephanieelliott
    Contributor

    Deployed to production 8/30, updating payment date in issue title.

  17. 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
  18. melvin-bot commented on Sep 4, 2023

    @melvin-bot

    @ArekChr, @stephanieelliott, @aldo-expensify, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick!

  19. stephanieelliott commented on Sep 6, 2023

    @stephanieelliott
    Contributor

    Summarizing payment on this issue:

    • Issue reporter: @dhanashree-sawant $250, paid via Upwork
    • Contributor: @tienifr $500, paid via Upwork ($1000 w/ 50% reduction for regression)
    • Contributor+: @ArekChr N/A (expert contrib, no payment due)

    Upwork job is here, no speed bonus due to regression

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions