mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
4135752490
Summary: Fixes T5344. Essentially, we only make the AJAX request to `/notification/individual/` if we are the leader tab (i.e. only one tab will make this request). Once a response has been received from the server (containing the contents of the notification), we broadcast the message contents back to all other tabs for rendering. Test Plan: Opened two tabs on `/notification/status/` and clicked "Send Test Notification". **Before** ```lang=bash, name=tail -f /var/log/phabricator-access.log | grep /notification/individual/ [Tue, 13 Jan 2015 20:10:37 +1100] 17033 phabricator 10.0.0.1 josh PhabricatorNotificationIndividualController - /notification/individual/-200 236036 [Tue, 13 Jan 2015 20:10:37 +1100] 17657 phabricator 10.0.0.1 josh PhabricatorNotificationIndividualController - /notification/individual/-200 24130 ``` **After** ```lang=bash, name=tail -f /var/log/phabricator-access.log | grep /notification/individual/ [Tue, 13 Jan 2015 20:11:15 +1100] 17657 phabricator 10.0.0.1 josh PhabricatorNotificationIndividualController - /notification/individual/-200 180217 ``` Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T5344 Differential Revision: https://secure.phabricator.com/D11360 |
||
---|---|---|
.. | ||
rsrc | ||
favicon.ico | ||
index.php |