discourse/spec/jobs
Sam 5f64fd0a21 DEV: remove exec_sql and replace with mini_sql
Introduce new patterns for direct sql that are safe and fast.

MiniSql is not prone to memory bloat that can happen with direct PG usage.
It also has an extremely fast materializer and very a convenient API

- DB.exec(sql, *params) => runs sql returns row count
- DB.query(sql, *params) => runs sql returns usable objects (not a hash)
- DB.query_hash(sql, *params) => runs sql returns an array of hashes
- DB.query_single(sql, *params) => runs sql and returns a flat one dimensional array
- DB.build(sql) => returns a sql builder

See more at: https://github.com/discourse/mini_sql
2018-06-19 16:13:36 +10:00
..
about_stats_spec.rb Fix randomly failing specs. 2017-03-14 16:28:05 +08: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
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_email_logs_spec.rb properly name purge emails/email logs site settings 2016-02-08 22:18:52 +01: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 DEV: Add specs for 085eaaf18d. 2018-06-05 10:03:26 +08: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
dashboard_stats_spec.rb FEATURE: remove the timecop gem 2017-07-24 12:11:10 -04: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 FIX: Broken ping event for web hooks due to missing payload. 2018-05-24 15:16:52 +08:00
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 Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
export_csv_file_spec.rb Remove assertion `to_not raise_error`. 2018-05-25 09:57:08 +08:00
feature_topic_users_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
fix_primary_emails_for_staged_users_spec.rb DEV: if plugins are installed do not fail the test 2017-12-04 18:17:30 +11: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
invite_email_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
jobs_base_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
jobs_spec.rb Fix random build error 2018-06-01 17:34:19 +02:00
notify_mailing_list_subscribers_spec.rb FIX: do not send mailing list emails to unapproved users 2017-12-13 15:13:17 +11: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 Nuke all `SiteSetting.stubs` from our codebase. 2017-07-07 15:09:14 +09: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 Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
poll_feed_spec.rb FIX: TopicEmbed.import should update title and author 2018-05-02 17:12:31 +10:00
poll_mailbox_spec.rb don't send more than 1 reply per day to auto-generated emails 2016-06-28 16:42:05 +02: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 DEV: Take 2 Queue jobs in tests by default. 2018-05-31 16:23:23 +08:00
rebake_custom_emoji_posts_spec.rb emoji images are now v5 not v3 2017-06-05 16:10:36 +02: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
test_email_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
tl3_promotions_spec.rb PERF: Tl3Promotions job can limit the number of TL3 candidates by using some simple requirements in the query 2018-02-05 17:54:36 -05:00
toggle_topic_closed_spec.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10: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
user_email_spec.rb UX: Nicer selection of suspend duration 2017-09-25 12:28:00 -04:00