discourse/spec/components/concern
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
..
category_hashtag_spec.rb Use the CategoryHashtag::SEPARATOR (#5258) 2017-10-23 14:59:08 +02:00
has_custom_fields_spec.rb FIX: ignore and log bad json values for custom fields 2018-09-13 14:26:30 +05:30
has_search_data_spec.rb Fix 'asscoiated' typo 2018-06-29 11:10:05 +10:00
positionable_spec.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
searchable_spec.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
second_factor_manager_spec.rb FEATURE: unconditionally update Topic updated_at when posts change in topic 2019-03-28 17:28:01 +11:00