discourse/spec/lib/validators
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
..
allowed_ip_address_validator_spec.rb DEV: Remove unreachable IP address validation message (#24131) 2023-10-27 15:22:38 +08:00
at_least_one_group_validator_spec.rb DEV: Validate that passed in groups exist in AtLeastOneGroupValidator (#24890) 2023-12-14 10:00:53 +08:00
category_search_priority_weights_validator_spec.rb
censored_words_validator_spec.rb DEV: Refactor watched words (#24163) 2023-11-01 16:41:10 +02:00
css_color_validator_spec.rb
delete_rejected_email_after_days_spec.rb
email_address_validator_spec.rb
email_setting_validator_spec.rb
email_validator_spec.rb
enable_local_logins_via_email_validator_spec.rb
enable_sso_validator_spec.rb
external_system_avatars_validator_spec.rb
form_template_yaml_validator_spec.rb DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
group_setting_validator_spec.rb
host_list_setting_validator_spec.rb
integer_setting_validator_spec.rb UX: number site setting validation message (#24303) 2023-11-10 14:27:35 +11:00
ip_address_format_validator_spec.rb
linkedin_oidc_credentials_validator_spec.rb FEATURE: Allow users to sign in using LinkedIn OpenID Connect (#26281) 2024-04-19 18:47:30 +08:00
max_emojis_validator_spec.rb FIX: Use only first character when looking up emoji (#22977) 2023-08-04 15:28:58 +02:00
max_username_length_validator_spec.rb
min_username_length_validator_spec.rb
password_validator_spec.rb DEV: Fix various rubocop lints (#24749) 2023-12-06 23:25:00 +01:00
post_validator_spec.rb PERF: bail out of expensive post validations 2024-05-07 18:56:16 +02:00
quality_title_validator_spec.rb
regex_presence_validator_spec.rb
regex_setting_validator_spec.rb
regexp_list_validator_spec.rb
reply_by_email_address_validator_spec.rb
reply_by_email_enabled_validator_spec.rb
search_ranking_weights_validator_spec.rb
search_tokenize_chinese_validator_spec.rb
search_tokenize_japanese_validator_spec.rb
selectable_avatars_mode_validator_spec.rb
sso_overrides_email_validator_spec.rb
string_setting_validator_spec.rb
timezone_validator_spec.rb
topic_title_length_validator_spec.rb
unicode_username_allowlist_validator_spec.rb
unicode_username_validator_spec.rb
upload_validator_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
url_validator_spec.rb
user_full_name_validator_spec.rb
username_setting_validator_spec.rb