Settings saved to a custom runtime configuration file reach the live settings without a restart #314
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil#314
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Settings cards save to the runtime configuration file (
RuntimeSettings:ConfigurationFilePath, default<content root>/appsettings.json,src/dotnet/src/Ninlil.Web/Program.cs:385-396). The default file is a configuration source that reloads on change, soIOptionsMonitor<T>.CurrentValuesees a saved value at once; the DHCP relay and RA protocol cards (#62), the RA card, the lease sweep interval and the appearance settings rely on that. When an operator pointsConfigurationFilePathat another file, nothing adds that file as a configuration source, so saved values reach the monitors only after a restart, and validations that combine a patched field with the current value of another use stale values.What changes
ConfigurationFilePathis not one of the files already loaded, add it as a JSON configuration source withreloadOnChange: true, after the default sources (so it wins as the saved settings do today after a restart). Check the order against how the file's values apply at startup now.RuntimeSettingssection says a custom file is watched like the default one.Acceptance
ConfigurationFilePath: a value saved through a settings PATCH is visible inIOptionsMonitor<T>.CurrentValuewithout a restart (fails on HEAD).Source
Verifier report on #62 (
feature/62-relay-settings-current-values).Ghost referenced this issue2026-11-05 14:26:54 -05:00
Ghost referenced this issue2026-11-05 16:25:08 -05:00
Ghost referenced this issue2026-11-05 16:25:32 -05:00
Ghost referenced this issue2026-11-05 16:42:52 -05:00
Ghost referenced this issue2026-11-06 01:41:02 -05:00