0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:23:14 +08:00
discourse/docs
Martin Brennan 47797c6247
DEV: Apply claude review fixes to Apply service
DesignWizard::Apply set site settings itself via set_and_log, then hand-rolled
an after_rollback callback to put the in-process SiteSetting cache back if a
later write blew up. That compensation only ever fired if a third-party
:site_setting_changed subscriber raised — already an unhandled 500 — and half
of it was dead code, since after_rollback runs once the site_settings rows have
already been reverted. It also forced transaction(requires_new: true), which
meant a savepoint whose only purpose was to make the callback fire under
transactional fixtures.

Delegate to SiteSetting::Update instead. It brings type coercion, dependency
ordering, and the deprecation/shadowing/visibility/configurability policies —
notably fixing a case where the wizard reported success but silently did
nothing when default_theme_id was shadowed by a GlobalSetting. It opens its own
transaction, so the step moves out of ours, which now wraps only the theme and
palette writes. default_theme_id is hidden, so it's passed via
allow_changing_hidden.

Also extracts the palette selectability writes into a dedicated action, and
reverts the transaction option plumbing added to the service base, which no
longer has a caller.
2026-08-07 11:23:44 +10:00
..
developer-guides DEV: Apply claude review fixes to Apply service 2026-08-07 11:23:44 +10:00
ADMIN-QUICK-START-GUIDE.md fix emojis (#34411) 2025-08-19 11:25:20 +02:00
AUTHORS.md
code-of-conduct.md
INSTALL-cloud.md DOCS: Mention updated plan names in INSTALL-cloud.md (#41618) 2026-07-14 16:48:46 +05:30
INSTALL-email.md DOCS: Update Brevo's SMTP config (#38770) 2026-03-24 09:09:07 +01:00
INSTALL.md DOCS: amend documented required PostgreSQL version (#37931) 2026-02-24 17:20:04 +11:00
PLUGINS.md UX: update category references in documentation to match meta changes (#41263) 2026-06-29 11:33:49 -04:00
SECURITY.md FEATURE: Increase pbkdf2 iterations to 600k (#20981) 2023-04-11 11:56:20 +01:00
TESTING.md