Skip to content

[$500] IOU - Created IOU is not displayed on LHN #34757

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: 1.4.27-0
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Login as User A with expensify account
  2. Navigate to User B conversation> Create Money request
  3. Navigate to LHN

Expected Result:

Created IOU should be displayed on LHN

Actual Result:

Created IOU is not displayed on LHN

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6346861_1705602506674.az_recorder_20240118_152241.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0188517c573d780717
  • Upwork Job ID: 1748067009116999680
  • Last Price Increase: 2024-02-08

Activity

  1. added
    External
    Daily
    Bug
    on Jan 18, 2024
  2. melvin-bot commented on Jan 18, 2024

    @melvin-bot
  3. changed the title [-]IOU - Created IOU is not displayed on LHN[/-] [+][$500] IOU - Created IOU is not displayed on LHN[/+] on Jan 18, 2024
  4. melvin-bot commented on Jan 18, 2024

    @melvin-bot

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

  5. added
    Help Wanted
    on Jan 18, 2024
  6. melvin-bot commented on Jan 18, 2024

    @melvin-bot

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

  7. lanitochka17 commented on Jan 18, 2024

    @lanitochka17
    Author
  8. dummy-1111 commented on Jan 18, 2024

    @dummy-1111
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    When creating a money request, IOU report isn't displayed in LHN

    What is the root cause of that problem?

    We hide the muted chats intentionally in this PR #22717
    Later we hide the hidden chats in this PR #25618

    When creating a money request, notificationPreference is set to hidden by backend
    image

    This is the root cause

    What changes do you think we should make in order to solve the problem?

    I'm not sure why we didn't show reports with notificationPreference = hidden. I think we should hide muted reports
    Update

    const isHidden = optionItem.notificationPreference === CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN;
    if (isHidden && !props.isFocused && !optionItem.isPinned) {
    return null;
    }

    to

        const isMuted = optionItem.notificationPreference === CONST.REPORT.NOTIFICATION_PREFERENCE.MUTE;
        if (isMuted && !props.isFocused && !optionItem.isPinned) {
            return null;
        }
    

    This works as expected

    Result
    34757.mp4

    What alternative solutions did you explore? (Optional)

    Option 1
    The backend doesn't set the notificationPreference to hidden

    Option 2
    We don't hide the hidden IOU report while hide the hidden report

  9. dukenv0307 commented on Jan 19, 2024

    @dukenv0307
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Created IOU is not displayed on LHN

    What is the root cause of that problem?

    The IOU report has notificationPreference is hidden when we build the optimistic data and BE also return it as hidden by default.

    notificationPreference: CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN,

    notificationPreference: CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN,

    What changes do you think we should make in order to solve the problem?

    Change the default notificationPreference of IOU report as CONST.REPORT.NOTIFICATION_PREFERENCE.ALWAYS and BE should fix this as well.

    I know that it's intentional before but I think we shouldn't hide the IOU report by default.

    notificationPreference: CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN,

    notificationPreference: CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN,

    What alternative solutions did you explore? (Optional)

    NA

  10. Santhosh-Sellavel commented on Jan 23, 2024

    @Santhosh-Sellavel
    Collaborator

    @dukenv0307 proposal fixes the bug for the offline cases. Yeah, we need to fix this at BE as well.

    Can you assign @kevinksullivan an internal label here to get the BE issue fixed?

    Not sure whether we need an FE fix, will decide once BE gets fixed.

  11. 23 remaining items

  12. melvin-bot commented on Feb 8, 2024

    @melvin-bot

    @kevinksullivan @Santhosh-Sellavel this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!

  13. melvin-bot commented on Feb 8, 2024

    @melvin-bot

    📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

  14. melvin-bot commented on Feb 12, 2024

    @melvin-bot

    @kevinksullivan, @Santhosh-Sellavel Huh... This is 4 days overdue. Who can take care of this?

  15. melvin-bot commented on Feb 14, 2024

    @melvin-bot

    @kevinksullivan, @Santhosh-Sellavel 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  16. melvin-bot commented on Feb 15, 2024

    @melvin-bot

    @kevinksullivan @Santhosh-Sellavel this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:

    • Decide whether any proposals currently meet our guidelines and can be approved as-is today
    • If no proposals meet that standard, please take this issue internal and treat it as one of your highest priorities
    • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

    Thanks!

  17. removed
    External
    Help Wanted
    on Feb 15, 2024
  18. melvin-bot commented on Feb 16, 2024

    @melvin-bot

    @kevinksullivan, @Santhosh-Sellavel 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

  19. melvin-bot commented on Feb 20, 2024

    @melvin-bot

    @kevinksullivan, @Santhosh-Sellavel 12 days overdue now... This issue's end is nigh!

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

Metadata

Metadata

Labels

BugDailyEngineeringInternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions