-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 for payment 2024-01-28] CRITICAL: [$500] Switching from most recent to #focus shows already-read chats in the LHN #34466
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0111ebc2af8eb5ed14 |
Triggered auto assignment to @zanyrenney ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Switching from the most recent fo #focus mode still shows all read chats What is the root cause of that problem?When we change the priority mode, it will recalculate the chats that should be shown on the LHN. App/src/pages/home/sidebar/SidebarLinksData.js Lines 75 to 88 in 753ce92
It will first compare with the existing list whether something has changed or not, then, we will only get the updated list IF the app is not loading (!isLoading). However, we have an issue where the But this problem arose again because, in #33530, we are adding a new property called What changes do you think we should make in order to solve the problem?We should include App/src/libs/actions/OnyxUpdates.ts Lines 87 to 95 in 753ce92
Another issue:But another thing I notice with this switching mode is that the list could be late to be updated because we ignore the updates if App/src/pages/home/sidebar/SidebarLinksData.js Lines 84 to 86 in 753ce92
However, this becomes a problem when we switch from focus to most recent because it will also call OpenApp, so if we switch from focus -> most recent -> focus, we will see all read chats in the 2nd focus mode for a few seconds before the OpenApp completes. Screen.Recording.2024-01-13.at.15.50.52.movWe can fix this by adding another condition that checks if the priority mode is updated, then we will update the list.
|
@parasharrajat please review the proposal and let me know what you think. |
Added to #vip-vsb, thanks so much for taking this on! It's blocking #33619, which is a pretty important one. |
Reviewing... |
@bernhardoj's proposal is spot on. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @dangrous, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
This sounds great! Assigning. |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
What's the ETA for this? |
What's the ETA for review? |
The PR is merged |
Yep! This is on staging now, being QAd |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.28-0 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-01-28. 🎊 For reference, here are some details about the assignees on 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:
|
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:
Regression Test Steps
Do you agree 👍 or 👎 ? |
@parasharrajat I'm trying to figure out whether the PR that caused this is right. #34466 was discovered in v1.4.24-7 and the deploy blocker slack thread shows it in production. #33530 was deployed to staging in 1.4.24-4, to production in 1.4.24-8. Are you sure that's the right one? |
@parasharrajat bump on the above |
Hmm, I was also a little confused by this. I tried to pinpoint the PR where I It might be possible that logic related to this issue was refactored later in some other PR which triggered this issue. I could use some help here if we want to know the exact PR that made the bug noticeable. |
So based on the solve, as well as this being a user (Expensify employee) reported bug, I think this may be one of those bugs that's been there pretty much since the beginning, we maybe just didn't notice it? We didn't appear to have regression tests that would catch it so it'll be unclear when it started. That might be a cop out, though - I didn't investigate too long - but it feels like it might be the case |
let me know what you think of that ^ @garrettmknight and @parasharrajat. |
It is possible. I think we are fine with the above-linked PR. IMO PR could have solved this issue if the finallyData case was implemented as well. |
Yeah I think it's kind of a mix - the bug existed likely since the beginning, and then that linked PR could have fixed it but didn't since it didn't apply the onyx updates for finallydata |
Following up on this @garrettmknight @zanyrenney should we investigate this further, or are we good to move forward on payment? |
Hey @dangrous - no need to investigate further. We're good to pay out here. |
Great! @zanyrenney we're ready to go here - thanks! |
Thanks @danieldoglas |
payment summary: @parasharrajat requires payment through NewDot Manual Requests - please request $500 for this issue |
Payment requested as per #34466 (comment) |
$500 approved for @parasharrajat |
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: v1.4.24-7
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: No
Email or phone of affected tester (no customers): All
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @roryabraham
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1705098619607699
Action Performed:
Precondition: User must have several conversations and no unread chats. Priority mode is set to Most Recent
Expected Result:
Only the current report should be visible in the LHN
Actual Result:
The LHN remains unchanged (or at least, many unread chats remain visible in the LHN)
Workaround:
If the user takes other actions before refreshing, the issue is not reproduced.
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Reprod.in.prod.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @zanyrenneyThe text was updated successfully, but these errors were encountered: