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/models
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
..
action-summary.js.es6 Refactor likes/flags to simplify things a lot 2015-07-14 15:50:27 -04:00
admin-post.js.es6 ES6ify some of the remaining files 2015-08-10 10:21:05 -04:00
archetype.js.es6 ES6ify some of the remaining files 2015-08-10 10:21:05 -04:00
badge-grouping.js.es6 Convert Badges / User Badges to ES6. 2015-08-19 12:09:10 -04:00
badge.js.es6 FIX: Badge SQL controls would never show up, needed refresh 2015-08-25 13:30:26 -07:00
category-list.js.es6 Move TopicTrackingState to injected object 2015-09-04 13:00:24 -04:00
category.js.es6 FIX: Category permissions were broken 2015-09-05 11:40:12 -04:00
composer_message.js ES6: Migrated and deprecated a bunch of views 2014-06-10 11:54:38 -04:00
composer.js.es6 Move TopicTrackingState to injected object 2015-09-04 13:00:24 -04:00
draft.js.es6 Add ES6 support to more files 2015-08-13 10:49:08 -04:00
group.js.es6 FEATURE: group can grant a trust level when a user is added 2015-09-01 16:52:12 -04:00
input_validation.js Some javascript refactoring: Move markdown functions into their own classs, remove extraneous window. calls. 2013-03-05 14:53:55 -05:00
invite.js.es6 FEATURE: show pending/redeemed invite count in tabs 2015-08-25 01:12:46 +05:30
live-post-counts.es6 FEATURE: the notice asking admins to get discussion started will update with live counts of topics and posts 2015-08-27 17:28:40 -04:00
login_method.js remove Google OpenID auth, since Google doesn't support it anymore 2015-05-25 15:13:44 -04:00
model.js.es6 Remove ObjectController, Discouse Controllers + Presence 2015-08-13 10:49:08 -04:00
nav-item.js.es6 Move TopicTrackingState to injected object 2015-09-04 13:00:24 -04:00
permission_type.js work in progress, add fidelity to category group permissions (full, create posts, readonly) 2013-07-16 15:46:11 +10:00
post-action-type.js.es6 UX: Move likes into drop down instead of its own status line 2015-07-03 17:15:20 -04:00
post-stream.js.es6 FIX: highest_post_number was not being updated from gaps 2015-09-03 13:37:55 -04:00
post.js.es6 FIX: Don't use observers to update data 2015-09-03 11:10:04 -04:00
rest.js.es6 Move TopicTrackingState to injected object 2015-09-04 13:00:24 -04:00
result-set.js.es6 Upgrade Notifications to fix deprecations and use store 2015-05-11 11:20:45 -04:00
session.js.es6 ES6ify some of the remaining files 2015-08-10 10:21:05 -04:00
site.js.es6 Move TopicTrackingState to injected object 2015-09-04 13:00:24 -04:00
static_page.js ES6: Remove dynamically generated static routes. They were causing lots 2014-07-29 14:24:16 -04:00
store.js.es6 Move TopicTrackingState to injected object 2015-09-04 13:00:24 -04:00
topic-details.js.es6 Remove ObjectController, Discouse Controllers + Presence 2015-08-13 10:49:08 -04:00
topic-list.js.es6 Move TopicTrackingState to injected object 2015-09-04 13:00:24 -04:00
topic-tracking-state.js.es6 FEATURE: implement capping of new/unread 2015-09-07 12:03:17 +10:00
topic.js.es6 FEATURE: copy invite link for topic invites 2015-08-31 21:15:15 +05:30
trust-level.js.es6 ES6ify some of the remaining files 2015-08-10 10:21:05 -04:00
user_action_group.js Clean up JS, add YUIDoc support, automatically create IIFE via asset pipeline 2013-02-25 17:16:57 -05:00
user-action-stat.js.es6 ES6ify some of the remaining files 2015-08-10 10:21:05 -04:00
user-action.js.es6 ES6ify some of the remaining files 2015-08-10 10:21:05 -04:00
user-badge.js.es6 Convert Badges / User Badges to ES6. 2015-08-19 12:09:10 -04:00
user-posts-stream.js.es6 ES6ify some of the remaining files 2015-08-10 10:21:05 -04:00
user-stream.js.es6 FIX: eslint deprecations 2015-08-13 15:14:08 -04:00
user.js.es6 Middle clicking the avatar should go to profile 2015-09-03 11:53:42 -04:00