discourse/app/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
..
concerns select less data 2015-08-05 16:09:21 +10:00
about.rb PERF: Cache About#stats. 2015-07-20 22:45:05 +08:00
admin_dashboard_data.rb add back the warning based on Sidekiq queue size, but only when the queue size is 100k or more 2015-08-06 16:46:49 -04:00
api_key.rb create a new table to maintain csv export log 2014-12-24 16:25:36 +05:30
application_request.rb cut out an exception 2015-08-19 16:57:26 +10:00
auto_track_duration_site_setting.rb FEATURE: global admin override of most of the user preferences 2015-08-21 20:39:21 +02:00
backup.rb FEATURE: move migrate_to_new_scheme into a background job 2015-06-12 12:07:57 +02:00
badge.rb FEATURE: bronze/silver/gold badges for popular links 2015-08-27 18:52:31 +02:00
badge_grouping.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
badge_type.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
category.rb FIX: hide category column in topic list only when the current category has no children 2015-09-02 23:46:04 +02:00
category_custom_field.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
category_featured_topic.rb PERF: optimise pinned handling on home page 2015-02-23 16:51:21 +11:00
category_featured_user.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
category_group.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
category_list.rb FEATURE: suppress categories from the homepage 2015-09-02 20:25:18 +02:00
category_search_data.rb FEATURE: Badge progress 2014-07-03 17:29:44 +10:00
category_user.rb FIX: ensure CategoryUser consistency 2015-09-02 22:02:31 +02:00
color_scheme.rb MessageBus handles readonly redis now, no need to wrap it 2015-05-04 12:21:00 +10:00
color_scheme_color.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
digest_email_site_setting.rb FEATURE: email digest frequency of every 3 days 2015-03-10 11:21:15 -04:00
digest_unsubscribe_key.rb Migrate unsubscribe keys to the database. 2015-02-13 14:24:15 -05:00
directory_item.rb FIX: Support quarterly on user directory 2015-08-17 13:58:40 -04:00
discourse_single_sign_on.rb FIX: only override sso name / username if it is supplied 2015-08-24 10:24:33 +10:00
discourse_version_check.rb FEATURE: Use git describe for dashboard version 2015-02-23 16:07:08 -08:00
draft.rb FEATURE: track statistics around post creation 2015-08-03 14:29:15 +10:00
draft_sequence.rb FIX: when advancing draft sequence remove old drafts 2015-06-02 20:28:33 +10:00
email_log.rb Add API support for querying admin reports by date range 2014-11-05 13:11:37 -05:00
email_token.rb FIX: mark user as approved if an invite is already present 2015-06-26 01:57:29 +05:30
embeddable_host.rb FEATURE: Can edit category/host relationships for embedding 2015-08-20 15:56:04 -04:00
embedding.rb Can edit settings on the embedding page 2015-08-20 15:56:05 -04:00
emoji.rb FIX: emoji upload on subfolder install 2015-08-21 16:42:37 -04:00
emoji_set_site_setting.rb FIX: emoji rebuild when changing emoji set for the 1st time 2015-01-07 17:54:09 +01:00
facebook_user_info.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
github_user_info.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
global_setting.rb FIX: allow global settings to include keys that have numbers in them 2015-08-14 17:01:21 +10:00
google_user_info.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
group.rb FEATURE: group can grant a trust level when a user is added 2015-09-01 16:52:12 -04:00
group_custom_field.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
group_manager.rb table & model changes for group managers with permission to edit membership 2015-01-15 11:44:42 -08:00
group_user.rb FEATURE: group can grant a trust level when a user is added 2015-09-01 16:52:12 -04:00
incoming_domain.rb FIX: catch specific exception 2014-08-06 10:00:55 +10:00
incoming_link.rb handle invalid param gracefully 2015-05-07 11:06:42 +10:00
incoming_links_report.rb Replace Hash#keys.each with Hash#each_key for some perf boost 2015-04-18 21:53:53 +10:00
incoming_referer.rb FIX: catch specific exception 2014-08-06 10:00:55 +10:00
invite.rb FEATURE: copy invite link for topic invites 2015-08-31 21:15:15 +05:30
invite_redeemer.rb FIX: do not delete already redeemed invite 2015-03-25 23:30:09 +05:30
invited_group.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
locale_site_setting.rb PERF: only load locale files we are using 2015-02-12 12:08:14 +11:00
muted_user.rb FEATURE: civilized mute 2015-03-24 11:55:22 +11:00
new_topic_duration_site_setting.rb FEATURE: global admin override of most of the user preferences 2015-08-21 20:39:21 +02:00
notification.rb correct handling of data hash parsing 2015-09-04 13:34:21 +10:00
oauth2_user_info.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
optimized_image.rb FEATURE: automatically downsize large images 2015-08-12 18:33:13 +02:00
permalink.rb UX: include more details on Permalinks page 2015-07-17 21:39:23 +05:30
plugin_store.rb removed useless assignments at some places 2014-08-19 18:10:23 +05:30
plugin_store_row.rb update annotations 2014-04-08 17:35:44 +02:00
post.rb FEATURE: Add a trigger for plugins to include their own jobs. 2015-09-04 22:59:39 +08:00
post_action.rb FEATURE: make pin expiration mandatory 2015-07-29 16:34:21 +02:00
post_action_type.rb FEATURE: bookmark topic button 2015-01-12 12:10:15 +01:00
post_alert_observer.rb FIX: correctly mute likers 2015-03-26 12:08:04 +11:00
post_analyzer.rb FIX: don't count mentions in oneboxes 2015-06-24 11:44:58 +02:00
post_custom_field.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
post_detail.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
post_mover.rb Use small actions for moving posts 2015-07-31 16:30:18 -04:00
post_reply.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
post_revision.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00
post_search_data.rb FEATURE: Badge progress 2014-07-03 17:29:44 +10:00
post_stat.rb FEATURE: track statistics around post creation 2015-08-03 14:29:15 +10:00
post_timing.rb FEATURE: track user visits on mobile and display on admin dashboard in a new Mobile section 2015-07-07 14:06:42 -04:00
post_upload.rb update annotations 2014-04-08 17:35:44 +02:00
queued_post.rb Include the error messages so we can debug this easier 2015-08-21 12:43:10 -04:00
quoted_post.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
report.rb FEATURE: track user visits on mobile and display on admin dashboard in a new Mobile section 2015-07-07 14:06:42 -04:00
rtl.rb add persian language to rtl support 2015-04-07 00:36:46 +04:30
s3_region_site_setting.rb FEATURE: generate (avatar) thumbnails in a background task 2015-05-25 17:59:00 +02:00
screened_email.rb FEATURE: automatic daily roll-up for screened IP addresses 2015-03-09 18:55:17 +01:00
screened_ip_address.rb FEATURE: automatic daily roll-up for screened IP addresses 2015-03-09 18:55:17 +01:00
screened_url.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
search_observer.rb - FEATURE: revamped poll plugin 2015-04-23 19:33:29 +02:00
single_sign_on_record.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
site.rb FIX: don't show new topic notifications in homepag for suppressed categories 2015-09-03 19:18:46 +02:00
site_customization.rb FIX: include theme vars in site customizations 2015-08-17 10:59:46 +10:00
site_setting.rb FEATURE: global admin override of most of the user preferences 2015-08-21 20:39:21 +02:00
site_text.rb move SiteText.{head,top,bottom} to SiteCustomization 2015-01-14 12:15:53 +01:00
site_text_type.rb Renaming site contents to site text 2014-09-24 16:08:14 -04:00
slug_setting.rb FEATURE: add slug geneartion options 2015-05-05 18:08:30 +08:00
stylesheet_cache.rb fix stylesheet cache to recover if file is on disk 2015-05-22 11:22:12 +10:00
top_lists.rb BUGFIX: show the draft on top page 2014-02-06 11:39:43 +01:00
top_menu_item.rb BUGFIX: proper handling of top_menu_items 2014-02-03 16:08:00 +01:00
top_topic.rb FEATURE: add quarterly period to Top page 2015-07-28 12:31:42 -04:00
topic.rb FEATURE: Can edit category/host relationships for embedding 2015-08-20 15:56:04 -04:00
topic_allowed_group.rb update annotations 2014-04-08 17:35:44 +02:00
topic_allowed_user.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
topic_custom_field.rb annotations 2015-02-04 16:34:25 +11:00
topic_embed.rb FEATURE: Can edit category/host relationships for embedding 2015-08-20 15:56:04 -04:00
topic_featured_users.rb PERF: improve performance for featured user calculation 2015-04-22 23:54:54 +10:00
topic_invite.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
topic_link.rb FIX: post gutter links are broken when using a subfolder 2015-05-14 14:26:18 -04:00
topic_link_click.rb FIX: handle link tracking correctly for cdn based urls 2015-08-05 12:15:08 +10:00
topic_list.rb FEATURE: allow efficient preloading of custom fields in topic list 2015-08-05 16:09:21 +10:00
topic_notifier.rb Perform the where(...).first to find_by(...) refactoring. 2014-05-06 14:41:59 +01:00
topic_participants_summary.rb FEATURE: add the first 3 participants in a private message 2014-05-12 09:32:49 +02:00
topic_poster.rb topic_poster.rb: Fix formatting of the attributes return value 2013-03-23 19:09:01 +05:30
topic_posters_summary.rb FIX: missing avatar when sizing down window 2014-09-19 12:35:35 +10:00
topic_status_update.rb FEATURE: make pin expiration mandatory 2015-07-29 16:34:21 +02:00
topic_tracking_state.rb FEATURE: implement capping of new/unread 2015-09-07 12:03:17 +10:00
topic_user.rb FEATURE: implement capping of new/unread 2015-09-07 12:03:17 +10:00
topic_view_item.rb PERF: hit all index conditions to speed up anon ip tracking 2015-05-14 17:21:02 +10:00
trust_level3_requirements.rb PERF: slow user pages in admin. add an index for trust level 3 calculations, and memoize query results 2015-01-19 15:30:16 -05:00
trust_level_setting.rb Fix access specifiers with private_class_methods instead of removing directly 2014-10-04 09:20:41 +05:30
twitter_user_info.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
upload.rb FIX: don't butcher GIFs 2015-07-22 17:10:42 +02:00
user.rb FEATURE: implement capping of new/unread 2015-09-07 12:03:17 +10:00
user_action.rb FIX: Small actions should show descriptions on the user stream 2015-07-31 14:25:49 -04:00
user_action_observer.rb FIX: Small actions should show descriptions on the user stream 2015-07-31 14:25:49 -04:00
user_avatar.rb FIX: Use File.size instead of IO.size 2015-08-17 18:57:28 +02:00
user_badge.rb FIX: the badge triggers broke 2015-02-26 00:50:58 +00:00
user_custom_field.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
user_email_observer.rb FIX: don't send notification emails to deactivated user 2015-08-31 12:35:12 +05:30
user_export.rb annotations 2015-02-04 16:34:25 +11:00
user_field.rb FEATURE: New "Dropdown" user field type 2015-07-28 12:30:21 -04:00
user_field_option.rb FEATURE: New "Dropdown" user field type 2015-07-28 12:30:21 -04:00
user_history.rb UX: Show category badge on enqueued posts 2015-04-15 15:29:37 -04:00
user_open_id.rb FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
user_profile.rb FIX: remove links and html 'hellips' from topic/post summaries 2014-12-08 00:23:53 +01:00
user_search.rb PERF: refactor user search so works more efficiently 2015-05-14 14:38:47 +10:00
user_search_data.rb FEATURE: Badge progress 2014-07-03 17:29:44 +10:00
user_stat.rb PERF: stop mucking with user stats every 15 minutes 2014-08-07 14:20:42 +10:00
user_visit.rb FEATURE: track user visits on mobile and display on admin dashboard in a new Mobile section 2015-07-07 14:06:42 -04:00
username_validator.rb FEATURE: relax username rules to allow - and . and leading _ 2015-09-02 12:13:44 +10:00
warning.rb add allowed_ips to api_keys 2014-11-20 14:53:15 +11:00