discourse/app/services/site_setting/policy
Ted Johansson 12fdb69279
DEV: Allow specifying dependent settings in configuration (#36061)
Currently, when updating several settings in bulk, they are updated in a non-deterministic order. This means that if Setting B depends on Setting A being enabled, and we try to enable B and A together, there's a chance that fails. This is why we need to remove the up-front values_are_valid policy from the service as well.

This change first sorts the settings topologically, i.e. in order of dependency, so if C depends on B depends on A, then we will update them in order [A, B, C].
2025-11-27 13:23:43 +08:00
..
settings_are_configurable.rb DEV: Move backfill into SiteSetting::Update service (#32037) 2025-03-28 12:01:56 +08:00
settings_are_not_deprecated.rb DEV: Move backfill into SiteSetting::Update service (#32037) 2025-03-28 12:01:56 +08:00
settings_are_unshadowed_globally.rb DEV: Move backfill into SiteSetting::Update service (#32037) 2025-03-28 12:01:56 +08:00
settings_are_visible.rb DEV: Move backfill into SiteSetting::Update service (#32037) 2025-03-28 12:01:56 +08:00