discourse/spec/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
..
about_spec.rb PERF: Cache About#stats. 2015-07-20 22:45:05 +08:00
admin_dashboard_data_spec.rb PERF: Cache About#stats. 2015-07-20 22:45:05 +08:00
api_key_spec.rb models with rspec3 syntax 2015-01-05 13:04:23 -03:00
application_request_spec.rb Convert specs to RSpec 2.99.2 syntax with Transpec 2015-04-25 11:18:35 -04:00
backup_spec.rb Remove site setting stubbing (Round 1) 2015-06-03 15:44:00 +05:30
badge_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
badge_type.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
category_featured_topic_spec.rb FIX: unpinned topics shouldn't remain pinned on categories page 2015-06-10 14:36:55 -04:00
category_featured_user_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
category_spec.rb PERF: optimise front page category security lookup query 2015-05-14 12:19:22 +10:00
category_user_spec.rb FIX: ensure we remove 'category_users' records when a user is deleted 2015-09-02 20:43:15 +02:00
color_scheme_color_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
color_scheme_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
digest_email_site_setting_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
digest_unsubscribe_key_spec.rb Migrate unsubscribe keys to the database. 2015-02-13 14:24:15 -05:00
directory_item_spec.rb FIX: youtube preview video title link doesn't work 2015-04-01 18:23:27 +02:00
discourse_single_sign_on_spec.rb Correctly parse `require_activation` field of SSO 2015-05-21 16:50:54 -05:00
draft_sequence_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
draft_spec.rb FEATURE: track statistics around post creation 2015-08-03 14:29:15 +10:00
email_log_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
email_token_spec.rb FIX: mark user as approved if an invite is already present 2015-06-26 01:57:29 +05:30
embeddable_host_spec.rb FEATURE: Can edit category/host relationships for embedding 2015-08-20 15:56:04 -04:00
global_setting_spec.rb FIX: allow global settings to include keys that have numbers in them 2015-08-14 17:01:21 +10:00
group_spec.rb FEATURE: group can grant a trust level when a user is added 2015-09-01 16:52:12 -04:00
incoming_link_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
incoming_links_report_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
invite_redeemer_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
invite_spec.rb FEATURE: invite page tabs 2015-07-13 09:42:51 +05:30
locale_site_setting_spec.rb
notification_spec.rb fix regression in visible notification detection 2015-06-23 06:14:22 +10:00
optimized_image_spec.rb FIX: mixed local s3 store missing avatars 2015-06-01 11:17:42 +10:00
permalink_spec.rb FEATURE: permalink normalization 2015-07-15 15:34:25 +10:00
plugin_store_spec.rb
post_action_spec.rb PERF: Active Record #pluck is twice faster 2015-05-13 16:46:17 +10:00
post_alert_observer_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
post_analyzer_spec.rb FIX: don't count mentions in oneboxes 2015-06-24 11:44:58 +02:00
post_detail_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
post_mover_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
post_reply_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
post_spec.rb models with rspec3 syntax 2015-01-05 13:04:23 -03:00
post_timing_spec.rb FIX: don't allow storage of post timings batch larger than 60 secs 2015-06-19 10:35:55 +10:00
post_upload_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
queued_post_spec.rb FIX: When approving/rejecting a post it should delete the user action 2015-04-24 15:25:47 -04:00
quoted_post_spec.rb models with rspec3 syntax 2015-01-05 13:04:23 -03:00
report_spec.rb remove some intermittently failing report specs. they aren't worth the cost of maintaining them. 2015-07-06 15:01:43 -04:00
rtl_spec.rb models with rspec3 syntax 2015-01-05 13:04:23 -03:00
s3_region_site_setting_spec.rb FEATURE: generate (avatar) thumbnails in a background task 2015-05-25 17:59:00 +02:00
screened_email_spec.rb models with rspec3 syntax 2015-01-05 13:04:23 -03:00
screened_ip_address_spec.rb UX: improve message when admin login is blocked because of admin ip address whitelisting 2015-03-02 12:13:22 -05:00
screened_url_spec.rb models with rspec3 syntax 2015-01-05 13:04:23 -03:00
search_observer_spec.rb models with rspec3 syntax 2015-01-05 13:04:23 -03:00
site_customization_spec.rb models with rspec3 syntax 2015-01-05 13:04:23 -03:00
site_setting_spec.rb FEATURE: Can edit category/host relationships for embedding 2015-08-20 15:56:04 -04:00
site_spec.rb models with rspec3 syntax 2015-01-05 13:04:23 -03:00
site_text_spec.rb models with rspec3 syntax 2015-01-05 13:04:23 -03:00
stylesheet_cache_spec.rb correct emergency regeneration in the controller 2015-05-06 07:33:32 +10:00
top_menu_item_spec.rb fix most deprecations in the specs (still some left) 2014-09-25 17:44:48 +02:00
top_topic_spec.rb Convert specs to RSpec 2.99.2 syntax with Transpec 2015-04-25 11:18:35 -04:00
topic_allowed_user_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
topic_embed_spec.rb FEATURE: Can edit category/host relationships for embedding 2015-08-20 15:56:04 -04:00
topic_featured_users_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
topic_invite_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
topic_link_click_spec.rb FIX: handle link tracking correctly for cdn based urls 2015-08-05 12:15:08 +10:00
topic_link_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
topic_participants_summary_spec.rb FIX: PM should never be allowed to have a category 2014-09-11 17:39:34 +10:00
topic_posters_summary_spec.rb UX: Don't highlight the latest poster in the topic list if there is only 2014-08-20 12:09:39 -04:00
topic_spec.rb FEATURE: Can edit category/host relationships for embedding 2015-08-20 15:56:04 -04:00
topic_status_update_spec.rb UX: Use smaller messages for moderator actions. 2015-07-27 10:09:21 -04:00
topic_tracking_state_spec.rb FEATURE: implement capping of new/unread 2015-09-07 12:03:17 +10:00
topic_user_spec.rb FEATURE: global admin override of most of the user preferences 2015-08-21 20:39:21 +02:00
topic_view_item_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
trust_level3_requirements_spec.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
twitter_user_info_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
upload_spec.rb FIX: crop & optimize user background profile/card images 2015-07-15 17:15:43 +02:00
user_action_spec.rb FEATURE: remove star concept from Discourse 2015-01-07 13:43:27 +11:00
user_avatar_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
user_badge.rb Convert specs to RSpec 2.99.2 syntax with Transpec 2015-04-25 11:18:35 -04:00
user_email_observer_spec.rb FIX: don't send notification emails to deactivated user 2015-08-31 12:35:12 +05:30
user_history_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
user_open_id_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
user_profile_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
user_search_spec.rb PERF: refactor user search so works more efficiently 2015-05-14 14:38:47 +10:00
user_spec.rb FEATURE: relax username rules to allow - and . and leading _ 2015-09-02 12:13:44 +10:00
user_stat_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
user_visit_spec.rb Update rspec syntax to v3 2015-01-05 11:59:30 -03:00
username_validator_spec.rb