topcoder-platform / forums

0 stars 0 forks source link

[$50] Strange message count #661

Closed jmgasper closed 2 years ago

jmgasper commented 2 years ago

@atelomycterus - In my testing, I'm seeing a count of 1 for TCConnCopilot and this challenge:

https://platform.topcoder-dev.com/self-service/work-items/85dfab33-5e0d-4abb-b479-e1b93b032b78?tab=messaging

But, I see nothing new in the list of threads. No "New" indicator on anything, so I'm not sure which forum thread is unread. The only thing I can think of is the response to Test question by the same TCConnCopilot user, but a response from the current user shouldn't cause the unread count to change.

Screen Shot 2022-01-20 at 9 12 52 am

.

jmgasper commented 2 years ago

Challenge https://www.topcoder.com/challenges/e8ace584-4858-4fc6-97c8-49c03e79e24f has been created for this ticket.

This is an automated message for ghostar via Topcoder X

jmgasper commented 2 years ago

Challenge https://www.topcoder.com/challenges/e8ace584-4858-4fc6-97c8-49c03e79e24f has been assigned to obog.

This is an automated message for ghostar via Topcoder X

atelomycterus commented 2 years ago

@jmgasper Vanilla doesn't notify the current user in this case. So the count of 1 was not related to this comment. After logging as TCConnCopilot the message count was 0, I couldn't check it because all notifications have the sent status in GDN_Activity table.

GDN_Activity tables stores all notifications. Vanilla has 2 type notifications (email and popup). Unread Popup Notifications have the pending status. The status of popup Notifications are changed to sent when

More details how it works. The are two cases

Example: I used two browsers. In the first one I logged in as TCConnCopilot in MFE, the second one I logged in as 'obogtop' in Vanilla. I was navigating in MFE (TCConnCopilot). At the same time 'obogtop' just posted 2 comments in this group. After displaying a popup for TCConnCopilot, all unread notifications were updated with sent status but I didn't read them. If I refreshed the MFE page the count of unread messages = 0, not 2. (MFE calls "https://vanilla.topcoder-dev.com/api/v2/groups/3124/member/35 " return 0). I (as TCConnCopilot) closed my browser.

'obogtop' just posted 1 comment + 1 discussion. The count of unread notifications = 2 for TCConnCopilot. I opened a browser and went to MFE as TCConnCopilot, 'new ' + '3 new' were displayed.

image

So it's confusing. I think it'd better to add a notification popup like in Vanilla or navigate to a notification page.

image or image

Let me know if you have any questions.

Thanks!

jmgasper commented 2 years ago

@atelomycterus - Ok, thanks for the explanation. I'll discuss with TC to see if they want to tweak this further.

jmgasper commented 2 years ago

Payment task has been updated: https://www.topcoder.com/challenges/e8ace584-4858-4fc6-97c8-49c03e79e24f Payments Complete Winner: obog Copilot: ghostar Challenge e8ace584-4858-4fc6-97c8-49c03e79e24f has been paid and closed.

This is an automated message for ghostar via Topcoder X