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 for payment 2024-06-06] CRITICAL: [$250] Clicking New messages when there are no new messages inexplicably calls OpenReport, and doesn't clear #41188

Closed
1 of 6 tasks
quinthar opened this issue Apr 29, 2024 · 27 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 External Added to denote the issue can be worked on by a contributor Task

Comments

@quinthar
Copy link
Contributor

quinthar commented Apr 29, 2024

Being discussed here: https://expensify.slack.com/archives/C049HHMV9SM/p1714365067885319 -- please update this post with the final report.

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.67-2
Reproducible in staging?: Yes
Reproducible in production?: Yes
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: @quinthar
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1714365067885319

Action Performed:

  1. Go to staging.new.expensify.com
  2. Open #new-expensify-feedback room

Expected Result:

There should be no new message pill unless there is one and pill disappears after clicking it.

Actual Result:

Clicking New message pill calls Open report, Displayed even when no message to read and not disappearing after clicking it.

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

Screen.Recording.2024-04-28.at.9.27.15.PM.mov
Recording.3066.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0103902e78e2cd9c80
  • Upwork Job ID: 1787163804302856192
  • Last Price Increase: 2024-05-12
  • Automatic offers:
    • shubham1206agra | Reviewer | 0
Issue OwnerCurrent Issue Owner: @shubham1206agra
@quinthar quinthar converted this from a draft issue Apr 29, 2024
@melvin-bot melvin-bot bot added the Monthly KSv2 label May 2, 2024
@quinthar
Copy link
Contributor Author

quinthar commented May 3, 2024

Hm, can't reproduce, closing.

@quinthar quinthar closed this as completed May 3, 2024
@quinthar quinthar reopened this May 5, 2024
@quinthar
Copy link
Contributor Author

quinthar commented May 5, 2024

Actually I can reproduce this in the #new-expensify-feedback room reliably. I think it might have something to do with it being a public room and having so many hidden whispers.

(As a reminder, for bidirectional scrolling and comment linking, we need to send all reportActions to the client -- even "whispers" not addressed to them. We're aware of the privacy violation and that'll be addressed separately. But a consequence of that design is it mean when you enter a public room that hasn't had any visible activity for a long time, there can be pages and pages of invisible whispers it needs to return for you to get a full page of visible. This has performance implications we're also aware of and working on separately. But for now, this is the way it is, and we need to make sure it works well.)

@quinthar quinthar added External Added to denote the issue can be worked on by a contributor Daily KSv2 Task and removed Monthly KSv2 labels May 5, 2024
Copy link

melvin-bot bot commented May 5, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0103902e78e2cd9c80

@melvin-bot melvin-bot bot changed the title HIGH: [UX Reliability] Clicking New messages when there are no new messages inexplicably calls OpenReport, and doesn't clear [$250] HIGH: [UX Reliability] Clicking New messages when there are no new messages inexplicably calls OpenReport, and doesn't clear May 5, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 5, 2024
Copy link

melvin-bot bot commented May 5, 2024

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

@samilabud
Copy link
Contributor

Proposal

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

Floating New Message displayed where there are no new messages and does not disappear when clicked.

What is the root cause of that problem?

We are currently not verifying if the current report/chat has new unread messages,

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

We should include the verification for new unread message in the current chat ReportUtils.isUnread(report), because if there is no unread message there is no sense to make any further evaluation, for that we should add the condition as below in ReportActionsList:

const canScrollToNewerComments =
        !ReportUtils.isUnread(report) && !isLoadingInitialReportActions && !hasNewestReportAction && sortedReportActions.length > 25 && !isLastPendingActionIsDelete;

Test:

Screen.Recording.2024-05-05.at.10.49.06.PM.mov

@shubham1206agra
Copy link
Contributor

@samilabud Thanks for the proposal, but I don't think your RCA/solution is right. By adding unread condition, we are breaking intended functionality for comment linking.

@samilabud
Copy link
Contributor

we are breaking intended functionality for comment linking.
Hey @shubham1206agra please let me know specifically what functionality is broke to try to find a better solution.

Related Tests:

Currently these are the behaviors with the change applied and the comment linking:
Comment.linking.in.dev.-.new.message.floating.mp4
This is a test in Staging with the same link:
Comment.linking.in.staging.-.new.message.floating.mp4

Copy link

melvin-bot bot commented May 10, 2024

@shubham1206agra Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented May 12, 2024

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

@quinthar quinthar changed the title [$250] HIGH: [UX Reliability] Clicking New messages when there are no new messages inexplicably calls OpenReport, and doesn't clear CRITICAL: [$250] Clicking New messages when there are no new messages inexplicably calls OpenReport, and doesn't clear May 12, 2024
@quinthar quinthar moved this to CRITICAL in [#whatsnext] #quality May 12, 2024
@shubham1206agra
Copy link
Contributor

@samilabud I tested your solution on #new-expensify-feedback. It doesn't work.

@melvin-bot melvin-bot bot removed the Overdue label May 13, 2024
@muttmuure
Copy link
Contributor

Tagging @adhorodyski @TMisiukiewicz for some help

@muttmuure
Copy link
Contributor

@burczu is going to take a look at this one

Copy link

melvin-bot bot commented May 20, 2024

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

@melvin-bot melvin-bot bot added the Overdue label May 20, 2024
@burczu
Copy link
Contributor

burczu commented May 21, 2024

not overdue - I'll provide the PR soon

Copy link

melvin-bot bot commented May 22, 2024

Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 30, 2024
@melvin-bot melvin-bot bot changed the title CRITICAL: [$250] Clicking New messages when there are no new messages inexplicably calls OpenReport, and doesn't clear [HOLD for payment 2024-06-06] CRITICAL: [$250] Clicking New messages when there are no new messages inexplicably calls OpenReport, and doesn't clear May 30, 2024
Copy link

melvin-bot bot commented May 30, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 30, 2024
Copy link

melvin-bot bot commented May 30, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.77-11 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-06-06. 🎊

For reference, here are some details about the assignees on this issue:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 6, 2024
Copy link

melvin-bot bot commented Jun 6, 2024

Issue is ready for payment but no BZ is assigned. @johncschuster you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!

@johncschuster
Copy link
Contributor

Payment Summary:

Contributor+: @shubham1206agra $250 - paid via Upwork - please accept the offer!

@johncschuster
Copy link
Contributor

(Discussing in the linked PR above to make sure there wasn't a regression)

@shubham1206agra
Copy link
Contributor

@johncschuster Accepted

@johncschuster
Copy link
Contributor

Payment has been issued! Thanks, @shubham1206agra!

@github-project-automation github-project-automation bot moved this from CRITICAL to Done in [#whatsnext] #quality Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 External Added to denote the issue can be worked on by a contributor Task
Projects
Development

No branches or pull requests

8 participants