search and ai stabilization work, localization stablized.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using StellaOps.Evidence.Core;
|
||||
using StellaOps.Evidence.Persistence.EfCore.Models;
|
||||
using System.Text.Json;
|
||||
using static StellaOps.Localization.T;
|
||||
|
||||
namespace StellaOps.Evidence.Persistence.Postgres;
|
||||
|
||||
@@ -9,7 +10,7 @@ public sealed partial class PostgresEvidenceStore
|
||||
private static IEvidence MapFromEntity(EvidenceRecordEntity entity)
|
||||
{
|
||||
var provenance = JsonSerializer.Deserialize<EvidenceProvenance>(entity.Provenance, _jsonOptions)
|
||||
?? throw new InvalidOperationException($"Failed to deserialize provenance for evidence {entity.EvidenceId}");
|
||||
?? throw new InvalidOperationException(_t("common.evidence.provenance_deserialize_failed", entity.EvidenceId));
|
||||
|
||||
var signatures = JsonSerializer.Deserialize<List<EvidenceSignature>>(entity.Signatures, _jsonOptions)
|
||||
?? [];
|
||||
|
||||
@@ -32,5 +32,6 @@
|
||||
<ProjectReference Include="..\StellaOps.Evidence.Core\StellaOps.Evidence.Core.csproj" />
|
||||
<ProjectReference Include="..\StellaOps.Infrastructure.Postgres\StellaOps.Infrastructure.Postgres.csproj" />
|
||||
<ProjectReference Include="..\StellaOps.Infrastructure.EfCore\StellaOps.Infrastructure.EfCore.csproj" />
|
||||
<ProjectReference Include="..\StellaOps.Localization\StellaOps.Localization.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user