From 166f07fa68ccd1b963185a41f4fa7d1d0f2d2929 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Mon, 20 Jul 2026 04:58:20 -0400 Subject: [PATCH] chore(localdb): adopt LocalDb 0.1.1 and drop the directory shim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LocalDb 0.1.1 creates the parent directory of LocalDb:Path itself, so the SiteLocalDbDirectory shim this repo carried through Phase 2 is deleted along with its call site. The gap was found here but was never ScadaBridge's alone — every LocalDb consumer had it — so the fix moved to the library. SiteLocalDbDirectoryTests is RETAINED and retargeted rather than deleted with the shim. It was already written against the site registration path, not the mechanism, so it needed only its Ensure() call removed: what a site node requires is that resolving ILocalDb not fail on a fresh machine, regardless of who provides that. Verified it still earns its place — pinned back to LocalDb 0.1.0 it fails inside SqliteLocalDb..ctor -> SqliteConnection.Open(), so it genuinely depends on the library behaviour and not on a coincidence. Also corrects the coverage-split note in StoreAndForwardStorageTests, which asserted that directory creation is "NOT LocalDb's" — true when written, wrong as of 0.1.1. Build 0 warnings; Host 330, StoreAndForward 130, LocalDb integration 20 pass. Claude-Session: https://claude.ai/code/session_01BL2Vu1ESDQ9SCN4gVKkdts --- Directory.Packages.props | 6 +- .../SiteLocalDbDirectory.cs | 59 ------------------- .../SiteServiceRegistration.cs | 18 +++--- .../SiteLocalDbDirectoryTests.cs | 18 +++--- .../StoreAndForwardStorageTests.cs | 12 ++-- 5 files changed, 26 insertions(+), 87 deletions(-) delete mode 100644 src/ZB.MOM.WW.ScadaBridge.Host/SiteLocalDbDirectory.cs diff --git a/Directory.Packages.props b/Directory.Packages.props index 68cbef4f..98404995 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -108,9 +108,9 @@ - - - + + +