Settings saved to a custom runtime configuration file reach the live settings without a restart #320

Merged
claude merged 2 commits from feature/314-custom-settings-file-reload into develop 2026-11-05 16:26:22 -05:00
Owner

A custom runtime configuration file (NINLIL_DNS_SERVER_RUNTIME_SETTINGS_CONFIGURATION_FILE_PATH pointing anywhere other than appsettings.json) is now a reload-on-change JSON configuration source, inserted just before the NINLIL_* variables. Its saved values now apply at startup, and a saved change applies live where the settings page says so. Until now the pages wrote to that file but nothing read it back.

  • Program.cs adds the source through RuntimeConfigurationFileSource.AddIfMissing. It is skipped when the path is the default appsettings.json.
  • The test factory removes its own temp-file source, so settings PATCHes in the shared host no longer leak into later tests.
  • README and CHANGELOG describe the new precedence and the upgrade effect.

Verified: build has 0 warnings, csharpier is clean, and Ninlil.Web.Tests passes (2126 tests, without the Docker-only ones). The two host-level tests fail on develop with assertion failures.

Closes #314

🤖 Generated with Claude Code

https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK

A custom runtime configuration file (`NINLIL_DNS_SERVER_RUNTIME_SETTINGS_CONFIGURATION_FILE_PATH` pointing anywhere other than `appsettings.json`) is now a reload-on-change JSON configuration source, inserted just before the `NINLIL_*` variables. Its saved values now apply at startup, and a saved change applies live where the settings page says so. Until now the pages wrote to that file but nothing read it back. - `Program.cs` adds the source through `RuntimeConfigurationFileSource.AddIfMissing`. It is skipped when the path is the default `appsettings.json`. - The test factory removes its own temp-file source, so settings PATCHes in the shared host no longer leak into later tests. - README and CHANGELOG describe the new precedence and the upgrade effect. Verified: build has 0 warnings, csharpier is clean, and `Ninlil.Web.Tests` passes (2126 tests, without the Docker-only ones). The two host-level tests fail on develop with assertion failures. Closes #314 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Closes #314

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
The changelog tells operators that a custom runtime configuration file now applies its saved settings
Some checks failed
Build / Pack and Push NuGet Packages (dhcp) (push) Has been skipped
Build / Pack and Push NuGet Packages (dns-core) (push) Has been skipped
Build / Stage Draft Release (pull_request) Successful in -4s
Build / Pack and Push NuGet Packages (dns-server) (push) Has been skipped
Build / Build Binary (linux-amd64) (push) Has been skipped
Build / Build Binary (linux-arm64) (push) Has been skipped
Build / Build Binary (macos-amd64) (push) Has been skipped
Build / Build Binary (windows-amd64) (push) Has been skipped
Build / Build Binary (macos-arm64) (push) Has been skipped
Build / Smoke Test the Windows Binary (push) Has been skipped
Build / Pack and Push NuGet Packages (common) (pull_request) Successful in 42s
Build / Pack and Push NuGet Packages (dhcp) (pull_request) Successful in -1m13s
Build / Build Arch Linux Packages (push) Has been skipped
Build / Build and Test Deb and RPM Packages (push) Has been skipped
Build / Build and Push Image (push) Has been skipped
Build / Publish Release (push) Has been skipped
Build / Pipeline (push) Failing after 0s
Build / Pack and Push NuGet Packages (dns-core) (pull_request) Successful in -57s
Build / Pack and Push NuGet Packages (dns-server) (pull_request) Successful in -53s
Build / Build Binary (linux-amd64) (pull_request) Successful in -20s
Build / Build Binary (macos-amd64) (pull_request) Successful in 4m44s
Build / Build Binary (macos-arm64) (pull_request) Successful in 5m0s
Build / Build Binary (linux-arm64) (pull_request) Successful in 9m24s
Build / Build Binary (windows-amd64) (pull_request) Successful in 9m5s
Build / Build and Push Image (pull_request) Successful in 14s
Build / Smoke Test the Windows Binary (pull_request) Successful in 19s
Build / Build Arch Linux Packages (pull_request) Successful in 34s
Build / Build and Test Deb and RPM Packages (pull_request) Successful in 3m15s
Build / Publish Release (pull_request) Successful in -2m34s
Build / Pipeline (pull_request) Successful in 0s
512f519b4a
Refs #314

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
claude merged commit e85e166b8b into develop 2026-11-05 16:26:22 -05:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil!320
No description provided.