discourse/spec/components
Sam Saffron 9ebabc1de8 FEATURE: unconditionally update Topic updated_at when posts change in topic
Previously we would bypass touching `Topic.updated_at` for whispers and post
recovery / deletions.

This meant that certain types of caching can not be done where we rely on
this information for cache accuracy.

For example if we know we have zero unread topics as of yesterday and whisper
is made I need to bump this date so the cache remains accurate

This is only half of a larger change but provides the groundwork.

Confirmed none of our serializers leak out Topic.updated_at so this is safe
spot for this info

At the moment edits still do not change this but it is not relevant for the
unread cache.

This commit also cleans up some specs to use the new `eq_time` matcher for
millisecond fidelity comparison of times

Previously `freeze_time` would fudge this which is not that clean.
2019-03-28 17:28:01 +11:00
..
active_record/connection_adapters DEV: Fix heisentest. 2019-02-19 08:21:51 +08:00
auth FEATURE: unconditionally update Topic updated_at when posts change in topic 2019-03-28 17:28:01 +11:00
common_passwords
concern FEATURE: unconditionally update Topic updated_at when posts change in topic 2019-03-28 17:28:01 +11:00
email FIX: Prevent critical emails bypassing disable, and improve email test logic 2019-03-22 17:28:43 +08:00
file_store FIX: Properly support defaults for upload site settings. 2019-03-13 16:36:57 +08:00
freedom_patches FIX: async reload of locales could result in missing translations 2018-10-01 17:14:36 +02:00
guardian SECURITY: Users can pick non-avatar uploads. 2018-12-18 13:38:25 +08:00
highlight_js
import
middleware FIX: error in response body to blocked crawlers, showing 500 Internal Server Error with status of 403 2018-09-14 15:40:20 -04:00
migration FEATURE: Use amazon s3 inventory to manage upload stats (#6867) 2019-02-01 10:10:48 +05:30
onebox/engine SECURITY: correct local onebox category checks 2018-02-14 10:40:46 +11:00
plugin FEATURE: Add localized timezone names (#7004) 2019-02-25 14:40:02 -05:00
rate_limiter Add specs for RateLimiter::LimitExceeded#description. 2018-06-19 07:48:03 +08:00
scheduler dev, give spec a bit more time waiting on timeout 2018-11-19 16:21:39 +11:00
site_settings FIX: Properly support defaults for upload site settings. 2019-03-13 16:36:57 +08:00
stylesheet FIX: Fix safe mode regression 2019-01-25 17:00:30 +00:00
svg_sprite FEATURE: support custom icons in themes (#7155) 2019-03-15 17:16:15 +11:00
theme_store FIX: Use field name to name files in theme export. (#7009) 2019-02-27 10:45:22 +01:00
validators FEATURE: Allow categories to be prioritized/deprioritized in search. (#7209) 2019-03-25 10:59:55 +08:00
wizard FIX: Use CDN for logos and icons. (#6698) 2018-12-19 10:20:48 +01:00
admin_confirmation_spec.rb
admin_user_index_query_spec.rb Improve specs to assert for the right record instead of just a count. 2018-05-17 08:47:24 +08:00
archetype_spec.rb
avatar_lookup_spec.rb UX: show full name on /latest page 2018-08-23 14:41:06 +05:30
cache_spec.rb dashboard next: caching, mobile support and new charts 2018-05-03 15:41:41 +02:00
category_badge_spec.rb SECURITY: category badges should HTML escape names 2018-06-28 18:15:07 +10:00
composer_messages_finder_spec.rb Remove unused variable. 2018-10-04 13:21:37 +08:00
content_buffer_spec.rb
cooked_post_processor_spec.rb DEV: Refactor icons used in lightbox HTML 2019-03-22 11:52:06 -04:00
crawler_detection_spec.rb FIX: cubot android devices were detected as crawlers 2018-06-21 10:56:46 +10:00
current_user_spec.rb
directory_helper_spec.rb
discourse_diff_spec.rb correct spec regression 2018-01-30 08:54:37 +11:00
discourse_event_spec.rb
discourse_hub_spec.rb fix failing spec when HUB_BASE_URL is present 2018-10-15 15:06:02 -04:00
discourse_i18n_spec.rb FIX: async reload of locales could result in missing translations 2018-10-01 17:14:36 +02:00
discourse_plugin_registry_spec.rb REFACTOR: Serve auth provider information in the site serializer. 2018-08-06 09:25:48 +01:00
discourse_plugin_spec.rb
discourse_redis_spec.rb FIX: Fallback Redis by checking status on master instead of slave. 2019-01-22 12:38:12 +08:00
discourse_spec.rb FIX: Clear anon cache when clearing recently readonly. 2019-01-22 09:53:04 +08:00
discourse_tagging_spec.rb FIX: Disable 'Create Topic' button if tag is staff-only. (#6984) 2019-03-12 19:23:36 +11:00
discourse_updates_spec.rb REFACTOR: Avoid duplicated logic on server and client. 2017-11-21 17:10:04 +08:00
distributed_memoizer_spec.rb
distributed_mutex_spec.rb DEV: Validity of distributed mutex configurable once per instance. 2019-02-20 09:29:45 +08:00
email_cook_spec.rb FEATURE: convert plain text emails to markdown 2017-12-06 01:47:51 +01:00
email_updater_spec.rb FEATURE: the hide_email_address_taken setting works with the change email address form in user preferences 2017-10-04 11:41:25 -04:00
enum_spec.rb
excerpt_parser_spec.rb FIX: Calculation of text length for <details> in excerpt was wrong 2018-03-12 16:55:23 +01:00
fallback_locale_list_spec.rb FEATURE: Allow plugins to register a new locale 2018-01-25 14:57:41 +01:00
feed_element_installer_spec.rb FEATURE: Replace SimpleRSS with Ruby RSS module (#5311) 2017-12-06 10:45:09 +11:00
feed_item_accessor_spec.rb FEATURE: Replace SimpleRSS with Ruby RSS module (#5311) 2017-12-06 10:45:09 +11:00
file_helper_spec.rb Include response body when raising an error in FileHelper#download. 2018-09-13 15:43:58 +08:00
filter_best_posts_spec.rb
final_destination_spec.rb FIX: preserve github fragment URL 2018-12-19 12:34:47 +05:30
flag_query_spec.rb Adjusts the minimum_flag_threshold for TL3/TL4 actions 2019-01-04 13:16:44 -05:00
flag_settings_spec.rb Refactor flag types for more customization 2017-10-19 13:55:23 -04:00
gaps_spec.rb
global_path_spec.rb Revert "Revert "FIX: GlobalPath#upload_cdn_path when S3 bucket has a folder (#6523)"" 2018-10-24 15:14:01 +11:00
guardian_spec.rb FEATURE: Introducing new UI for changing User's notification levels (#7248) 2019-03-27 09:41:50 +00:00
has_errors_spec.rb
hijack_spec.rb Add Cache-Control header to CORS (#6490) 2018-10-16 10:46:55 +11:00
html_prettify_spec.rb
html_to_markdown_spec.rb FIX: Font tag resulted in wrong email trimming 2018-12-18 11:40:54 +01:00
image_sizer_spec.rb FIX: raise exception when getting dimensions of missing image 2018-12-03 10:19:49 -05:00
inline_oneboxer_spec.rb remove unnecessary expectation lines 2018-11-13 16:52:08 +05:30
js_locale_helper_spec.rb Update Rubocop to 0.60 2018-12-04 10:48:16 +01:00
json_error_spec.rb
letter_avatar_spec.rb
method_profiler_spec.rb FIX: stop double counting net calls in logs 2018-02-28 10:45:11 +11:00
new_post_manager_spec.rb FIX: Don't enqueue topics if the user can't create them 2018-11-09 18:24:28 +01:00
new_post_result_spec.rb
oneboxer_spec.rb FIX: Onebox discourse user not respecting enable names (#7245) 2019-03-25 12:50:14 +05:30
onpdiff_spec.rb
pbkdf2_spec.rb
pinned_check_spec.rb
plain_text_to_markdown_spec.rb FEATURE: convert plain text emails to markdown 2017-12-06 01:47:51 +01:00
post_action_creator_spec.rb
post_creator_spec.rb FEATURE: unconditionally update Topic updated_at when posts change in topic 2019-03-28 17:28:01 +11:00
post_destroyer_spec.rb REFACTOR: Move queue_jobs out of SiteSetting 2019-03-14 10:47:38 -04:00
post_enqueuer_spec.rb
post_locker_spec.rb FEATURE: Staff members can lock posts 2018-01-26 14:01:30 -05:00
post_merger_spec.rb
post_revisor_spec.rb REFACTOR: Move queue_jobs out of SiteSetting 2019-03-14 10:47:38 -04:00
pretty_text_spec.rb FIX: ensure local images use local CDN when uploads are stored on S3 2019-02-20 19:24:38 +01:00
promotion_spec.rb FIX: do not send tl1 welcome message when a user has the basic user badge 2018-09-19 12:53:36 -07:00
quote_comparer_spec.rb FEATURE: Add quote-modified class if a quote has been modified 2018-03-13 13:41:06 -04:00
rate_limiter_spec.rb Add guard for nil in our RateLimiter. 2018-03-01 13:20:42 +08:00
redis_store_spec.rb
retrieve_title_spec.rb PERF: ability to crawl for titles without extra HEAD req 2018-01-29 15:40:12 +11:00
rtl_spec.rb
s3_helper_spec.rb FEATURE: Add SiteSetting for s3_configure_tombstone_policy 2018-09-17 10:57:50 +10:00
s3_inventory_spec.rb Fix the build. 2019-03-13 17:39:07 +08:00
score_calculator_spec.rb remove uneeded specs 2018-07-05 15:34:58 +10:00
search_spec.rb FIX: Post blurb incorrect when search contains a phrase match. 2019-03-26 17:01:52 +08:00
secure_session_spec.rb
site_setting_extension_spec.rb FIX: Properly support defaults for upload site settings. 2019-03-13 16:36:57 +08:00
slug_spec.rb FIX: strip emoji string from slug 2018-04-18 11:32:32 +05:30
spam_handler_spec.rb
suggested_topics_builder_spec.rb
system_message_spec.rb FEATURE: Add site contact group. (#7152) 2019-03-13 11:34:47 +01:00
text_cleaner_spec.rb FIX: strip invalid byte sequences 2019-02-26 10:09:51 +01:00
text_sentinel_spec.rb rename 'min_private_message_{post/title}_length' to 'min_personal_message_{post/title}_length' 2018-02-01 13:25:29 +05:30
theme_settings_manager_spec.rb FEATURE: Allow string theme settings to display with multiple lines 2019-02-05 14:14:53 +00:00
theme_settings_parser_spec.rb FEATURE: introduces list/compact_list components 2018-08-03 16:41:37 -04:00
timeline_lookup_spec.rb PERF: Don't pluck all the columns just to retrieve a single value. 2018-06-27 11:41:35 +08:00
topic_creator_spec.rb FIX: allow sending PMs to staff via flag even when PMs are disabled (#6938) 2019-01-24 16:56:59 +05:30
topic_publisher_spec.rb FIX: Update last_version_at when publishing 2018-03-26 16:06:20 -04:00
topic_query_spec.rb FIX: Only hide shared draft topics from latest (#6737) 2018-12-07 12:44:23 +00:00
topic_retriever_spec.rb
topic_view_spec.rb [FEATURE] Disallow ignoring self, admins or moderators users (#7202) 2019-03-20 11:18:46 +01:00
topics_bulk_action_spec.rb
trashable_spec.rb
trust_level_spec.rb
unread_spec.rb
url_helper_spec.rb FIX: URLs containing two # would fail to work 2018-12-11 18:03:13 +11:00
user_name_suggester_spec.rb FIX: don't raise an error on integer usernames 2018-09-10 22:17:56 +05:30
version_spec.rb