discourse/spec
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
..
components FEATURE: unconditionally update Topic updated_at when posts change in topic 2019-03-28 17:28:01 +11:00
fabricators FEATURE: Add page for all group membership requests. (#6909) 2019-03-27 13:30:59 +02:00
fixtures FIX: upload watched words should use UTF-8 2019-03-21 13:46:16 -04:00
helpers Fix the build. 2019-03-13 17:39:07 +08:00
import_export FIX: topic and category exporters were only exporting users who created the first post 2018-01-16 12:51:53 -05:00
integration FEATURE: unconditionally update Topic updated_at when posts change in topic 2019-03-28 17:28:01 +11:00
integrity FIX: Relative links in translations should work with subfolder 2018-11-08 23:31:05 +00:00
jobs FEATURE: unconditionally update Topic updated_at when posts change in topic 2019-03-28 17:28:01 +11:00
lib FEATURE: unconditionally update Topic updated_at when posts change in topic 2019-03-28 17:28:01 +11:00
mailers FIX: Keep original subject in emails to staged users 2019-01-18 11:07:54 +01:00
models FEATURE: unconditionally update Topic updated_at when posts change in topic 2019-03-28 17:28:01 +11:00
multisite DEV: Allow custom value when pausing sidekiq to aid in debugging. 2019-02-19 10:55:53 +08:00
requests FEATURE: Add page for all group membership requests. (#6909) 2019-03-27 13:30:59 +02:00
serializers FEATURE: Introducing new UI for changing User's notification levels (#7248) 2019-03-27 09:41:50 +00:00
services DEV: Refactor icons used in lightbox HTML 2019-03-22 11:52:06 -04:00
support FEATURE: unconditionally update Topic updated_at when posts change in topic 2019-03-28 17:28:01 +11:00
tasks suppress print output when running specs 2017-10-31 16:06:11 +05:30
views/omniauth_callbacks FEATURE: Use translated name for 'your email has been authenticated by' (#6649) 2018-11-22 19:12:04 +00:00
rails_helper.rb FEATURE: unconditionally update Topic updated_at when posts change in topic 2019-03-28 17:28:01 +11:00