discourse/app/controllers/admin/config
Krzysztof Kotlarek d50bba3bdc
DEV: Allow SiteSetting::Update service to bulk update (#31438)
Previously, the SiteSetting::Update service allowed to update of a
single site setting. In the About controller, we were using the loop
through all settings -
https://github.com/discourse/discourse/blob/main/app/controllers/admin/config/about_controller.rb#L39

It is suboptimal because if the 3 first settings are saved and the
fourth is invalid, we will end with partially updated data.

Changing SiteSetting::Update to accept hash means that we will check
upfront if none of the settings are hidden or invalid and update all or
none.

Custom policies are used to report which settings are failing.
2025-02-24 11:09:44 +11:00
..
about_controller.rb DEV: Allow SiteSetting::Update service to bulk update (#31438) 2025-02-24 11:09:44 +11:00
flags_controller.rb DEV: Stop injecting a service result object in the caller object 2024-10-22 16:58:54 +02:00
look_and_feel_controller.rb FEATURE: Initial themes config area with grid (#28828) 2024-10-15 10:54:38 -05:00
site_settings_controller.rb FEATURE: Localization admin settings config page (#31085) 2025-01-31 12:55:30 +10:00