An operator can choose where Ninlil keeps its data directory #219

Open
opened 2026-10-31 12:42:28 -04:00 by claude · 0 comments
Owner
  • Draft: PN-43
  • Priority: medium (an installer needs this to put data in ProgramData)
  • Agent: coder
  • Depends on: none
  • Decisions: none

Why

The data directory is fixed to the folder next to the executable (Program.cs:169).

What changes

src/dotnet/src/Ninlil.Web/Program.cs:169: read the data directory from a setting before it is used (lines 169-239, 427, 436). The default stays <exe folder>/data. Register the setting as a standalone configuration path in OptionsEnvironmentVariableRegistry.cs, update ENVIRONMENT.md (row and totals), and update the README.md "The data directory" table (README.md:766-776).

Acceptance

  • This test fails first: in src/dotnet/tests/Ninlil.Web.Tests, a second host (factory.CreateSecondHost) with the setting pointing to a temp folder writes cluster-node-id.txt there.
  • The registry test passes.
  • Gate: dotnet test src/dotnet/tests/Ninlil.Web.Tests.

Source

Program.cs:169; README.md:775.

- **Draft:** PN-43 - **Priority:** medium (an installer needs this to put data in ProgramData) - **Agent:** coder - **Depends on:** none - **Decisions:** none ### Why The data directory is fixed to the folder next to the executable (`Program.cs:169`). ### What changes `src/dotnet/src/Ninlil.Web/Program.cs:169`: read the data directory from a setting before it is used (lines 169-239, 427, 436). The default stays `<exe folder>/data`. Register the setting as a standalone configuration path in `OptionsEnvironmentVariableRegistry.cs`, update ENVIRONMENT.md (row and totals), and update the README.md "The data directory" table (README.md:766-776). ### Acceptance - [ ] This test fails first: in `src/dotnet/tests/Ninlil.Web.Tests`, a second host (`factory.CreateSecondHost`) with the setting pointing to a temp folder writes `cluster-node-id.txt` there. - [ ] The registry test passes. - [ ] Gate: `dotnet test src/dotnet/tests/Ninlil.Web.Tests`. ### Source `Program.cs:169`; README.md:775.
Sign in to join this conversation.
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.

Reference
lantea-one/ninlil#219
No description provided.