discourse/app
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
..
assets Build(deps-dev): Bump the embroider group with 3 updates (#31463) 2025-02-23 23:59:49 +01:00
controllers DEV: Allow SiteSetting::Update service to bulk update (#31438) 2025-02-24 11:09:44 +11:00
helpers FEATURE: Dark/light mode selector (#31086) 2025-02-07 03:28:34 +03:00
jobs DEV: Rescue from each step of EnsureDbConsistency (#31313) 2025-02-13 12:07:04 +02:00
mailers
models DEV: Add a new type_source field to the Reviewable model. (#31325) 2025-02-20 09:09:47 +11:00
serializers DEV: implements register_modifier(:serialize_topic_op_likes_data) (#31376) 2025-02-21 22:43:49 +05:30
services DEV: Allow SiteSetting::Update service to bulk update (#31438) 2025-02-24 11:09:44 +11:00
views FEATURE: Dark/light mode selector (#31086) 2025-02-07 03:28:34 +03:00