discourse/spec/jobs
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
..
about_stats_spec.rb Fix randomly failing specs. 2017-03-14 16:28:05 +08:00
auto_expire_user_api_keys.rb FEATURE: Automatically expire keys if not used for a configurable amount of time. (#6264) 2018-08-20 17:36:14 +02:00
auto_queue_handler_spec.rb FEATURE: automatically handle flags and posts that have been waiting in a queue for a long time. Flags will be deferred. Posts waiting for approval will be rejected. Control how old the records need to be with the auto_handle_queued_age site setting. 2017-09-14 12:01:06 -04:00
automatic_group_membership_spec.rb FIX: automatic group membership when using SSO 2018-05-15 01:48:30 +02:00
bulk_grant_trust_level_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
bulk_invite_spec.rb Support ruby 2.5.0 2018-01-09 16:03:17 +01:00
bump_topic_spec.rb FEATURE: Topic timer for bumping a topic in the future 2019-01-04 13:08:04 +00:00
clean_up_associated_accounts_spec.rb DEV: Style and performance improvements 2018-12-11 09:58:20 +00:00
clean_up_crawler_stats_spec.rb FEATURE: control which web crawlers can access using a whitelist or blacklist 2018-03-22 15:41:02 -04:00
clean_up_deprecated_url_site_settings_spec.rb FIX: Remove site settings override for deprecated url site settings. 2018-11-20 11:42:39 +08:00
clean_up_email_logs_spec.rb DEV: Improve Jobs::CleanUpEmailLogs specs. 2018-10-08 11:11:20 +08:00
clean_up_inactive_users_spec.rb DEV: Refactor tests for Jobs::CleanUpInactiveUsers. 2019-03-19 09:57:21 +08:00
clean_up_post_reply_keys_spec.rb FEATURE: Clean up PostReplyKey records. 2018-08-23 10:40:02 +08:00
clean_up_unused_staged_users_spec.rb FIX: Staged users were incorrectly created multiple times with same email. 2017-08-10 18:56:15 +09:00
clean_up_uploads_spec.rb FIX: Properly support defaults for upload site settings. 2019-03-13 16:36:57 +08:00
correct_missing_dualstack_urls_spec.rb correct prev commit 2018-09-05 16:11:44 +10:00
crawl_topic_link_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
create_missing_avatars_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
delete_topic_spec.rb DEV: Take 2 Queue jobs in tests by default. 2018-05-31 16:23:23 +08:00
disable_bootstrap_mode_spec.rb FIX: bootstrap mode should not amend setting that is not in default state 2016-05-04 16:46:46 +05:30
download_avatar_from_url_spec.rb FIX: Don't raise error when trying to download avatar from URL. 2017-10-02 12:59:41 +08:00
download_backup_email_spec.rb fix the build 2018-04-25 22:34:23 +02:00
download_profile_background_from_url_spec.rb FEATURE: add profile_background fields into SSO (#5701) 2018-05-07 10:03:26 +02:00
emit_web_hook_event_spec.rb FEATURE: Filter topic and post web hook events by tags (#6726) 2018-12-05 14:44:06 +05:30
enable_bootstrap_mode_spec.rb FIX: bootstrap mode should not amend setting that is not in default state 2016-05-04 16:46:46 +05:30
enqueue_digest_emails_spec.rb FEATURE: add more granular user option levels for email notifications (#7143) 2019-03-15 10:55:11 -04:00
export_csv_file_spec.rb Aadd 'secondary_emails' field in users export 2019-02-27 10:12:20 +01:00
feature_topic_users_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
fix_out_of_sync_user_uploaded_avatar_spec.rb correct invalid spec 2018-08-31 15:06:30 +10:00
fix_primary_emails_for_staged_users_spec.rb FIX: Generate webhook payloads before destroy events (#6325) 2018-10-05 16:53:59 +08:00
fix_s3_etags_spec.rb FIX: Add onceoff job to remove double quotes from s3 etags 2019-02-14 05:19:41 +05:30
fix_user_usernames_and_group_names_clash_spec.rb FIX: Rename User#usernames that clashes with Group#name. (#6069) 2018-07-09 16:54:57 +08:00
grant_anniversary_badges_spec.rb FEATURE: Support an end date for user silencing 2017-11-14 13:20:19 -05:00
grant_new_user_of_the_month_badges_spec.rb prevent users with a tiny number of posts to dominate the 'new user of the month' leaderboard 2018-01-29 12:09:17 +01:00
heartbeat_spec.rb FIX: queue heartbeats in readonly modes 2018-08-29 12:36:59 +10:00
ignored_users_summary_spec.rb [FEATURE] Disallow ignoring self, admins or moderators users (#7202) 2019-03-20 11:18:46 +01:00
invalidate_inactive_admins_spec.rb REFACTOR: Migrate GoogleOAuth2Authenticator to use ManagedAuthenticator (#7120) 2019-03-07 11:31:04 +00:00
invite_email_spec.rb FIX: Don't try to send invite email when invite was deleted 2018-08-29 12:43:12 +02:00
jobs_base_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
jobs_spec.rb REFACTOR: Move queue_jobs out of SiteSetting 2019-03-14 10:47:38 -04:00
migrate_url_site_settings_spec.rb More URL site settings into a onceoff job. 2018-11-14 20:29:20 +08:00
notify_mailing_list_subscribers_spec.rb FEATURE: Ignored user notification behaviour should be as a muted user (#7227) 2019-03-21 12:15:34 +01:00
notify_moved_posts_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
pending_flags_reminder_spec.rb FIX: Respect min_flags_staff_visibility for new flags too 2019-01-25 11:27:43 -05:00
pending_queued_posts_reminder_spec.rb FIX: send the queued posts reminder as a message to moderators instead of an email to the contact_email 2017-09-12 18:00:51 -04:00
pending_users_reminder_spec.rb Don't override count value that has been set by query.count 2017-12-13 18:48:46 -08:00
periodical_updates_spec.rb FEATURE: introduce ultra_low priority queue 2019-01-17 14:53:19 +11:00
poll_feed_spec.rb FIX: drop title updates through RSS feeds 2018-08-28 16:25:04 +10:00
poll_mailbox_spec.rb FIX: Relative links in translations should work with subfolder 2018-11-08 23:31:05 +00:00
post_uploads_recovery_spec.rb Rename Jobs::RecoverPostUploads to rerun the job take 2. 2018-09-19 22:40:32 +08:00
process_email_spec.rb FEATURE: retry processing incoming emails on rate limit 2016-08-08 22:28:27 +02:00
process_post_spec.rb FIX: ProcessPost job failed for posts that have no user 2017-12-21 14:45:59 +01:00
publish_topic_to_category_spec.rb DEV: Take 2 Queue jobs in tests by default. 2018-05-31 16:23:23 +08:00
pull_hotlinked_images_spec.rb FIX: Re-download hotlinked optimized images (#7249) 2019-03-27 21:31:12 +01:00
purge_expired_ignored_users_spec.rb FEATURE: Add scheduled job to purge expired ignored users (#7211) 2019-03-20 11:01:43 +01:00
rebake_all_html_theme_fields_spec.rb FIX: extracted theme JavaScripts for multisite (#6502) 2018-10-18 17:05:34 +11:00
rebake_custom_emoji_posts_spec.rb uses emoji versions for specs (#6276) 2018-08-16 13:45:30 +02:00
recover_user_profile_backgrounds_spec.rb FIX: Onceoff job to fix missing user profile backgrounds. 2018-10-01 16:26:40 +08:00
reindex_search_spec.rb FIX: rebuild index when engine replaced (#5021) 2017-08-16 07:38:34 -04:00
send_system_message_spec.rb FIX: no notification was being sent when a post is hidden by community flags 2017-09-12 15:43:44 -04:00
suspicious_login_spec.rb FIX: Suspicious login detection (#6772) 2018-12-14 16:30:34 +00:00
tl3_promotions_spec.rb FIX: Clarify User.group_locked_trust_level. 2018-11-07 10:27:44 +08:00
toggle_topic_closed_spec.rb FEATURE: unconditionally update Topic updated_at when posts change in topic 2019-03-28 17:28:01 +11:00
topic_reminder_spec.rb DEV: Take 2 Queue jobs in tests by default. 2018-05-31 16:23:23 +08:00
unsilence_users_spec.rb FIX: automatically unsilence users 2018-02-05 17:45:47 +01:00
update_gravatar_spec.rb FIX: don't double request when downloading a file 2018-02-24 12:35:57 +01:00
update_s3_inventory_spec.rb FIX: Destination prefix in S3 inventory configuration is incorrect 2019-02-06 20:51:28 +05:30
user_email_spec.rb FIX: prevent sending multiple summary emails due to Sidekiq delays 2019-03-22 12:34:34 -04:00