www.fgks.org   »   [go: up one dir, main page]

Page MenuHomePhabricator

Expandable cross-wiki bundle notification count does not get updated after some messages were marked as read
Closed, DeclinedPublic

Description

Found in production.
The screen recording shows how to make two counters - the badge count and the bundle counter - different. Below are detailed instrictions.

  1. Have, for example, three foreign wiki notifications. Click on the notification badge - the flyout bundle notification will show the correct number - 3
  2. Expand the bundle - the three notifications will be displayed. 'Mark as read' one of them - click to close the bundle. The badge counter gets updated to 2 (correct). The bundle count still showing - 3.

3. Click to expand the bundle - all three notifications are still displayed. -- Not happening anymore.

RESOLVED in separate tickets: Not quite severe as T135246: Wrong notification counts being shown due to cache pollution coming from non-SUL wikis the issue might add to some confusion though making the impression that 'Mark as read' does not work.

If users mark some messages in cross-wiki bundle as read and then collapse and expand the bundle (without of closing the flyout or navigating/refreshing), many incorrect states of count and displayed messages are presented to a user.

Screen Shot 2016-05-13 at 4.33.04 PM.png (271×599 px, 58 KB)

Screen Shot 2016-05-13 at 4.35.26 PM.png (256×544 px, 44 KB)

Screen Shot 2016-05-13 at 4.35.38 PM.png (413×527 px, 56 KB)

Screen Shot 2016-05-13 at 4.44.09 PM.png (411×556 px, 60 KB)

Event Timeline

I think several issues are being conflated here:

  • The "View 3 notifications" label doesn't update after marking things as read. That's something that we didn't have task for before, so that's what I think this task should be about.
  • Marking as read doesn't always work. I believe this is why one of the notifications came back. This is T121930.
  • Counts can get out of date in all sorts of ways. This is T135246.
Catrope renamed this task from [production] Expandable cross-wiki bundle notification count does not get updated after some messages were marked as read to Expandable cross-wiki bundle notification count does not get updated after some messages were marked as read.May 16 2016, 9:43 PM

With both - T135246 and T121930 being resolved by now, I re-checked the following and the issue still exists.

The "View 3 notifications" label doesn't update after marking things as read. That's something that we didn't have task for before, so that's what I think this task should be about.

I've updated the task description.

SBisson changed the subtype of this task from "Task" to "Bug Report".Oct 16 2018, 1:09 PM
SBisson changed the subtype of this task from "Bug Report" to "Task".Oct 16 2018, 6:41 PM
Catrope closed this task as Declined.EditedNov 17 2018, 12:33 AM

This is too hard. I spent 2 hours trying to get the "View 3 notifications" label to update itself with the correct cross-wiki count, tried 2 different approaches, and they both don't work. I'm sure this can be done if we put more work into it, but I've already spent too much time on a minor cosmetic change. It's not worth it.

Also even if we did fix the number, we still wouldn't fix the list of wikis, or the correct plural conjugation in the message with the number of wikis.