1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-11 17:32:41 +01:00
phorge-phorge/src/applications/notification
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
..
application Add some missing application names 2014-07-23 08:15:44 -07:00
builder Minor, improve notification resiliance 2014-04-21 16:28:59 -07:00
client Make HTTP errors returned from the Aphlict server more specific 2014-07-18 09:01:46 +10:00
controller Notifications - fix race condition around "Mark All Read". 2014-08-01 16:39:05 -07:00
feed Add a "Send Test Notification" button to make testing the server easier 2014-02-17 16:00:33 -08:00
query Rename PhabricatorApplication subclasses 2014-07-23 10:03:09 +10:00
setup Try nodejs before node when starting notification server 2014-06-07 13:56:23 -07:00
storage Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
view React to Aphlict disconnects in the UI 2014-06-24 09:41:40 -07:00