Page MenuHomePhabricator

If you only have read notifications in the visible group flyout says "0 of 99+"
Closed, ResolvedPublic

Description

Author: lwelling

Description:
flyout with broken numbering

See screenshot

To reproduce:
Trigger 100 notifications
Look at flyout. Mine said "Showing 7 of 99+"
Close flyout.
Look at flyout. Mine said "Showing 0 of 99+"

That's silly. It's still showing 7.


Version: master
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=44296

Attached:

Screenshot_from_2013-04-29_19:29:08.png (946×964 px, 179 KB)

Details

Reference
bz47856

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:22 AM
bzimport added a project: Notifications.
bzimport set Reference to bz47856.
bzimport added a subscriber: Unknown Object (MLST).

The text actually says "Showing 0 of 99+ unread" which is correct, its not showing any unread notifications. Which direction is most appropriate to resolve this bug? Possible solutions:

a) Only display unread notifications in the flyout. This would require adjustments in a few different levels (api, backend, possibly a new or adjusted sql index) but is not excessively complicated. Would need to be careful to ensure the query can still be fully resolved through a db index without scanning rows.

b) Adjust text copy. Remove 'unread' from the text and show a count of all notifications. This is probably not very useful though as unread notifications are the one that matter.

c) Adjust text copy. The current text is technically correct, its showing 0 unread notifications. Perhaps some more direct text that says 'Showing 0 unread and 7 read notifications' would clear up the issue.

matthiasmullie claimed this task.

By now, Echo explicitly first finds unread notifications and fills up the rest with read notifications.