Page MenuHomePhabricator

Deduplicate application-level notifications from Aphlict
ClosedPublic

Authored by epriestley on Apr 17 2017, 9:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 4:18 PM
Unknown Object (File)
Mon, May 6, 10:00 PM
Unknown Object (File)
Mon, May 6, 2:44 AM
Unknown Object (File)
Mon, May 6, 2:42 AM
Unknown Object (File)
Sat, May 4, 7:38 PM
Unknown Object (File)
Wed, May 1, 8:12 PM
Unknown Object (File)
Sun, Apr 28, 9:33 AM
Unknown Object (File)
Fri, Apr 19, 6:24 PM
Subscribers
None

Details

Summary

Fixes T12564. We already had some code which seems to deal with this properly, it just wasn't getting used.

Assign each application-level notification a unique ID, then ignore messages with duplicate IDs.

Test Plan
  • In browser A, loaded /T123.
  • In browser B, loaded /T123.
  • Made a comment as B.
  • Saw notification as A.
  • Mashed "Replay" a bunch.
  • Before patch: piles of duplicate notifications.
  • After patch: no duplicates.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Apr 17 2017, 9:54 PM
This revision was automatically updated to reflect the committed changes.