-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-08-02] [$250] mweb-LHN-Mark as unread a message after deleting self mention displays green dot in LHN. #40469
Comments
Triggered auto assignment to @twisterdotcom ( |
@twisterdotcom FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
We think this bug might be related to #vip-vsb |
A mobile web bug for an uncommon flow, this is niche. |
@twisterdotcom Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@twisterdotcom Eep! 4 days overdue now. Issues have feelings too... |
Job added to Upwork: https://www.upwork.com/jobs/~01e421f5653f9e5c16 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Mark as unread a message after deleting self mention displays green dot in LHN. What is the root cause of that problem?When we delete a mention report action, we're not deleting/reseting the What changes do you think we should make in order to solve the problem?When we delete a mentioned report action:
We might need to make similar changes in back-end. What alternative solutions did you explore? (Optional)In step 2, we can improve on it by having a Out-of-scope observation: We're not optimistically setting the |
I'll review this one tomorrow. |
@tienifr 's main solution here looks good to me! 🎀 👀 🎀 C+ reviewed. |
Triggered auto assignment to @neil-marcellini, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Bump @neil-marcellini |
@twisterdotcom @hungvu193 @neil-marcellini this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Bump @neil-marcellini |
Yesterday I wrote a test for a slightly more complicated case and updated the query to set the last mentioned time for all users in the mention. Finding the last read time and doing the update now happens in one query. I'm also changing it to only send the Onyx update when a user marks the report as unread, because that's the only flow where it's used in App right now and OpenReport will update lastMentionedTime as well. Before I write more tests I should get the query timed to make sure it's going to be fast enough. I'm concerned that it will not be since I think it involves scanning over all report actions. If it's too slow we might need a totally different approach towards mention data storage. |
How is this going @neil-marcellini? |
I've been concerned that the query to fix this on the backend won't scale, so I brought that up in #engineering-chat today. After some discussion we decided that the only way to make this efficient is to change the storage format for mentions, and agreed that it's not worth doing so to fix this edge case. So we're going to do nothing on the backend. However, I think we can still go ahead with the frontend fix because it looks like it solves this exact case and only has a bug in an even more extreme edge case described here. |
@tienifr @hungvu193 would you please get the conflicts resolved, retest the PR, and get it ready to merge? |
@neil-marcellini Conflicts resolved, can you take a look at the PR please? |
Taking a look! |
What are we waiting on here? |
We found a bug during our review so we're trying to fix it |
Turns out it's a backend bug though, and we already said above we're not going to fix that. Hopefully we can get this merged soon. |
The PR was merged today, finally! |
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.12-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-08-02. 🎊 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:
|
Regression Test:
Do we 👍 or 👎 ? |
Both eligible for Manual Requests. Payment Summary:
|
$250 approved for @hungvu193 |
$250 approved for @tienifr |
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: 1.4.63-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: n/a
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:
Expected Result:
Mark as unread a message after deleting self mention must not display green dot in LHN.
Actual Result:
Mark as unread a message after deleting self mention displays green dot in LHN.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6453516_1713452138014.self_email.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @twisterdotcomThe text was updated successfully, but these errors were encountered: