Skip to content

[Due for payment 2025-04-18] [HIGH] LHN - Group chat with only scan receipt split expense disappears from the LHN #53956

Closed

Description

@lanitochka17

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


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:

  1. Go to staging.new.expensify.com
  2. Click FAB (Green + button)
  3. Click Start Chat
  4. Add 2 other user to group
  5. Click Next
  6. Click Start Group
  7. Click + icon
  8. Click Split expense
  9. Upload a receipt, click Split expense
  10. 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 evidence
Bug6691234_1733934537607.Recording__61.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021867027490228697541
  • Upwork Job ID: 1867027490228697541
  • Last Price Increase: 2025-03-12
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @OfstadC

Activity

  1. added
    Daily
    Bug
    on Dec 11, 2024
  2. melvin-bot commented on Dec 11, 2024

    @melvin-bot

    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.

  3. bernhardoj commented on Dec 11, 2024

    @bernhardoj
    Contributor

    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.

    const shouldUpdateNotificationPreference = !isEmptyObject(parentReport) && ReportUtils.getReportNotificationPreference(parentReport) === CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN;
    if (shouldUpdateNotificationPreference) {
    optimisticData.push({
    onyxMethod: Onyx.METHOD.MERGE,
    key: `${ONYXKEYS.COLLECTION.REPORT}${parentReportID}`,
    value: {
    participants: {
    [currentUserAccountID]: {notificationPreference: CONST.REPORT.NOTIFICATION_PREFERENCE.ALWAYS},
    },
    },
    });
    }

    image

    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.

  4. added
    External
    on Dec 12, 2024
  5. melvin-bot commented on Dec 12, 2024

    @melvin-bot
  6. 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
  7. added
    Help Wanted
    on Dec 12, 2024
  8. melvin-bot commented on Dec 12, 2024

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha (External)

  9. shubham1206agra commented on Dec 12, 2024

    @shubham1206agra
    Contributor

    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?

  10. bernhardoj commented on Dec 12, 2024

    @bernhardoj
    Contributor

    We need a FE fix for the optimistic data too.

  11. melvin-bot commented on Dec 12, 2024

    @melvin-bot

    📣 @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:

    1. Make sure you've read and understood the contributing guidelines.
    2. 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.
    3. 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.
    4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
      Screen Shot 2022-11-16 at 4 42 54 PM
      Format:
    Contributor details
    Your Expensify account email: <REPLACE EMAIL HERE>
    Upwork Profile Link: <REPLACE LINK HERE>
    
  12. 120 remaining items

  13. OfstadC commented on Apr 17, 2025

    @OfstadC
    Contributor

    Sure! I'm OoO tomorrow but happy to issue payment today if @getusha is able to finish the BZ checklist? 😃

  14. bernhardoj commented on Apr 17, 2025

    @bernhardoj
    Contributor

    Will it be $500 (since that's the price before it becomes internal, and then external again)?

  15. OfstadC commented on Apr 17, 2025

    @OfstadC
    Contributor

    @bernhardoj i'm not sure, maybe @techievivek can weigh in or @mallenexpensify ?

  16. techievivek commented on Apr 17, 2025

    @techievivek
    Contributor

    $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.

  17. melvin-bot commented on Apr 18, 2025

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@OfstadC)

    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1867027490228697541/hired)
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  18. OfstadC commented on Apr 18, 2025

    @OfstadC
    Contributor

    Friendly bump @getusha

  19. melvin-bot commented on Apr 22, 2025

    @melvin-bot

    @OfstadC Whoops! This issue is 2 days overdue. Let's get this updated quick!

  20. getusha commented on Apr 22, 2025

    @getusha
    Contributor

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 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.

    I think we have a solid unit test

  21. OfstadC commented on Apr 22, 2025

    @OfstadC
    Contributor

    Thanks @getusha !

    Payment Summary is accurate

  22. bernhardoj commented on Apr 22, 2025

    @bernhardoj
    Contributor

    Requested in ND.

  23. garrettmknight commented on May 13, 2025

    @garrettmknight
    Contributor

    $250 approved for @getusha

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyInternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions