This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
Sam 335be272ff FEATURE: implement capping of new/unread
We cap new and unread at 2/5th of SiteSetting.max_tracked_new_unread

This dynamic capping is applied under 2 conditions:

1. New capping is applied once every 15 minutes in the periodical job, this effectively ensures that usually even super active sites are capped at 200 new items

2. Unread capping is applied if a user hits max_tracked_new_unread,
  meaning if new + unread == 500, we defer a job that runs within 15 minutes that will cap user at 200 unread

This logic ensures that at worst case a user gets "bad" numbers for 15 minutes and then the system goes ahead and fixes itself up
2015-09-07 12:03:17 +10:00
..
adapters Refactor notifications localStorage cache into adapter pattern. 2015-08-31 14:12:27 -04:00
components FEATURE: Category reordering dialog 2015-09-06 16:53:52 -07:00
controllers FEATURE: implement capping of new/unread 2015-09-07 12:03:17 +10:00
dialects FEATURE: relax username rules to allow - and . and leading _ 2015-09-02 12:13:44 +10:00
ember Support resolving models 2015-06-26 12:27:13 -04:00
helpers Support for rewiring plugin outlets so we can move Akismet up 2015-09-04 16:09:02 -04:00
initializers FEATURE: live refresh notifications as they happen 2015-09-04 13:20:33 +10:00
lib FEATURE: Category reordering dialog 2015-09-06 16:53:52 -07:00
mixins Move TopicTrackingState to injected object 2015-09-04 13:00:24 -04:00
models FEATURE: implement capping of new/unread 2015-09-07 12:03:17 +10:00
pre-initializers Move TopicTrackingState to injected object 2015-09-04 13:00:24 -04:00
routes FEATURE: Category reordering dialog 2015-09-06 16:53:52 -07:00
services Migrate search drop down to menu-panel component. 2015-08-28 15:44:24 -04:00
templates FEATURE: implement capping of new/unread 2015-09-07 12:03:17 +10:00
views FEATURE: Category reordering dialog 2015-09-06 16:53:52 -07:00
router.js.es6 Fixes routing in tests 2015-05-11 11:18:38 -04:00