-
Notifications
You must be signed in to change notification settings - Fork 75
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
Mark All Read fails on notifications page #5433
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bumping this here to prevent from going stale: this is still occuring (I still have one unread DM I cannot read or delete). One possible source of this issue: deleting of spam messages without reading them first. Spam messages are removed from view, but not actually deleted, leading to this error state. |
To be honest, this seems like more a back end issue than front end. I don't think we have a good way to deal with deleting spam and my guess is that when those messages were "deleted", their read state wasn't changed from unread to read at the same time of deletion. I think the Talk API needs an administrative method to correctly mark unread messages as deleted then read in a batch or something like that. |
yes I agree - these messages need to be cleaned up properly in the talk api. One other point is that talk doesn't have a notion of read messages :( see zooniverse/talk-api#160 |
That's unfortunate. I made an assumption that it did. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closed by probot-stale due to a lack of recent activity. Please feel free to re-open if you wish to take on this change. |
An existence check for Panoptes-Front-End/app/pages/notifications/notification-section.jsx Lines 131 to 133 in cedef38
|
@eatyourgreens @camallen There's a new report on Talk of this notifications bug, and I wanted to bring it to your attention to further document - https://www.zooniverse.org/talk/17/2409220 |
@goplayoutside3 Thanks! I've also been having this same problem on my account recently. After reading back through the conversation here, I think it's down to the Talk API not having a concept of 'read messages'. |
Expected behavior
Mark All Read should mark my unread notifications as read.
Current behavior
Please include any error messages from the browser console and/or screenshots
The button sometimes fails to work. When it does fail, reloading the page does not fix it.
The error is
Uncaught TypeError: Cannot read property 'update' of undefined
and it seems to be happening inside aforEach
loop, according to the stack trace.Steps to replicate
It's an intermittent bug, that only seems to be triggered by certain notifications. When it does happen, it can be triggered by pressing Mark All Read on a section in the notifications page.
Additional information
This seems to be the loop that's failing.
Panoptes-Front-End/app/pages/notifications/notification-section.jsx
Lines 131 to 133 in cedef38
The text was updated successfully, but these errors were encountered: