1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 10:22:42 +01:00
phorge-phorge/src/applications/notification/controller
Bob Trahan e50b269416 Notifications - fix race condition around "Mark All Read".
Summary:
pre-patch "Mark All Read" marks *all* unread notifications as read. This is a race condition in that the user is looking at some set of notiifcations and that set may update such that the newest notifications aren't shown. An example might be if sitting on the notifications page or having the menu open while a new notification comes in... Note re-opening the menu would show the latest notifications.

This patch makes it so "Mark All Read" links only marks the notifications currently loaded (and older.) Fixes T5764.

Additionally, if there is nothing to "mark read" the button / link "Mark All Read" will have a disabled style and yield a dialog saying "nothing to mark as read".

Test Plan: carefully tracked ?chronoKey populating correctly in various links. Verified query constructed properly too.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T5764

Differential Revision: https://secure.phabricator.com/D10113
2014-08-01 16:39:05 -07:00
..
PhabricatorNotificationClearController.php Notifications - fix race condition around "Mark All Read". 2014-08-01 16:39:05 -07:00
PhabricatorNotificationController.php Mobile Notifications 2013-12-03 11:58:10 -08:00
PhabricatorNotificationIndividualController.php Add a "Send Test Notification" button to make testing the server easier 2014-02-17 16:00:33 -08:00
PhabricatorNotificationListController.php Notifications - fix race condition around "Mark All Read". 2014-08-01 16:39:05 -07:00
PhabricatorNotificationPanelController.php Notifications - fix race condition around "Mark All Read". 2014-08-01 16:39:05 -07:00
PhabricatorNotificationStatusController.php Remove user-independent date and time functions from Phabricator 2014-07-13 12:03:17 +10:00
PhabricatorNotificationTestController.php Add a "Send Test Notification" button to make testing the server easier 2014-02-17 16:00:33 -08:00