2ccf74c410
- KArtSell.Host.csproj: FrontendFiles glob was evaluated at project-load time, before pnpm build ran, so it copied stale/missing Vite-hashed filenames every Release build. Move the glob inside the target, after the build Exec. - ApprovalSql/AuditSql/TradeSql: fix live-DB integration failures never caught by unit tests: DateOnly and inet columns can't be bound/read directly through Dapper without conversion; kis_response (jsonb) read as JsonElement threw InvalidCastException; GdprRetention.RetentionEndsAt was typed DateTime against a DATE column. - TradeSql: UpdateTradeStatusAsync only ever persisted status/kis_response /error_message, silently dropping kis_order_id, executed_quantity, unit_price, total_amount, commission, net_proceeds and the execution/ settlement timestamps on every call. Changed it to take the Trade aggregate so the full state transition persists. - TradeSql: add a static ctor setting Dapper.DefaultTypeMap. MatchNamesWithUnderscores = true. The repo's [ModuleInitializer] in KArtSell.BuildingBlocks only fires once that assembly is actually loaded; TradeSql/Trade never reference a BuildingBlocks type, so under test isolation (or any host that queries a trade before touching BuildingBlocks) every snake_case column silently mapped to null/default. - Test fixes: seed the FK prerequisites (model_operations.models, sell_decisions) that ApprovalWorkflowTests/TradeExecutionTests were missing, correct a SellPriorityRanker test input to match the approved VS-10-SLICE_SPEC age-boost threshold, and fix a GDPR redaction assertion that called ToString() on a Dictionary instead of inspecting its values. 12 DbUpMigrationTests failures remain and are unrelated to this fix: the kartsell DB user isn't the owner of kartsell_migration_test, so DbUp's fresh-database rehearsal can't DROP/CREATE it. Needs a DBA grant. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
40 lines
2.3 KiB
XML
40 lines
2.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
<PropertyGroup>
|
|
<UserSecretsId>bab7e095-067e-4797-b2ab-df4c1f8b447d</UserSecretsId>
|
|
</PropertyGroup>
|
|
|
|
<!-- Frontend Build Target: Automatically build Vite and copy to wwwroot (dev only) -->
|
|
<!-- FrontendFiles must be globbed *after* pnpm build, inside the target: Vite emits
|
|
content-hashed filenames each build, and a top-level ItemGroup is evaluated once
|
|
at project load (before pnpm build runs), so it would copy stale/missing filenames. -->
|
|
<Target Name="BuildFrontend" BeforeTargets="Build" Condition="'$(CI)' != 'true' AND Exists('$(ProjectDir)../../frontend/package.json')">
|
|
<Exec Command="pnpm install --frozen-lockfile" WorkingDirectory="$(ProjectDir)../../frontend" ContinueOnError="false" />
|
|
<Exec Command="pnpm build" WorkingDirectory="$(ProjectDir)../../frontend" ContinueOnError="false" />
|
|
<ItemGroup>
|
|
<FrontendFiles Include="../../frontend/dist/**/*" />
|
|
</ItemGroup>
|
|
<Copy SourceFiles="@(FrontendFiles)" DestinationFolder="$(ProjectDir)wwwroot/%(RecursiveDir)" />
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="../KArtSell.BuildingBlocks/KArtSell.BuildingBlocks.csproj" />
|
|
<ProjectReference Include="../KArtSell.Modules.SignalEngine/KArtSell.Modules.SignalEngine.csproj" />
|
|
<ProjectReference Include="../KArtSell.Modules.ModelOperations/KArtSell.Modules.ModelOperations.csproj" />
|
|
<PackageReference Include="FastEndpoints" />
|
|
<PackageReference Include="Hangfire.AspNetCore" />
|
|
<PackageReference Include="Hangfire.PostgreSql" />
|
|
<PackageReference Include="Newtonsoft.Json" VersionOverride="13.0.3" />
|
|
<PackageReference Include="Npgsql" />
|
|
<PackageReference Include="Polly" />
|
|
<PackageReference Include="Serilog.AspNetCore" />
|
|
<PackageReference Include="Serilog.Settings.Configuration" />
|
|
<PackageReference Include="Serilog.Sinks.Console" />
|
|
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
|
|
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" />
|
|
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" />
|
|
<PackageReference Include="OpenTelemetry.Instrumentation.Http" />
|
|
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" />
|
|
<PackageReference Include="Swashbuckle.AspNetCore" />
|
|
</ItemGroup>
|
|
</Project>
|