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] Chat disappears in High Traffic account #23509

Closed
1 of 6 tasks
kavimuru opened this issue Jul 24, 2023 · 20 comments
Closed
1 of 6 tasks

[HOLD] Chat disappears in High Traffic account #23509

kavimuru opened this issue Jul 24, 2023 · 20 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Monthly KSv2 Needs Reproduction Reproducible steps needed

Comments

@kavimuru
Copy link

kavimuru commented Jul 24, 2023

HOLD on #23223


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. Go to some HT channel (https://new.expensify.com/r/8292963527436014).Please do not post testing messages as this is a real channel with real customers.
  2. Scroll upwards.
  3. After a while the chat breaks and just a blank area appears.
  4. Try scroll up and down and notice a hug gap appears between the chat messages

Expected Result:

While scrolling upwards the messages should load in order from and there should be no gap and chat should not break

Actual Result:

Chat breaks and a huge gap is introduced between messages

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?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

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
Notes/Photos/Videos: Any additional supporting documentation

ht-scroll-2.mov
ht-scroll.mov

Expensify/Expensify Issue URL:
Issue reported by: @Talha345
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689786243613119

View all open jobs on GitHub

@kavimuru kavimuru added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Jul 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

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

@mateocole
Copy link

@kavimuru when I am reproducing, this happens to a certain extent on my end also. But, the chats load much faster. Is the pagination more of a internet speed issue here, or a fundamental engineering issue? Curious if when you reproduce this if the pagination matches the videos, or is different?

@conorpendergrast conorpendergrast added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Jul 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 27, 2023

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

@melvin-bot

This comment was marked as duplicate.

@flaviadefaria
Copy link
Contributor

I experience this issue all the time with my DMs. @marcaaron is this going to be handled by the pagination project? Should I close this?

@kavimuru
Copy link
Author

@mateocole I was not able to reproduce. It was reproduced only by the contributor @Talha345. So I created a GH ticket with needs reproduction label.

@marcaaron
Copy link
Contributor

This will likely be resolved by the Comment Linking project.

cc @roryabraham and @perunt

Do we have a milestone or GH Project that we can add this issue to and put it on HOLD?

I think closing it is also reasonable - this has been a known problem for a very long time 🤷‍♂️

@perunt
Copy link
Contributor

perunt commented Jul 29, 2023

we don't have a specific GH Project to tackle this issue directly. In V1 of comment linking, we use FlatList, which caused the same virtualization problem mentioned here. But in V2, we're planning to switch to WishList, and that should sort things out. The only problem is we don't have a set date for when WishList will be ready since it's still in the final stages of development and polishing.

@melvin-bot melvin-bot bot added the Overdue label Jul 31, 2023
@flaviadefaria
Copy link
Contributor

@perunt @roryabraham I'll assign this to you then. Feel free to keep it open, with the correct priority, if it makes sense or close it.

@melvin-bot melvin-bot bot removed the Overdue label Jul 31, 2023
@flaviadefaria flaviadefaria added Monthly KSv2 and removed Daily KSv2 labels Jul 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 7, 2023

@roryabraham @perunt this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Monthly KSv2 labels Aug 7, 2023
@roryabraham
Copy link
Contributor

Going to put this on HOLD for the comment linking project. I don't think it will necessarily be directly addressed by anything planned for the comment linking project, but this issue is a prerequisite for fixing this, so it makes sense to put this on HOLD

@melvin-bot melvin-bot bot removed the Overdue label Aug 9, 2023
@roryabraham roryabraham added Monthly KSv2 and removed Daily KSv2 labels Aug 9, 2023
@roryabraham roryabraham changed the title Chat disappears in High Traffic account [HOLD] Chat disappears in High Traffic account Aug 9, 2023
@roryabraham
Copy link
Contributor

Long-term I kind of think some form of eviction from the Onyx cache would be a way to solve this. i.e: once we have bidirectional pagination implemented, then we can drop reportActions from the Onyx cache and fetch them back page-by-page from the disk.

WishList might help but I do think that larger and larger chats will lead to longer and longer initial load times, even for WishList

@melvin-bot melvin-bot bot added the Overdue label Sep 11, 2023
@roryabraham
Copy link
Contributor

on HOLD

@melvin-bot melvin-bot bot removed the Overdue label Sep 11, 2023
@melvin-bot melvin-bot bot added the Overdue label Oct 13, 2023
@roryabraham
Copy link
Contributor

on HOLD

@melvin-bot melvin-bot bot removed the Overdue label Oct 17, 2023
@melvin-bot melvin-bot bot added the Overdue label Nov 20, 2023
@roryabraham
Copy link
Contributor

no update

@melvin-bot melvin-bot bot removed the Overdue label Nov 20, 2023
@perunt
Copy link
Contributor

perunt commented Nov 21, 2023

@kavimuru, could you please test it again? Recently, a few PRs were merged, which removed the old hack with the list in WEB and added some optimization. So, it should be way better now.

@melvin-bot melvin-bot bot added the Overdue label Dec 22, 2023
@roryabraham
Copy link
Contributor

@melvin-bot melvin-bot bot removed the Overdue label Dec 22, 2023
@roryabraham
Copy link
Contributor

This issue can no longer be reproduced, closing this out 🎉

@Talha345
Copy link
Contributor

@roryabraham would this issue be eligible for the reporting bonus as this was quite a peculiar bug?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Monthly KSv2 Needs Reproduction Reproducible steps needed
Projects
None yet
Development

No branches or pull requests

8 participants