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
[HOLD for payment 2023-08-10] [$1000] Mweb - "Deleted message" chat appears in chat list for pinned deleted threads #22950
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Go to any chat and long press on any message within the chat
Click on reply in thread and send a message in thread
Pin the thread using the pin icon at top right corner
Now delete the parent message in the thread
Go back to parent message and click on thread
Now delete the child message in the thread
Go back to chat and observe the thread has been removed
Go to chat list and observe that the deleted thread can be found pinned as "Deleted message" chat
Expected Result:
The deleted thread should also be removed
Actual Result:
The deleted thread remains in the chat list even after parent and child messages are both deleted
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.41-1 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 Notes/Photos/Videos: Any additional supporting documentation
@fedirjh and @MonilBhavsar - Could I get feedback here? I see that @hungvu193 worked on the fix for #21103. @hungvu193 please add feedback too. I see the fixed issue was focused on web. To confirm, that fix does not take into account Mweb say for Chrome on Android? I'm trying to confirm this one isn't a dupe before assigning the external label. Thanks!
Yep, I think this is a case we didn't think about when we changed the expected behavior in that issue. Not specifically a regression since I'm guessing this behavior would have happened before the change too. Should be a pretty easy fix though!
changed the title [-]Mweb - "Deleted message" chat appears in chat list for pinned deleted threads[/-][+][$1000] Mweb - "Deleted message" chat appears in chat list for pinned deleted threads[/+]on Jul 21, 2023
changed the title [-][$1000] Mweb - "Deleted message" chat appears in chat list for pinned deleted threads[/-][+][HOLD for payment 2023-08-10] [$1000] Mweb - "Deleted message" chat appears in chat list for pinned deleted threads[/+]on Aug 3, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.49-3 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 2023-08-10. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
External issue reporter
Contributor that fixed the issue
Contributor+ that helped on the issue and/or PR
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:
[@rushatgabhane] The PR that introduced the bug has been identified. Link to the PR:
[@rushatgabhane] 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:
[@rushatgabhane] A discussion in #expensify-bugs 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:
[@rushatgabhane] Determine if we should create a regression test for this bug.
[@rushatgabhane] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@alexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
A discussion in #expensify-bugs 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: One off case.
Determine if we should create a regression test for this bug. No
If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again - N.A.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jul 15, 2023
Triggered auto assignment to @alexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jul 15, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)hungvu193 commentedon Jul 15, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Mweb - "Deleted message" chat appears in chat list for pinned deleted threads
What is the root cause of that problem?
We're checking in here, if our reports are pinned or hasDraft then added it to the list.
App/src/libs/ReportUtils.js
Lines 2127 to 2129 in 6e5b07c
In this case, even our parent reportAction was deleted and not visible any more, we still show the child report because it's pinned.
What changes do you think we should make in order to solve the problem?
Add a condition in here to check, if our thread is empty and deleted, we shouldn't add it to the list even it has draft or pinned.
or
Incase we wanna keep the report if we have draft we can change the condition above, it depends on the expected requirements.
What alternative solutions did you explore? (Optional)
N/A
alexpensify commentedon Jul 17, 2023
I was assigned over the weekend-- I will review it soon.
alexpensify commentedon Jul 19, 2023
@fedirjh and @MonilBhavsar - Could I get feedback here? I see that @hungvu193 worked on the fix for #21103. @hungvu193 please add feedback too. I see the fixed issue was focused on web. To confirm, that fix does not take into account Mweb say for Chrome on Android? I'm trying to confirm this one isn't a dupe before assigning the
externallabel. Thanks!fedirjh commentedon Jul 20, 2023
@alexpensify This issue doesn’t looks related to the PR @hungvu193 worked on. But I think this is a missed case from #21508 , cc @dangrous or @mananjadhav could you please add any feedbacks ?
alexpensify commentedon Jul 20, 2023
@fedirjh - thank you for pointing me in a better direction! I'll wait for @dangrous or @mananjadhav feedback before assigning the
externallabel.dangrous commentedon Jul 21, 2023
Yep, I think this is a case we didn't think about when we changed the expected behavior in that issue. Not specifically a regression since I'm guessing this behavior would have happened before the change too. Should be a pretty easy fix though!
[-]Mweb - "Deleted message" chat appears in chat list for pinned deleted threads[/-][+][$1000] Mweb - "Deleted message" chat appears in chat list for pinned deleted threads[/+]33 remaining items
[-][$1000] Mweb - "Deleted message" chat appears in chat list for pinned deleted threads[/-][+][HOLD for payment 2023-08-10] [$1000] Mweb - "Deleted message" chat appears in chat list for pinned deleted threads[/+]melvin-bot commentedon Aug 3, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Aug 3, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.49-3 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 2023-08-10. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
melvin-bot commentedon Aug 3, 2023
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:
alexpensify commentedon Aug 5, 2023
I've confirmed that the hires are in Upwork and will complete the payment summary next as we get closer to the payment date.
@rushatgabhane - when you get a chance, can you please complete the checklist before August 10? Thanks!
alexpensify commentedon Aug 8, 2023
@rushatgabhane - bumping again, we are approaching the pay period. Please complete the checklist to avoid delays to close this GH. Thanks!
rushatgabhane commentedon Aug 10, 2023
The PR that introduced the bug has been identified. Link to the PR: Hide Threads with No Comments from LHN #19375
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: https://github.com/Expensify/App/pull/19375/files#r1291252591
A discussion in #expensify-bugs 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: One off case.
Determine if we should create a regression test for this bug. No
If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again - N.A.
alexpensify commentedon Aug 10, 2023
Here is the payment summary:
Upwork Job: https://www.upwork.com/jobs/~01259a3effbfb36398
*If applicable, the bonuses will be applied on the final payment
Extra Notes regarding payment: No urgency bonus here but I've completed the payments in Upwork for @SofoniasN and @hoangzinh
@rushatgabhane it looks like the checklist is still WIP but please request a payment via chat when it's complete. Thanks!
rushatgabhane commentedon Aug 11, 2023
checklist done
manual request created - https://staging.new.expensify.com/r/750834249578109
alexpensify commentedon Aug 11, 2023
Thank you for the update! We are all set and I'm going to close this GH.
JmillsExpensify commentedon Aug 16, 2023
Reviewed the details for @rushatgabhane. Approved for payment in NewDot based on BZ summary above.