discourse/spec/lib
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
..
backup_restore FEATURE: unconditionally update Topic updated_at when posts change in topic 2019-03-28 17:28:01 +11:00
content_security_policy FEATURE: allow plugins and themes to extend the default CSP (#6704) 2018-11-30 09:51:45 -05:00
seed_data FIX: Forcing permissions of seeded categories shouldn't fail 2019-03-26 10:39:07 +01:00
site_settings DEV: Remove unnecessary `to_not raise_error` from specs 2018-12-17 16:10:10 +01:00
browser_detection_spec.rb FIX: Fix browser detection for Microsoft Edge. (#6516) 2018-10-22 23:15:41 +11:00
content_security_policy_spec.rb FEATURE: Calculate CSP based on active themes (#6976) 2019-02-11 12:32:04 +00:00
db_helper_spec.rb FIX: Handle BBCode in `migrate_to_s3` task as well. 2019-03-22 16:47:06 +08:00
encodings_spec.rb Use rchardet instead of charlock_holmes gem 2018-08-01 10:41:20 +02:00
introduction_updater_spec.rb FEATURE: Locale support for seeded categories and topics (#7110) 2019-03-18 21:09:13 +01:00
mini_sql_multisite_connection_spec.rb Rubocop fix 2018-07-24 10:49:20 +01:00
theme_javascript_compiler_spec.rb FIX: Prevent duplicate params for raw template theme handlebars helpers 2019-02-08 12:54:00 +00:00
upload_creator_spec.rb FEATURE: Add S3 etag value to uploads table (#6795) 2019-01-04 14:16:22 +08:00
upload_recovery_spec.rb REFACTOR: Move `queue_jobs` out of `SiteSetting` 2019-03-14 10:47:38 -04:00