discourse/lib
Régis Hanol 12cba2ce24 PERF: bail out of expensive post validations
Whenever a post already failed "lightweight" validations, we skip all the expensive validations (that cooks the post or run SQL queries) so that we reply as soon as possible.

Also skip validating polls when there's no "[/poll]" in the raw.

Internal ref - t/115890
2024-05-07 18:56:16 +02:00
..
action_dispatch/session
active_support_type_extensions
auth
autospec
backup_restore
common_passwords
compression
content_security_policy
demon
discourse_dev
discourse_webauthn
email
email_controller_helper
emoji
faker
file_store
final_destination
freedom_patches
generators
guardian
i18n
imap
import
import_export
javascripts
middleware
migration
onebox
plugin
pretty_text
rate_limiter
reviewable
scheduler
search
second_factor
seed_data
sidekiq
site_settings
stylesheet
summarization
tasks
theme_settings_manager
theme_store
topic_query
turbo_tests
validators PERF: bail out of expensive post validations 2024-05-07 18:56:16 +02:00
wizard
admin_confirmation.rb
admin_constraint.rb
admin_user_index_query.rb
age_words.rb
archetype.rb
auth.rb
backup_restore.rb
badge_posts_view_manager.rb
badge_queries.rb
base62.rb
bookmark_manager.rb
bookmark_query.rb
bookmark_reminder_notification_handler.rb
browser_detection.rb
cache.rb
canonical_url.rb
category_badge.rb
chrome_installed_checker.rb
color_math.rb
comment_migration.rb
common_passwords.rb
composer_messages_finder.rb
configurable_urls.rb
content_buffer.rb
content_security_policy.rb
cooked_post_processor.rb
cooked_processor_mixin.rb
crawler_detection.rb
csrf_token_verifier.rb
current_user.rb
custom_renderer.rb
db_helper.rb
directory_helper.rb
discourse_connect_base.rb
discourse_connect_provider.rb
discourse_dev.rb
discourse_diff.rb
discourse_event.rb
discourse_hub.rb
discourse_ip_info_spec.rb
discourse_ip_info.rb
discourse_js_processor.rb
discourse_logstash_logger.rb
discourse_plugin_registry.rb
discourse_redis.rb
discourse_sourcemapping_url_processor.rb
discourse_tagging.rb
discourse_updates.rb
discourse_webauthn.rb
discourse.rb
disk_space.rb
distributed_cache.rb
distributed_memoizer.rb
distributed_mutex.rb
edit_rate_limiter.rb
email_backup_token.rb
email_cook.rb
email_updater.rb
email.rb
ember_cli.rb
encodings.rb
enum_site_setting.rb
enum.rb
excerpt_parser.rb
external_upload_helpers.rb
feed_element_installer.rb
feed_item_accessor.rb
file_helper.rb
filter_best_posts.rb
final_destination.rb
flag_query.rb
flag_settings.rb
gaps.rb
gc_stat_instrumenter.rb
git_repo.rb
git_url.rb
global_path.rb
group_lookup.rb
guardian.rb
has_errors.rb
highlight_js.rb
hijack.rb
homepage_constraint.rb
homepage_helper.rb
html_prettify.rb
html_to_markdown.rb
http_language_parser.rb
image_sizer.rb
import_export.rb
inline_oneboxer.rb
job_time_spacer.rb
js_locale_helper.rb
json_error.rb
letter_avatar.rb
markdown_linker.rb
mem_info.rb
message_bus_diags.rb
method_profiler.rb
mini_sql_multisite_connection.rb
mobile_detection.rb
new_post_manager.rb
new_post_result.rb
notification_levels.rb
onebox.rb
oneboxer.rb
onpdiff.rb
password_hasher.rb
pbkdf2.rb
permalink_constraint.rb
pinned_check.rb
plain_text_to_markdown.rb
plugin_gem.rb
plugin.rb
post_action_creator.rb
post_action_destroyer.rb
post_action_result.rb
post_creator.rb
post_destroyer.rb
post_jobs_enqueuer.rb
post_locker.rb
post_merger.rb
post_revisor.rb
presence_channel.rb
pretty_text.rb
promotion.rb
quote_comparer.rb
quote_rewriter.rb
rake_helpers.rb
rate_limiter.rb
read_only_mixin.rb
redis_snapshot.rb
require_dependency_backward_compatibility.rb
retrieve_title.rb
route_format.rb
route_matcher.rb
rtl.rb
s3_cors_rulesets.rb
s3_helper.rb
s3_inventory.rb
score_calculator.rb
screening_model.rb
search.rb
secure_session.rb
secure_upload_endpoint_helpers.rb
shrink_uploaded_image.rb
sidekiq_logster_reporter.rb
site_icon_manager.rb
site_setting_extension.rb
slug.rb
socket_server.rb
spam_handler.rb
staff_constraint.rb
staff_message_format.rb
statistics.rb
steps_inspector.rb
suggested_topics_builder.rb
svg_sprite.rb
system_message.rb
temporary_db.rb
temporary_redis.rb
text_cleaner.rb
text_sentinel.rb
theme_javascript_compiler.rb
theme_metadata.rb
theme_modifier_helper.rb
theme_settings_manager.rb
theme_settings_object_validator.rb
theme_settings_parser.rb
theme_settings_validator.rb
theme_translation_manager.rb
theme_translation_parser.rb
timeline_lookup.rb
tiny_japanese_segmenter.rb
topic_creator.rb
topic_list_responder.rb
topic_publisher.rb
topic_query_params.rb
topic_query.rb
topic_retriever.rb
topic_subtype.rb
topic_upload_security_manager.rb
topic_view.rb
topics_bulk_action.rb
topics_filter.rb
truncate_logs_formatter.rb
trust_level.rb
turbo_tests.rb
twitter_api.rb
unicorn_logstash_patch.rb
unread.rb
upload_creator.rb
upload_fixer.rb
upload_markdown.rb
upload_recovery.rb
upload_security.rb
url_helper.rb
user_comm_screener.rb
user_lookup.rb
user_name_suggester.rb
vary_header.rb
version.rb
wizard.rb
work_queue.rb
xml_cleaner.rb