0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/spec/lib
2026-07-28 17:00:54 +02:00
..
active_support_type_extensions DEV: Add symbol to ActiveModel attribute types (#36420) 2025-12-03 10:57:44 +01:00
auth SECURITY: Bind shared session key to auth token and enforce user gates [backport 2026.1] (#41691) 2026-07-14 15:48:25 +08:00
backup_restore SECURITY: block cross-site backup traversal in multisite local storage [backport 2026.1] 2026-05-19 00:26:55 +01:00
common_passwords DEV: Fix various spec linting issues (#24672) 2023-12-04 13:45:19 +01:00
compression
concern DEV: Rename SecureSession to ServerSession 2025-09-18 16:31:03 +02:00
content_security_policy FIX: invalid CSP directive sources should allow site to boot with valid CSP directives (#31256) 2025-02-10 20:38:36 +08:00
demon DEV: Remove IMAP support in Discourse (#37002) 2026-01-12 10:07:26 +10:00
discourse DEV: Sandbox all image processing via Landlock [backport 2026.1] (#42065) 2026-07-27 18:54:13 +01:00
discourse_webauthn DEV: Rename SecureSession to ServerSession 2025-09-18 16:31:03 +02:00
email SECURITY: Prevent any signed AWS SNS TopicARN from being accepted via webhooks [backport 2026.1] 2026-06-30 16:27:06 +02:00
file_store FIX: Set tagging_directive to "REPLACE" in S3Helper#copy [backport 2026.1] (#37887) 2026-02-18 18:21:55 +11:00
final_destination SECURITY: Add FastImage SSRF safe freedom patch 2024-07-03 20:49:15 +08:00
freedom_patches DEV: Sandbox all image processing via Landlock [backport 2026.1] (#42065) 2026-07-27 18:54:13 +01:00
guardian SECURITY: Require topic visibility for category group moderator actions [backport 2026.1] 2026-05-19 00:26:55 +01:00
highlight_js
i18n DEV: Enable Rails 7.1 defaults 2024-08-12 10:41:13 +02:00
import
middleware SECURITY: Prevent cache poisoning/XSS via color scheme cookies [backport 2026.1] 2026-07-28 17:00:54 +02:00
migration FIX: Add table_schema filter to mark_readonly default check (#37037) 2026-01-10 21:57:31 +01:00
onebox SECURITY: Onebox Domain Blocklist Bypass via Case-Sensitive Comparison [backport 2026.1] 2026-07-28 17:00:54 +02:00
plugin FIX: Don’t apply callbacks from disabled plugins (#35630) 2025-10-30 10:04:17 +01:00
pretty_text DEV: add tag hashtag data source style type (#33289) 2025-06-20 18:08:47 +04:00
rate_limiter
reviewable FIX: ensure remove_reviewable_ids is always an array (#37131) 2026-01-15 10:35:59 +08:00
scheduler DEV: Double timeout for spec in spec/defer_spec.rb (#35368) 2025-10-14 17:13:26 +08:00
second_factor FIX: URL encode usernames in grant admin redirect (#34664) 2025-10-13 09:49:23 +08:00
seed_data DEV: Deprecate the assignment of nil to site settings (#36093) 2025-12-01 15:04:23 +08:00
service DEV: Handle nested attributes in contracts (#36348) 2025-12-12 11:41:48 +01:00
sidekiq FIX: Ensure retry_count is set when checking if a job is being retried (#36034) 2025-11-14 14:18:50 +11:00
site_settings FEATURE: Support non-image file uploads in site settings (#37005) 2026-01-19 22:37:38 +01:00
stylesheet DEV: Rename theme-transpiler to asset-processor (#35498) 2025-10-20 14:16:46 +01:00
svg_sprite DEV: Deprecate the assignment of nil to site settings (#36093) 2025-12-01 15:04:23 +08:00
theme_settings_manager DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
theme_store FEATURE: Theme settings migrations (#24071) 2023-11-02 08:10:15 +03:00
topic_query SECURITY: Restrict tagged group message lists [backport 2026.1] (#41392) 2026-07-06 12:18:30 +08:00
turbo_tests/flaky DEV: Include exception details for each test in flaky tests report (#24892) 2023-12-14 11:11:11 +08:00
upcoming_changes FEATURE: Notify admins of upcoming changes and log events (#37003) 2026-01-21 12:45:54 +10:00
validators FEATURE: Support non-image file uploads in site settings (#37005) 2026-01-19 22:37:38 +01:00
wizard UX: One step wizard (#36082) 2025-11-25 13:35:32 -05:00
admin_confirmation_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
admin_user_index_query_spec.rb DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
archetype_spec.rb DEV: Catch missing translations during test runs (#26258) 2024-05-24 22:15:53 +08:00
asset_processor_spec.rb DEV: Rename theme-transpiler to asset-processor (#35498) 2025-10-20 14:16:46 +01:00
bookmark_manager_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
bookmark_query_spec.rb FIX: Respect permissions when counting bookmarks in user summary (#36856) 2026-01-21 16:34:55 +01:00
bookmark_reminder_notification_handler_spec.rb FIX: don't clear reminder on deleted bookmarks (#35987) 2025-11-12 17:47:07 +01:00
bookmarks_bulk_action_spec.rb FIX: Bookmark reminder was clearing incorrectly (#28506) 2024-08-26 09:17:39 +10:00
browser_detection_spec.rb
cache_spec.rb DEV: Use rspec mocks to properly verify a race condition 2024-08-06 15:57:04 +02:00
category_badge_spec.rb FIX: email category badges shouldn't use category text color (#25655) 2024-02-13 10:18:36 -05:00
category_guardian_spec.rb DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
color_math_spec.rb UX: Calculate missing hover/selected colors from existing colors (#20105) 2023-02-01 09:55:21 +00:00
composer_messages_finder_spec.rb FIX: composer educational limit should use post count (#33650) 2025-07-17 18:15:18 +04:00
content_buffer_spec.rb
content_localization_spec.rb DEV: Move locale check to unified concern (#35207) 2025-10-06 20:11:52 +08:00
content_security_policy_spec.rb FIX: invalid CSP directive sources should allow site to boot with valid CSP directives (#31256) 2025-02-10 20:38:36 +08:00
cooked_post_processor_spec.rb FIX: skip image dimensions in oembed for rich data types (#37108) 2026-01-15 11:45:53 +04:00
crawler_detection_spec.rb
current_user_spec.rb
db_helper_spec.rb FIX: Truncate bookmarks.name when remapping 2024-12-11 18:53:17 -05:00
directory_helper_spec.rb
discourse_diff_spec.rb
discourse_event_spec.rb
discourse_hub_spec.rb DEV: Don’t replace Rails logger in specs (#29721) 2024-11-13 08:47:39 +08:00
discourse_id_spec.rb FEATURE: Discourse ID setting page (#36316) 2025-12-11 16:04:09 +01:00
discourse_ip_info_spec.rb DEV: Don’t replace Rails logger in specs (#29721) 2024-11-13 08:47:39 +08:00
discourse_logstash_logger_spec.rb DEV: Make specs pass with ruby 3.4 (#35411) 2025-10-15 12:40:18 +03:00
discourse_plugin_registry_spec.rb DEV: Add a new type_source field to the Reviewable model. (#31325) 2025-02-20 09:09:47 +11:00
discourse_redis_spec.rb DEV: Upgrade the Redis gem to v5.4 2025-03-19 14:34:00 +01:00
discourse_spec.rb DEV: Deprecate the assignment of nil to site settings (#36093) 2025-12-01 15:04:23 +08:00
discourse_tagging_spec.rb FIX: Apply one_per_topic only from category's allowed tag groups (#37004) 2026-01-08 15:40:46 +08:00
discourse_updates_spec.rb DEV: Allow specifying a new feature by a commit hash (#34607) 2025-08-28 16:43:40 +08:00
distributed_cache_spec.rb
distributed_memoizer_spec.rb
distributed_mutex_spec.rb DEV: Upgrade the Redis gem to v5.4 2025-03-19 14:34:00 +01:00
email_cook_spec.rb
email_updater_spec.rb SECURITY: Moderators can no longer edit user's emails. 2026-01-28 17:11:14 +00:00
ember_cli_spec.rb FIX: Ensure ember version in cache key is coupled to compiler (#34694) 2025-09-02 22:29:02 +01:00
encodings_spec.rb
enum_spec.rb
excerpt_parser_spec.rb DEV: Add keep_images option to ExcerptParser (#36077) 2025-11-19 09:20:20 +10:00
feed_element_installer_spec.rb
feed_item_accessor_spec.rb
file_helper_spec.rb SECURITY: Download allowlist for uploaded files 2026-01-28 17:11:14 +00:00
filter_best_posts_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
final_destination_spec.rb SECURITY: Loose hostname matching in FinalDestination 2026-01-28 17:11:14 +00:00
flag_settings_spec.rb FEATURE: custom flag can require additional message (#27908) 2024-07-18 10:10:22 +10:00
gaps_spec.rb
gc_stat_instrumenter_spec.rb DEV: Seperate concerns of tracking GC stat from MethodProfiler (#22921) 2023-08-02 10:46:37 +08:00
git_repo_spec.rb FEATURE: display commit hash for each plugin on /admin/plugins page. (#22176) 2023-06-26 10:09:57 +05:30
git_url_spec.rb
git_utils_spec.rb DEV: GitUtils overriding via config/git-utils-overrides.json [backport 2026.1] (#37897) 2026-02-18 11:23:39 +00:00
global_path_spec.rb
group_lookup_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
guardian_spec.rb SECURITY: Require topic visibility for category group moderator actions [backport 2026.1] 2026-05-19 00:26:55 +01:00
has_errors_spec.rb
hijack_spec.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
homepage_helper_spec.rb DEV: Show login-required splash in root route (take 2) (#32629) 2025-05-14 11:25:43 -04:00
html_prettify_spec.rb
html_to_markdown_spec.rb DEV: Bump rubocop_discourse (#29608) 2024-11-06 06:27:49 +08:00
http_language_parser_spec.rb FIX: Language parser matches with dashes or underscores (#31381) 2025-02-19 11:55:14 +08:00
image_sizer_spec.rb
inline_oneboxer_spec.rb FEATURE: Add inline_onebox_user_agent site setting (#37324) 2026-01-28 08:43:12 +11:00
js_locale_helper_spec.rb DEV: Refactor locale bundle loading (#37114) 2026-01-16 11:45:14 +00:00
json_error_spec.rb
letter_avatar_spec.rb
localization_attributes_replacer_spec.rb FIX: Deleted topic causes an issue when replacing attributes (#34286) 2025-08-13 17:58:45 +08:00
localized_cooked_post_processor_spec.rb FEATURE: Add support for uploads on translated posts (#35871) 2025-11-12 08:55:21 -08:00
message_id_service_spec.rb DEV: Remove old TODOs for message-id formats (#27196) 2024-05-28 13:57:09 +10:00
method_profiler_spec.rb DEV: Seperate concerns of tracking GC stat from MethodProfiler (#22921) 2023-08-02 10:46:37 +08:00
mini_scheduler_long_running_job_logger_spec.rb DEV: Fix state leak in MiniSchedulerLongRunningJobLogger spec (#36453) 2025-12-04 16:47:01 +08:00
mini_sql_multisite_connection_spec.rb
mobile_detection_spec.rb FIX: Update 'modern mobile' regex following iOS 15 support drop (#34792) 2025-09-12 11:33:30 -04:00
new_post_manager_spec.rb DEV: Remove deprecated trust level access settings (#36414) 2025-12-11 11:09:29 +10:00
new_post_result_spec.rb
onebox_spec.rb
oneboxer_spec.rb FIX: Use oEmbed for YouTube oneboxing (#35959) 2025-11-12 14:13:16 +10:00
onpdiff_spec.rb
password_hasher_spec.rb FEATURE: Persist password hashing algorithm/params in database (#20980) 2023-04-11 10:16:28 +01:00
pbkdf2_spec.rb
pinned_check_spec.rb DEV: Fix various spec linting issues (#24672) 2023-12-04 13:45:19 +01:00
plain_text_to_markdown_spec.rb
post_action_creator_spec.rb SECURITY: fix is_warning type coercion bypass in PostActionsController 2026-03-19 15:46:24 +00:00
post_action_destroyer_spec.rb DEV: Convert min_trust_to_flag_posts setting to groups (#24864) 2023-12-13 17:18:42 +08:00
post_action_type_view_spec.rb FIX: Missing/incorrect flag reason in account_deleted emails (#34955) 2025-11-17 15:22:22 +00:00
post_creator_spec.rb SECURITY: Replying to a whisper lets non-whisperers create staff-only whisper posts [backport 2026.1] 2026-05-19 00:26:55 +01:00
post_destroyer_spec.rb FIX: reply_count and post_replies for a restored post (#37232) 2026-01-22 14:42:28 -03:00
post_jobs_enqueuer_spec.rb DEV: Update the rubocop-discourse gem 2023-06-26 11:41:52 +02:00
post_localization_creator_spec.rb FIX: Also check if user can see post or topic prior to letting them localize it (#36749) 2025-12-18 02:12:58 +08:00
post_localization_destroyer_spec.rb FIX: Also check if user can see post or topic prior to letting them localize it (#36749) 2025-12-18 02:12:58 +08:00
post_localization_updater_spec.rb FIX: Also check if user can see post or topic prior to letting them localize it (#36749) 2025-12-18 02:12:58 +08:00
post_locker_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
post_merger_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
post_revisor_spec.rb SECURITY: prevent regular users from promoting topics to banners 2026-02-26 12:24:37 +00:00
presence_channel_spec.rb DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
pretty_text_spec.rb SECURITY: Disallow URL-encoded path traversal in iframe URLs 2026-03-19 15:46:24 +00:00
promotion_spec.rb FIX: recalculate respects default invitee trust level (#32393) 2025-04-23 09:49:44 +08:00
quote_comparer_spec.rb DEV: Correct Style/RedundantReturn rubocop issues (#23052) 2023-08-10 02:03:38 +02:00
quote_rewriter_spec.rb UX: Remove loading="lazy" from avatars for improved UX (#30897) 2025-01-21 14:06:45 +00:00
rate_limiter_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
read_only_mixin_spec.rb FIX: improve "read only" modes (#33521) 2025-07-10 09:08:00 +02:00
retrieve_title_spec.rb FIX: Don't error out when trying to retrieve title and URL won't encode (#24660) 2023-12-01 15:03:06 +08:00
route_format_spec.rb SECURITY: block cross-site backup traversal in multisite local storage [backport 2026.1] 2026-05-19 00:26:55 +01:00
rtl_spec.rb
s3_cors_rulesets_spec.rb
s3_helper_spec.rb DEV: Bump aws-sdk-core in prep for aws-sdk-mediaconvert (#33250) 2025-06-20 16:41:01 -06:00
s3_inventory_multisite_spec.rb FIX: S3Inventory#backfill_etags_and_list_missing need to unescape key (#30787) 2025-01-15 14:52:49 +08:00
s3_inventory_spec.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
schema_settings_object_validator_spec.rb DEV: Add datetime type for site settings / object settings (#36849) 2025-12-30 10:52:30 -06:00
score_calculator_spec.rb
scss_checker_spec.rb DEV: Compile 'common' CSS into own assets (#31416) 2025-05-01 10:44:49 +01:00
search_spec.rb SECURITY: Apply category tag visibility to full-text search [backport 2026.1] (#41673) 2026-07-13 15:16:49 -03:00
server_session_spec.rb DEV: Allow ServerSession to store arbitrary data (#34919) 2025-09-26 10:35:28 +02:00
service_spec.rb DEV: Allow contracts to inherit from another class (#35599) 2025-10-30 10:05:36 +01:00
shrink_uploaded_image_spec.rb DEV: Move min_trust_to_post_embedded_media to group setting (#25238) 2024-01-25 09:50:59 +10:00
sidebar_section_links_updater_spec.rb DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
sidekiq_long_running_job_logger_spec.rb DEV: Upgrade Sidekiq to v7.3.9 2025-03-10 15:02:48 +01:00
signal_trap_logger_spec.rb DEV: Move spec file to right folder (#27449) 2024-06-13 06:38:03 +08:00
site_icon_manager_spec.rb FIX: Handle missing sketch logo during backup restore (#36541) 2025-12-08 19:30:53 +01:00
site_setting_extension_multisite_spec.rb
site_setting_extension_spec.rb DEV: Add datetime type for site settings / object settings (#36849) 2025-12-30 10:52:30 -06:00
slug_spec.rb
spam_handler_spec.rb DEV: Remove full group refreshes from tests (#25414) 2024-01-25 14:28:26 +08:00
statistics_spec.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
suggested_topics_builder_spec.rb DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
system_message_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
system_themes_manager_spec.rb DEV: Fix broken SystemThemesManager spec (#37335) 2026-01-28 11:29:42 +10:00
tag_localization_creator_spec.rb SECURITY: Unsanitized TagLocalization Descriptions [backport 2026.1] (#41562) 2026-07-15 08:49:44 -05:00
tag_localization_destroyer_spec.rb FEATURE: Introduce tag localizations with API, without UI yet (#36754) 2025-12-18 18:25:58 +08:00
tag_localization_updater_spec.rb FEATURE: Introduce tag localizations with API, without UI yet (#36754) 2025-12-18 18:25:58 +08:00
text_cleaner_spec.rb
text_sentinel_spec.rb FIX: Allow all caps within CJK text (#28018) 2024-07-22 17:35:52 +02:00
theme_flag_modifier_spec.rb
theme_javascript_compiler_spec.rb DEV: Update browser feature-detection and remove Safari 15 workaround (#34419) 2025-08-19 18:16:24 +01:00
theme_screenshots_handler_spec.rb FIX: ignore SiteSetting.max_image_size_kb for theme screenshots (#33215) 2025-06-17 08:58:37 +08:00
theme_settings_manager_spec.rb DEV: Refactor subclasses in ThemeSettingsManager to individual files (#25605) 2024-02-08 12:59:52 +08:00
theme_settings_parser_spec.rb FEATURE: system themes (#32681) 2025-06-13 10:36:31 +08:00
theme_settings_validator_spec.rb DEV: Correctly pluralize error messages (#26469) 2024-04-04 15:02:09 +02:00
theme_site_setting_resolver_spec.rb FEATURE: Themeable site settings (#32233) 2025-07-16 11:00:21 +10:00
timeline_lookup_spec.rb
tiny_japanese_segmenter_spec.rb
topic_creator_spec.rb FIX: Also update topic locale on creation (#33544) 2025-07-10 00:33:20 +08:00
topic_localization_creator_spec.rb FIX: Update topic excerpts when the first post is localized (#36885) 2025-12-29 23:33:39 +08:00
topic_localization_destroyer_spec.rb FIX: Also check if user can see post or topic prior to letting them localize it (#36749) 2025-12-18 02:12:58 +08:00
topic_localization_updater_spec.rb FIX: Also check if user can see post or topic prior to letting them localize it (#36749) 2025-12-18 02:12:58 +08:00
topic_publisher_spec.rb DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
topic_query_spec.rb DEV: Deprecate the assignment of nil to site settings (#36093) 2025-12-01 15:04:23 +08:00
topic_retriever_spec.rb FEATURE: Update topic/comment embedding parameters (#20181) 2023-02-28 14:31:59 +02:00
topic_upload_security_manager_spec.rb DEV: Update the rubocop-discourse gem 2023-06-26 11:41:52 +02:00
topic_view_spec.rb FIX: Don’t apply callbacks from disabled plugins (#35630) 2025-10-30 10:04:17 +01:00
topics_bulk_action_spec.rb FIX: silent option not working for bulk category moves via PostRevisor (#36626) 2025-12-11 15:14:15 +01:00
topics_filter_spec.rb FEATURE: allow filtering of tag groups with special chars (#37049) 2026-01-13 11:53:08 +11:00
trashable_spec.rb DEV: Added .only_deleted scope in the Trashable module (#20196) 2023-02-07 15:28:59 -03:00
truncate_logs_formatter_spec.rb SECURITY: Add a default limit as to when logs should be truncated 2023-10-16 10:34:38 -04:00
trust_level_spec.rb
twitter_api_spec.rb Revert "DEV: Replace Rinku native gem with PrettyText" (#31692) 2025-03-07 12:01:22 +10:00
unread_spec.rb
upcoming_changes_spec.rb UX: Allow plugins to define upcoming change images (#37320) 2026-01-27 17:44:11 +10:00
upload_creator_spec.rb FEATURE: Support non-image file uploads in site settings (#37005) 2026-01-19 22:37:38 +01:00
upload_markdown_spec.rb
upload_recovery_spec.rb DEV: Add setting to tag s3 objects enabling tag based access control policies (#32988) 2025-06-16 13:26:18 +08:00
upload_security_spec.rb DEV: Fix various spec linting issues (#24672) 2023-12-04 13:45:19 +01:00
url_helper_spec.rb DEV: Add isValidUrl helper function to theme migrations (#26817) 2024-04-30 16:45:07 +08:00
user_comm_screener_spec.rb FIX: likes are not visible when rejecting PMs (#35753) 2025-11-03 16:23:32 +11:00
user_lookup_spec.rb
user_name_suggester_spec.rb FIX: Leave username blank during OAuth signup when no valid suggestion exists (#36830) 2026-01-08 11:02:35 +01:00
version_spec.rb SECURITY: Add limits for themes and theme assets 2023-09-12 15:31:31 -03:00
work_queue_spec.rb PERF: Don't allow a single user to monopolize the defer queue (#25593) 2024-02-07 13:47:50 -06:00