discourse/spec/lib
Gabriel Grubba 75db3d669d
FEATURE: add bootstrap first admin job (#39851)
On https://github.com/discourse/discourse/pull/37694, we ended up
removing one of the nice things of the bootstrap mode, the auto
moderation for the first admin.

I've brought back the job that used to run for the bootstrap mode –
maybe we could just run this code in the `default_current_user_provider`

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-08 16:16:18 -03:00
..
active_support_type_extensions DEV: Add symbol to ActiveModel attribute types (#36420) 2025-12-03 10:57:44 +01:00
auth FEATURE: add bootstrap first admin job (#39851) 2026-05-08 16:16:18 -03:00
backup_restore DEV: Rename Backuper to Creator 2026-01-22 18:46:02 +00:00
common_passwords DEV: Fix various spec linting issues (#24672) 2023-12-04 13:45:19 +01:00
compression FEATURE: extract text from document uploads for LLM prompts (#39634) 2026-05-05 08:16:23 +10:00
concern FEATURE: Allow passkeys to satisfy 2FA on /session/2fa (#39674) 2026-05-06 14:47:01 -03: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 FEATURE: extract text from document uploads for LLM prompts (#39634) 2026-05-05 08:16:23 +10:00
discourse_webauthn FEATURE: Allow passkeys to satisfy 2FA on /session/2fa (#39674) 2026-05-06 14:47:01 -03:00
email FIX: User profiles are oneboxed badly in emails (#38403) 2026-03-10 16:18:54 +08:00
file_store FIX: Truncate long filenames in S3 Content-Disposition header (#39170) 2026-04-13 10:14:06 +02:00
final_destination SECURITY: Add FastImage SSRF safe freedom patch 2024-07-03 20:49:15 +08:00
freedom_patches DEV: Monkey patch a from_described_class helper in RSpec::Mocks (#34021) 2025-08-05 12:03:42 +10:00
guardian FIX: Moderators can receive another user's private bookmark content (#39777) 2026-05-06 16:35:08 +10:00
highlight_js
i18n FIX: incorrect Breton plural rule logic operator (#37545) 2026-02-05 18:04:59 +11:00
import
middleware FIX: Skip crawler localization for direct upload requests (#39849) 2026-05-08 10:53:35 -03:00
migration FIX: Add table_schema filter to mark_readonly default check (#37037) 2026-01-10 21:57:31 +01:00
nested_replies FEATURE: Notification/tracking changes for nested replies (#39750) 2026-05-07 12:33:56 -05:00
onebox DEV: Don't forward cookies on onebox redirects (#39544) 2026-04-27 12:36:29 +02:00
plugin DEV: Improve Plugin::Instance#humanized_name (#39626) 2026-04-29 11:38:44 +02:00
pretty_text DEV: add tag hashtag data source style type (#33289) 2025-06-20 18:08:47 +04:00
rate_limiter
release_utils DEV: Bump version automatically when cutting release branches (#38504) 2026-03-12 12:05:28 +01:00
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: Move 4 upcoming changes to stable (#39066) 2026-04-07 10:05:49 +10:00
service DEV: Add each step to service framework for collection iteration (#38759) 2026-04-03 09:44:03 +02: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: Allow upcoming changes to control site setting defaults (#38815) 2026-04-08 13:05:44 +10:00
stylesheet DEV: move mobile select-kit CSS to common files (#39055) 2026-04-02 13:46:06 -04:00
svg_sprite FIX: Return file paths from FileStore download methods (#37760) 2026-02-17 11:56:50 +01: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 DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
turbo_tests/flaky DEV: Include exception details for each test in flaky tests report (#24892) 2023-12-14 11:11:11 +08:00
validators FIX: Fix ObjectsSettingValidator error message handling (#38336) 2026-03-09 14:50:17 -03: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: Add a spec for missing relative imports in AssetProcessor (#38831) 2026-03-24 17:52:29 +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: BookmarksBulkAction#delete passing integer to guardian instead of Bookmark object (#37871) 2026-02-17 15:14:46 +10:00
browser_detection_spec.rb
cache_spec.rb DEV: fix a large amount of typos (#37428) 2026-02-02 16:31:58 +11:00
canonical_url_spec.rb FIX: Self-canonicalize tl= translated pages (#39494) 2026-04-23 22:52:16 +08: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
composer_messages_finder_spec.rb FIX: Enforce Guardian checks in ComposerMessagesFinder (#38005) 2026-02-25 11:45:42 +08:00
content_buffer_spec.rb
content_localization_spec.rb FIX: User options take precedence over show-original anon cookie (#39520) 2026-04-25 00:44:20 +08:00
content_security_policy_spec.rb DEV: Remove CSP report collection endpoint and setting (#37903) 2026-02-19 08:51:32 -05:00
cooked_post_processor_spec.rb FEATURE: Add PR status icon to inline oneboxes (#39649) 2026-05-04 18:15:14 +02:00
crawler_detection_spec.rb DEV: move crawler ASN list to hidden site setting (#39480) 2026-04-23 12:34:06 +08:00
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 DEV: use classes to style hidden post history revision (#38159) 2026-03-03 09:58:03 -05:00
discourse_event_spec.rb FIX: Isolate DiscourseEvent handlers so one error doesn't skip the rest (#38485) 2026-03-11 15:54:16 +08:00
discourse_hub_spec.rb DEV: Optionally raise error on DiscourseHub calls (#39347) 2026-04-20 15:01:58 +01: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: Remove Unicorn web server in favor of Pitchfork (#39032) 2026-04-01 15:04:59 +02:00
discourse_tagging_spec.rb DEV: Respect one_per_topic from global tag groups when allow_global_tags is enabled (#38631) 2026-03-16 16:22:55 -05:00
discourse_updates_spec.rb DEV: Make enable_simplified_category_creation Permanent (#39739) 2026-05-06 12:21:50 +10:00
disk_cache_eviction_spec.rb PERF: extract shared DiskCacheEviction utility for disk caches (#37842) 2026-02-16 12:24:38 +01: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 FIX: add alternate email duplicate row (#37673) 2026-02-12 12:46:55 +04: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 FIX: GitUtils preventing boot (#37599) 2026-02-06 13:07:28 +00:00
global_path_spec.rb
group_lookup_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
group_manager_spec.rb PERF: Add Users to Group Improvements Pt. 2 (#38901) 2026-04-06 09:31:50 -05:00
guardian_spec.rb UX: Introduce anonymous and logged_in_users auto groups (#39516) 2026-05-06 10:35:52 +10: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: fix a large amount of typos (#37428) 2026-02-02 16:31:58 +11:00
http_language_parser_spec.rb FIX: Language parser matches with dashes or underscores (#31381) 2025-02-19 11:55:14 +08:00
ical_encoder_spec.rb FIX: Prevent HTML-encoding of special characters in ICS feeds (#39152) 2026-04-08 16:43:41 +02:00
image_sizer_spec.rb
inline_oneboxer_spec.rb DEV: move inline_data check for onbox to be after domain check (#39792) 2026-05-06 13:53:23 -03: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: Do not write localized fancy title to db when fancy_title is null (#37668) 2026-02-10 22:22:07 +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 FEATURE: Support group based category posting review modes (#38707) 2026-04-07 10:41:16 +08:00
new_post_result_spec.rb
onebox_spec.rb
oneboxer_spec.rb FIX: bypass source fetch for Reddit oneboxes (#39182) 2026-04-09 14:04:25 -03:00
onpdiff_spec.rb DEV: Add comparison budget to ONPDiff (#38063) 2026-02-25 14:25:03 -05:00
password_hasher_spec.rb
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:21:28 +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 PERF: Add Users to Group Pt. 1 (#38737) 2026-03-26 09:11:22 -05:00
post_destroyer_spec.rb FEATURE: Link staff action log entries to originating reviewable (#39519) 2026-04-30 09:15:45 +08: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 FEATURE: Allow editing a post's reply target from the composer (#39471) 2026-04-29 12:23:26 -03: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 FIX: Escape markdown characters in upload filenames (#39133) 2026-04-14 10:37:41 +02: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 FIX: Preserve display name in quotes when using the rich text editor (#38078) 2026-02-26 21:04:07 +01: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
rtl_spec.rb
s3_cors_rulesets_spec.rb
s3_helper_spec.rb FEATURE: Add opt-in IAM role assumption for S3 operations (#39174) 2026-04-15 04:29:50 +08: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 DEV: Fix search spec flakes (#39759) 2026-05-05 19:34:53 +02: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 FIX: Return file paths from FileStore download methods (#37760) 2026-02-17 11:56:50 +01: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 DEV: Fix a site_icon_manager spec flake (#39497) 2026-04-23 20:48:43 +02:00
site_setting_extension_multisite_spec.rb
site_setting_extension_spec.rb UX: Introduce anonymous and logged_in_users auto groups (#39516) 2026-05-06 10:35:52 +10: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 FIX: allow out-of-sequence theme settings migrations on re-sync (#38705) 2026-03-20 11:16:22 +10:00
tag_localization_creator_spec.rb FEATURE: Introduce tag localizations with API, without UI yet (#36754) 2025-12-18 18:25:58 +08: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 DEV: fix a large amount of typos (#37428) 2026-02-02 16:31:58 +11:00
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: Introduce deprecation for .js.es6 file extension (#38756) 2026-03-20 16:26:22 +00: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 FEATURE: Notification/tracking changes for nested replies (#39750) 2026-05-07 12:33:56 -05: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 FIX: Topics with multiple watched tags appearing fewer times in lists (#39683) 2026-05-01 14:22:22 +08:00
topic_retriever_spec.rb
topic_upload_security_manager_spec.rb DEV: Update the rubocop-discourse gem 2023-06-26 11:41:52 +02:00
topic_view_spec.rb DEV: Various changes to support nested posts experiment (#37785) 2026-03-09 15:47:03 -05:00
topics_bulk_action_spec.rb UX: Consolidate bulk tag actions into a single "Manage tags" modal (#39340) 2026-04-30 09:25:17 +08:00
topics_filter_spec.rb FEATURE: Filter topics by bookmark creation date (#38662) 2026-03-23 09:44:59 -03:00
trashable_spec.rb
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 DEV: Fail fast on unknown upcoming change keys (#39800) 2026-05-07 10:50:12 +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 FIX: Escape markdown characters in upload filenames (#39133) 2026-04-14 10:37:41 +02:00
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: Improve error logging for external uploads and URL validation (#38910) 2026-03-27 11:21:31 +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_compatibility_spec.rb DEV: Add support for d-compat branches in plugins/themes (#37984) 2026-02-24 17:44:27 +01: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