fix: Release build breakage + Dapper mapping bugs in VS-03/VS-04/Phase3-K #30
Reference in New Issue
Block a user
Delete Branch "fix/dapper-underscore-mapping-and-build"
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?
Summary
KArtSell.Host.csproj: the FrontendFiles glob was evaluated at project-load time, beforepnpm buildran, sodotnet build -c Releasecopied stale/missing Vite-hashed filenames on every build. Fixed by moving the glob inside the target, after the build step.DateOnlyparams inApprovalSql(VS-03),inet/jsonbcolumn reads inAuditSql(VS-04),GdprRetention.RetentionEndsAttypedDateTimeagainst aDATEcolumn, andTradeSql.UpdateTradeStatusAsyncsilently droppingkis_order_id/executed_quantity/unit_price/commission/net_proceeds/timestamps on every call (Phase 3 K).[ModuleInitializer]inKArtSell.BuildingBlocksthat only fires once that assembly is actually loaded.TradeSql/AuditSqldon't reliably touch a BuildingBlocks type at runtime, so depending on unrelated test/host startup order, every snake_case column could silently map to null. Replaced with one[ModuleInitializer]per module assembly (KArtSell.Modules.ModelOperations,KArtSell.Modules.SignalEngine), verified fixed by running the affected test classes in full isolation, not just as part of the full suite.model_operations.models,sell_decisions) inApprovalWorkflowTests/TradeExecutionTests, corrected aSellPriorityRankertest input against the approvedVS-10-SLICE_SPECage-boost threshold, fixed a GDPR redaction assertion that calledToString()on aDictionaryinstead of inspecting its values.Test plan
dotnet build KArtSell.sln -c Releasesucceeds consistently (previously failed non-deterministically on stale asset filenames)dotnet testunit + architecture tests: 85/85 PASSdotnet testintegration tests: 240/256 PASS, 4 skipped; remaining 12 failures arekartsellDB user not owningkartsell_migration_test(infra/DBA issue, unrelated to this PR - see notes below)ApprovalWorkflow,Compliance,SellDecision,TradeExecution,PortfolioReconciliationtest classes re-verified passing when run in isolation (--filter), not just as part of the full suite, since that's what originally hid the race conditionKnown unrelated issue (not fixed here)
12
DbUpMigrationTestsfailures:kartsellDB user isn't the owner ofkartsell_migration_test, so DbUp's fresh-database rehearsal can'tDROP/CREATEit. Needs a DBA grant. Documented indocs/CURRENT/CATALOGS/WBS_PROGRESS_TRACKER.csv(AEG-X-004 row) in the companion docs PR.🤖 Generated with Claude Code