The client registry can store discovered devices and an acknowledged flag, and older builds refuse such a database #144
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 project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
lantea-one/ninlil#144
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
A discovered device needs its own origin value. The operator also needs a way to say "I have seen this one" without rewriting how the row began.
DnsClientOriginEnumsays it records who created the row and is not an audit trail (DnsClientOriginEnum.cs:7-11).What changes
src/dotnet/src/Ninlil.Dns.Common/Enum/DnsClientOriginEnum.cs: addDiscovered = 2with[EnumMember(Value = "Discovered")]and a summary that namesClientPresenceFlushService.src/dotnet/src/Ninlil.Dns.Data.Abstractions/Entity/DnsClientEntity.cs: addbool IsAcknowledged(defaultfalse; the API setstrueon rows it creates).src/dotnet/src/Ninlil.Dns.Data.EntityFrameworkCore/Configuration/DnsClientConfiguration.cs: map the column. The origin column is already a string of at most 16 characters (DnsClientConfiguration.cs:26), soDiscoveredfits.AddDiscoveredClients, through the AGENTS.md loop plusfile-scoped-namespaces.sh. The data conversion setsIsAcknowledged = trueon existing rows. The migration also makes an older build refuse a database that may hold aDiscoveredvalue (RelationalStartupMigrator).MongoSchemaSteps.Known(src/dotnet/src/Ninlil.Dns.Data.MongoDb/Maintenance/MongoSchemaSteps.cs:47-53) plus a backfill forIsAcknowledged. An older build would misread the new enum value.DnsClientSearchCriteria(src/dotnet/src/Ninlil.Dns.Data.Abstractions/Repository/DnsClientSearchCriteria.cs:37): addOriginandIsAcknowledgedfilters, implemented database-side in the EF and Mongo repositories.Acceptance
src/dotnet/tests/Ninlil.Dns.Data.Integration.Testssaves aDiscovered, unacknowledged client and finds it throughSearchAsync/CountAsyncwithOrigin = Discovered, on every engine.dotnet build Ninlil.slnx -p:NinlilSkipAngularBuild=truereports 0 warnings.dotnet test src/dotnet/tests/Ninlil.Dns.Data.Integration.Tests,dotnet test src/dotnet/tests/Ninlil.Web.Tests.Ninlil.Dns.Commonis a shared library, so run the whole solution too.Source
audit-feature-parity.md§2A #10;DnsClientOriginEnum.cs:7-31.Owner decision 2026-10-31: "client registry, new origin" (Q-PN-2) and "acknowledged flag" (Q-PN-3).