0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/spec/requests/admin/config
Gabriel Grubba f9f1540323
FIX: Report effective welcome banner state for themes without overrides (#42451)
Previously, the `themes-with-setting` endpoint reported themes with no
`ThemeSiteSetting` override as disabled, even though a missing override
means the theme inherits the `enable_welcome_banner` default (true), so
saving unrelated fields on the admin welcome-banner form silently
persisted `false` and hid the banner for those themes.

This change falls back to `SiteSetting.defaults[:enable_welcome_banner]`
only when no override row exists — while still reporting explicit
`false` overrides correctly — matching how
`ThemeSiteSetting.generate_theme_map` and `ThemeSiteSettingResolver`
resolve effective values.

## Source

- Patch Triage: https://patch.discourse.org/patch-triage/1666

Co-authored-by: discourse-patch-triage
<272280883+discourse-patch-triage[bot]@users.noreply.github.com>
2026-08-10 11:48:18 -03:00
..
about_controller_spec.rb
category_management_controller_spec.rb FEATURE: Category management UI for admins (#41218) 2026-07-15 09:17:25 +10:00
color_palettes_controller_spec.rb
customize_controller_spec.rb
design_wizard_controller_spec.rb FEATURE: Design wizard (#42178) 2026-08-07 06:34:46 -05:00
discourse_id_controller_spec.rb
fonts_controller_spec.rb
logo_controller_spec.rb FEATURE: generated OpenGraph images for topics (#39194) 2026-06-26 10:37:10 -04:00
site_settings_controller_spec.rb
upcoming_changes_controller_spec.rb FIX: Restrict upcoming-changes toggle to registered upcoming-change settings (#42175) 2026-07-30 09:28:04 -05:00
welcome_banner_controller_spec.rb FIX: Report effective welcome banner state for themes without overrides (#42451) 2026-08-10 11:48:18 -03:00