-
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 2023-11-09] [$500] A "New Messages" notification is shown when there is no new message #30359
Comments
Triggered auto assignment to @alexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~013619be7f4c5f8ab1 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ArekChr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The "New Messages" notification is shown even after all the new messages are deleted What is the root cause of that problem?We are setting the App/src/pages/home/report/ReportActionsList.js Lines 318 to 330 in 38d647e
When marking a message unread, the reportActionID of the message is set to currentUnreadMarker .When removing the message after that, we don't set null to currentUnreadMarker as you can see. So the currentUnreadMarker would have the old value even after the message is deleted
This is the root cause What changes do you think we should make in order to solve the problem?We need to set
This works as expected Result30359.mp4What alternative solutions did you explore? (Optional) |
@s-alves10 What if another user deletes a new message when the current user has opened a report with the new message? I think this could not be handled case, but it is a very similar scenario |
then reportActions would change by pusher event and the effect callback will be called. I guess the notification message would disappear. I'll test it shortly |
I just tested the case you mentioned and the 'New messages' notification disappears when the other user deletes the new message |
Great @s-alves10! We can go with your solution. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @madmax330, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Looks like the PR is merged, waiting for automation here. |
Triggered auto assignment to @sonialiap ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
Reassigning another team member, I'm going OOO until Tuesday, November 14, and will take it back if it's still open by my return date. @sonialiap - Required action from the team: This payment is on hold due to regression. Can you please keep an eye out and make sure that we are making progress to address the issue and can prepare for a new payment date? Thanks! |
@s-alves10 any news? |
I don't think this causes a regression. Please check #30696 (comment) |
@sonialiap - I'm back online and will take it from here. @madmax330 or @ArekChr - can you please confirm if you agree that this update didn't cause a regression? Also, @ArekChr please complete the checklist #30359 (comment). I want to complete the payment process this week. Thanks! |
Regression test proposal
Do we agree 👍 or 👎 |
I attempted to reproduce the issue mentioned, but I encountered a different problem which prevented me from doing so. Specifically, I could not delete messages due to new issues related to the action bar. @s-alves10 Did you find the root cause of 30359? |
What do you mean by root cause of 30359? You mean the root cause of this issue? |
@s-alves10 I regard to this message |
Oh, yes. I left a comment there. Please check #30696 (comment) |
@ArekChr - to confirm, is the issue you faced due to regression from this issue or something else? I'm trying to see if we can close this issue and carry on with the payment process tomorrow. Thanks! |
@alexpensify After looking at the @s-alves10 investigation. It looks like this issue doesn't introduce regression. We can close the issue and move forward with the payment process. |
Agree not regression and not affect payment but #30696 should be handled follow-up as part of this issue because that issue was raised up after merging this PR. |
Here is the payment summary:
Upwork Job: https://www.upwork.com/jobs/~013619be7f4c5f8ab1 Extra Notes regarding payment: No bonus, the PR was created after the notification period. |
@s-alves10 - please accept in Upwork and I can complete this process. Thanks! |
Offer accepted. Thanks |
Awesome! Great work, and thanks for your patience as we sorted if there was regression here. I've paid everyone in Upwork and closed the job. Now, I'm going to close this GH too. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
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.3.90-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: @daveSeife
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1698164387186969
Action Performed:
Expected Result:
"New Messages" notification is not shown when there is no new message
Actual Result:
A "New Messages" notification is shown when there is no new message
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
XRecorder_24102023_191913.mp4
Android: mWeb Chrome
XRecorder_24102023_191754.mp4
iOS: Native
t11NewMessage.iosApp.mp4
iOS: mWeb Safari
t11NewMessage.iosSafari.mp4
MacOS: Chrome / Safari
t11NewMessage.macChrome.mp4
New.Msg.mp4
MacOS: Desktop
t11NewMessage.desktop.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: