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
[Due for payment 2025-04-18] [HIGH] LHN - Group chat with only scan receipt split expense disappears from the LHN #53956
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: 9.0.74-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Component: Left Hand Navigation (LHN) Issue reported by: Applause - Internal Team
Action Performed:
Go to staging.new.expensify.com
Click FAB (Green + button)
Click Start Chat
Add 2 other user to group
Click Next
Click Start Group
Click + icon
Click Split expense
Upload a receipt, click Split expense
Open a different chat
Expected Result:
The created group chat with a split expense is still visible and accessible from the LHN
Actual Result:
The created group chat disappears from the LHN
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android: Standalone
Android: HybridApp
Android: mWeb Chrome
iOS: Standalone
iOS: HybridApp
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidenceBug6691234_1733934537607.Recording__61.mp4
Please re-state the problem that we are trying to solve in this issue.
Group chat with only split bill disappears from the LHN.
What is the root cause of that problem?
The report will disappear from the LHN if the notification preference is hidden, which is true when we create a new group. When we do a split bill, the notification preference stays hidden. This issue is pretty much the same as #50478 where the chat that only contains the task disappears from the LHN.
And actually, I previously fixed this issue before in #40271, but the fix was removed by the notification preference migration PR.
What changes do you think we should make in order to solve the problem?
We will use the same solution from #50478 and my previous PR, that is by optimistically updating the notification preference of the report to ALWAYS if it's previously hidden when doing a split bill in createSplitsAndOnyxData.
But we need a BE fix too because BE will still return hidden, the same for tasks too.
(I guess we probably need to do this for money request too)
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We can test the createSplitsAndOnyxData (and other functions too for money request) and assert that the optimistic data for the chat report has its notificationPreference of the current user in the participants is updated to ALWAYS when it's previously HIDDEN.
changed the title [-]LHN - Group chat with only scan receipt split expense disappears from the LHN[/-][+][$250] LHN - Group chat with only scan receipt split expense disappears from the LHN[/+]on Dec 12, 2024
📣 @Krrunal! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
$250 is very generous for this. The price was updated due to some confusion and delays on my part. Since nothing about the solution changed after that, and we followed the same approach throughout, it doesn’t make sense to issue a different amount than the original bounty.
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] 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: N/a
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/a
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
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 Dec 11, 2024
Triggered auto assignment to @VictoriaExpensify (
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.bernhardoj commentedon Dec 11, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Group chat with only split bill disappears from the LHN.
What is the root cause of that problem?
The report will disappear from the LHN if the notification preference is hidden, which is true when we create a new group. When we do a split bill, the notification preference stays hidden. This issue is pretty much the same as #50478 where the chat that only contains the task disappears from the LHN.
And actually, I previously fixed this issue before in #40271, but the fix was removed by the notification preference migration PR.
What changes do you think we should make in order to solve the problem?
We will use the same solution from #50478 and my previous PR, that is by optimistically updating the notification preference of the report to ALWAYS if it's previously hidden when doing a split bill in
createSplitsAndOnyxData.App/src/libs/actions/Task.ts
Lines 247 to 258 in 661cd2b
But we need a BE fix too because BE will still return hidden, the same for tasks too.
(I guess we probably need to do this for money request too)
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We can test the
createSplitsAndOnyxData(and other functions too for money request) and assert that the optimistic data for the chat report has itsnotificationPreferenceof the current user in theparticipantsis updated to ALWAYS when it's previously HIDDEN.melvin-bot commentedon Dec 12, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021867027490228697541
[-]LHN - Group chat with only scan receipt split expense disappears from the LHN[/-][+][$250] LHN - Group chat with only scan receipt split expense disappears from the LHN[/+]melvin-bot commentedon Dec 12, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha (
External)shubham1206agra commentedon Dec 12, 2024
Expediting review here since I wrote the notification migration.
@bernhardoj Thanks for the proposal. But I think the fix should be internal.
@puneetlath Can you take a look into this?
bernhardoj commentedon Dec 12, 2024
We need a FE fix for the optimistic data too.
melvin-bot commentedon Dec 12, 2024
📣 @Krrunal! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Format:
120 remaining items
OfstadC commentedon Apr 17, 2025
Sure! I'm OoO tomorrow but happy to issue payment today if @getusha is able to finish the BZ checklist? 😃
bernhardoj commentedon Apr 17, 2025
Will it be $500 (since that's the price before it becomes internal, and then external again)?
OfstadC commentedon Apr 17, 2025
@bernhardoj i'm not sure, maybe @techievivek can weigh in or @mallenexpensify ?
techievivek commentedon Apr 17, 2025
$250 is very generous for this. The price was updated due to some confusion and delays on my part. Since nothing about the solution changed after that, and we followed the same approach throughout, it doesn’t make sense to issue a different amount than the original bounty.
melvin-bot commentedon Apr 18, 2025
Payment Summary
Upwork Job
BugZero Checklist (@OfstadC)
OfstadC commentedon Apr 18, 2025
Friendly bump @getusha
melvin-bot commentedon Apr 22, 2025
@OfstadC Whoops! This issue is 2 days overdue. Let's get this updated quick!
getusha commentedon Apr 22, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] 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: N/a
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/a
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
I think we have a solid unit test
OfstadC commentedon Apr 22, 2025
Thanks @getusha !
Payment Summary is accurate
bernhardoj commentedon Apr 22, 2025
Requested in ND.
garrettmknight commentedon May 13, 2025
$250 approved for @getusha