discourse/lib
Sam 2b8d4508e5 PERF: stop running background work between requests
Use a dedicated thread to run Scheduler::Defer

This avoids blocking of a worker during operations that require waiting.

In particular uploads risked blocking a unicorn.

This also add a queue "length" that discourse prometheus consumes.
2017-11-23 15:48:47 +11:00
..
active_record/connection_adapters Move monkey patch into freedom_patchers. 2017-11-21 14:15:11 +08:00
auth Add a `failed_code` we can check for when using Auth::Result 2017-11-09 10:49:42 -05:00
autospec improve plugin autospec watcher 2017-10-23 10:49:42 +11:00
backup_restore Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
common_passwords fix build & add migration to clear common passwords cache 2016-03-03 19:39:22 +01:00
demon Don't print Sidekiq starting message to STDERR. 2017-11-03 21:02:31 +08:00
email ignore some site settings for emails sent to mailinglist mirror category 2017-11-17 15:29:14 +01:00
emoji FIX: Pull last emoji-db revision 2017-07-29 13:12:45 +02:00
es6_module_transpiler FEATURE: Use Glimmer compiler for widget templates 2017-09-01 09:28:16 -04:00
file_store FEATURE: allow specifying s3 config via globals 2017-10-06 16:20:01 +11:00
freedom_patches Move monkey patch into freedom_patchers. 2017-11-21 14:15:11 +08:00
guardian Rename "Blocked" to "Silenced" 2017-11-10 14:10:27 -05:00
highlight_js update highlight.js to 9.12.0 2017-07-05 11:12:10 +02:00
i18n Require dependency otherwise it causes Sidekiq to lock up in development. 2017-09-25 13:48:59 +08:00
import Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
import_export FEATURE: Option to export multiple categories using export_category method 2017-11-11 19:11:16 +05:30
javascripts Add support for transformations 2017-10-05 16:24:58 -04:00
middleware FEATURE: Allow registration of detailed request logger 2017-10-18 12:10:30 +11:00
onebox FIX: Topic links onebox differently if end in / 2017-11-06 01:41:36 +05:30
plugin FEATURE: Allow plugins to dynamically add seed fixture paths 2017-11-16 14:43:17 -05:00
pretty_text Add quote and mention support for username formatters 2017-11-20 16:28:03 -05:00
rate_limiter Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
scheduler PERF: stop running background work between requests 2017-11-23 15:48:47 +11:00
search FEATURE: show tags in search results 2017-08-25 11:52:59 -04:00
sidekiq FEATURE: raise an event when a sidekiq job runs 2017-10-23 17:30:17 +11:00
site_settings FIX: Use a distrbuted cache for site locale. 2017-09-12 19:36:17 +08:00
stylesheet FIX: child theme component vars not resolved in parent 2017-11-14 15:22:59 +11:00
tasks Remove onceoff job in migrate rake task. 2017-11-22 12:50:01 +08:00
validators allow regex options on username site settings 2017-10-04 15:08:51 -04:00
wizard FIX: staff count on invites step of wizard should only include real users 2017-08-14 22:17:41 -04:00
admin_confirmation.rb SECURITY: Confirm new administrator accounts via email 2017-04-04 15:59:01 -04:00
admin_constraint.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
admin_user_index_query.rb Rename "Blocked" to "Silenced" 2017-11-10 14:10:27 -05:00
age_words.rb reused value of Time.now in a method 2015-12-01 21:06:37 +00:00
archetype.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
auth.rb Added Instagram login method 2016-02-25 12:13:59 +10:00
avatar_lookup.rb Remove irrelevant comment. 2017-09-08 14:07:24 +08:00
badge_queries.rb FEATURE: Support an end date for user silencing 2017-11-14 13:20:19 -05:00
base62.rb FEATURE: server side support for upload:// markdown 2017-08-22 11:46:23 -04:00
cache.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
canonical_url.rb
category_badge.rb FIX: Category badge style of none was causing errors when rendering 2017-08-24 13:45:32 -04:00
column_dropper.rb FIX: Use `CASCADE` when dropping function. 2017-08-30 15:54:27 +08:00
comment_migration.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
composer_messages_finder.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
configurable_urls.rb Don't blow up if Redis switches to READONLY 2015-04-24 14:37:16 -04:00
content_buffer.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
cooked_post_processor.rb FIX: properly handle too large & broken images in posts 2017-11-16 15:45:07 +01:00
crawler_detection.rb FEATURE: flexible crawler detection 2017-09-29 12:31:50 +10:00
current_user.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
custom_renderer.rb
custom_setting_providers.rb Plugins can register providers for global settings 2017-01-09 17:18:58 -05:00
db_helper.rb FEATURE: move migrate_to_new_scheme into a background job 2015-06-12 12:07:57 +02:00
directory_helper.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse.rb FEATURE: allow plugins to easily detect if running in Rack 2017-11-16 08:39:29 +11:00
discourse_cookie_store.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse_diff.rb FIX: Don't diplay character reference in HTML diffs (#4204) 2016-05-09 08:44:21 +02:00
discourse_event.rb Remove stubs on DiscourseEvent in tests. 2017-06-01 16:21:00 +09:00
discourse_hub.rb DEV: private means nothing for class methods 2017-11-01 16:43:19 +11:00
discourse_iife.rb Allow the loader to understand when files are moved 2016-11-15 11:41:16 -05:00
discourse_logstash_logger.rb FIX: `severity_name` was being logged incorrectly. 2017-11-17 08:55:21 +08:00
discourse_plugin.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse_plugin_registry.rb Only return unique paths 2017-11-16 15:22:05 -05:00
discourse_redis.rb FIX: in readonly mode don't double count pages 2017-10-25 13:19:43 +11:00
discourse_tagging.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse_updates.rb REFACTOR: Avoid duplicated logic on server and client. 2017-11-21 17:10:04 +08:00
disk_space.rb FIX: Allow for large free disk space 2016-01-25 13:22:36 +11:00
distributed_cache.rb Allow `DistributedCache#delete` to not publish changes. 2017-10-20 23:03:42 +08:00
distributed_memoizer.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
distributed_mutex.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
edit_rate_limiter.rb Add better error messages for rate limits. 2015-09-24 13:52:46 -04:00
email.rb UX: display text & html parts alongside raw email in incoming email modal 2017-03-08 23:15:42 +01:00
email_backup_token.rb FEATURE: further restrict downloading of backups 2017-03-01 08:28:34 -07:00
email_cook.rb replace indentation with non-breaking spaces when cooking emails 2017-11-18 17:16:44 +01:00
email_updater.rb FIX: Don't skip validations when updating user's email. 2017-11-08 11:38:51 +08:00
enum.rb Enums that are used in tables need to be stable 2016-01-08 20:43:11 +05:30
enum_site_setting.rb
excerpt_parser.rb FIX: exception in excerpt parser for null nodes 2017-08-17 16:13:30 -04:00
file_helper.rb FinalDestination should only log when verbose is enabled 2017-10-31 17:16:59 +01:00
filter_best_posts.rb PERF: Remove `Object#present?` check introduced in e0d5d9670a. 2017-09-07 21:36:27 +08:00
final_destination.rb FIX: FinalDestination's small_get method wasn't using proper request headers 2017-11-17 17:24:35 +01:00
flag_query.rb FIX: Don't include flags on non-human users 2017-09-25 16:15:48 -04:00
flag_settings.rb Refactor flag types for more customization 2017-10-19 13:55:23 -04:00
gaps.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
git_importer.rb FEATURE: support uploads for themes 2017-05-10 15:47:11 -04:00
global_path.rb FEATURE: allow specifying s3 config via globals 2017-10-06 16:20:01 +11:00
guardian.rb Rename "Blocked" to "Silenced" 2017-11-10 14:10:27 -05:00
has_errors.rb Add `PostCreator#create!`. 2016-07-15 11:36:06 +08:00
headless-ember.js
homepage_constraint.rb FEATURE: Allow the user to select a custom home page (#5268) 2017-11-10 06:45:19 +11:00
html_normalize.rb FIX: Normalizer wasn't working with attributes without values 2017-11-02 14:11:20 -04:00
html_prettify.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
html_to_markdown.rb Some more HTML to Markdown fixes (#5046) 2017-08-14 22:13:24 +02:00
image_sizer.rb FIX: cropping GIF wasn't working 2016-07-27 18:48:02 +02:00
inline_oneboxer.rb FEATURE: option to enable inline oneboxes for all domains 2017-08-02 14:27:31 -04:00
introduction_updater.rb Add new welcome message step 2016-09-22 09:52:19 -04:00
ip_addr.rb Replace certain uses of 'gsub' with 'tr' or 'chomp' for a speed 2016-06-10 22:08:37 -05:00
js_locale_helper.rb FIX: Support client locales defined in plugins 2017-11-16 16:21:53 -05:00
json_error.rb FEATURE: View flags grouped by topic 2017-09-25 12:25:14 -04:00
letter_avatar.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
markdown_linker.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
mem_info.rb
memory_diagnostics.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
message_bus_diags.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
method_profiler.rb FEATURE: Allow registration of detailed request logger 2017-10-18 12:10:30 +11:00
mobile_detection.rb radically simplify our mobile user agent detection 2016-03-26 02:02:23 -07:00
new_post_manager.rb Rename "Blocked" to "Silenced" 2017-11-10 14:10:27 -05:00
new_post_result.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
notification_levels.rb Server side code for Watching First Post Only 2016-07-07 11:21:50 -04:00
oneboxer.rb FIX: allows onebox to force GET hosts returning wrong headers on HEAD 2017-08-08 11:44:27 +02:00
onpdiff.rb
pbkdf2.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
permalink_constraint.rb FIX: permalink normalization not applied at constraint 2015-07-22 13:40:45 +10:00
pinned_check.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
plugin_gem.rb Add some more debugging information when a plugin can't find a gem 2017-08-02 14:00:18 -04:00
post_action_creator.rb PERF: Avoid calling expensive `PostGuardian#can_see_post?` multiple times. 2017-09-08 14:07:24 +08:00
post_creator.rb FIX: be consistent with how first posts in topics are counted. do like DirectoryItem.refresh_period :all 2017-11-10 12:18:25 -05:00
post_destroyer.rb FIX: be consistent with how first posts in topics are counted. do like DirectoryItem.refresh_period :all 2017-11-10 12:18:25 -05:00
post_enqueuer.rb FIX: When approving/rejecting a post it should delete the user action 2015-04-24 15:25:47 -04:00
post_jobs_enqueuer.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
post_merger.rb FIX: Revised post not updated correctly when merging posts. 2016-08-11 09:01:54 +08:00
post_revisor.rb FEATURE: remove the featured link by editing the topic 2017-11-22 14:53:35 -05:00
pretty_text.rb Add quote and mention support for username formatters 2017-11-20 16:28:03 -05:00
primary_group_lookup.rb PERF: Remove N+1 query when generating posters summary. 2017-09-14 12:07:35 +08:00
promotion.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
rate_limiter.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
retrieve_title.rb FIX: Hack our title retriever so that it parses YouTube URLs 2017-09-28 09:30:22 -04:00
rtl.rb DEV: Move RTL into lib where it belongs 2017-07-03 15:26:57 -04:00
s3_helper.rb FIX: error setting tombstone bucket when set to old version 2017-11-13 15:36:45 +11:00
score_calculator.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
screening_model.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
search.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
secure_session.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
single_sign_on.rb Fix "duplicate method" issue 2017-11-02 12:33:35 +01:00
site_setting_extension.rb FIX: bypass all site setting work for shadowed method 2017-10-27 11:12:44 +11:00
slug.rb FIX: `Topic#title` were being parameterized when encoded slug is 2017-10-27 11:02:47 +08:00
socket_server.rb Merge pull request #4870 from tgxworld/fix_cleanup_sockets_servers 2017-05-24 12:33:34 -04:00
source_url.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
spam_handler.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
sql_builder.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
staff_constraint.rb FIX: Return 404 if API access is invalid. 2017-08-10 18:27:01 +09:00
stats_socket.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
suggested_topics_builder.rb Avoid allocating an extra array. 2017-09-08 14:07:24 +08:00
system_message.rb Convert server side paths to use `/u/` 2017-03-30 10:23:24 -04:00
table_migration_helper.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
text_cleaner.rb FIX: Title prettify shoundn't downcase all non-ascii titles 2017-08-08 14:03:24 -03:00
text_sentinel.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
timeline_lookup.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_creator.rb FEATURE: Allow users to disable new PMs. 2017-10-19 12:32:55 +08:00
topic_list_responder.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_query.rb Revert "PERF: Reduce number of topics to filter while querying for unread." 2017-11-20 11:49:09 +08:00
topic_query_sql.rb FEATURE: digests choose topics you're watching or tracking first 2016-08-18 17:16:52 -04:00
topic_retriever.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_subtype.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_view.rb FIX: frequent posters wasn't displaying the correct information 2017-10-02 17:47:04 +02:00
topics_bulk_action.rb Use `PostDestroyer` to delete topics when performing bulk operation (#5202) 2017-09-28 14:22:49 +02:00
trust_level.rb FIX: admin trust level user list URL should be consistent with new naming 2015-11-23 14:28:56 +05:30
twitter_api.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
unread.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
upload_creator.rb Merge branch 'master' into search_posts_by_filetype 2017-07-25 14:41:20 -04:00
url_helper.rb FIX: absolute URL for CDN should always be rooted with a protocol 2016-09-05 15:57:46 +10:00
user_name_suggester.rb FIX: suggested username should not be more than setting max_username_length 2017-03-29 18:19:28 +05:30
version.rb Version bump to v1.9.0.beta14 2017-10-30 11:20:55 -04:00
wizard.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00