0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-14 13:58:53 +08:00
discourse/docs/developer-guides/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
..
01-introduction
02-development-environments Revert "DEV: Switch letter avatar generation, topic OG image generati… (#42265) 2026-08-03 13:50:43 +01:00
03-code-internals DEV: Apply claude review fixes to Apply service 2026-08-07 11:23:44 +10:00
04-plugins DEV: Use Meta image URLs in synced docs (#41670) 2026-07-13 18:27:36 -04:00
05-themes-components DEV: Add resolve_group_membership for theme object settings of group type (#41756) 2026-07-17 10:19:29 +10:00
06-general-guides DOCS: persona -> agent (#38617) 2026-03-16 16:38:55 +08:00
07-theme-developer-tutorial DEV: Docs for theme setting resolve_group_membership (#41537) 2026-07-08 17:02:38 +10:00
index.md