audit work, fixed StellaOps.sln warnings/errors, fixed tests, sprints work, new advisories

This commit is contained in:
master
2026-01-07 18:49:59 +02:00
parent 04ec098046
commit 608a7f85c0
866 changed files with 56323 additions and 6231 deletions

View File

@@ -1,3 +1,4 @@
using System.Globalization;
using Microsoft.Extensions.Logging;
using StellaOps.Orchestrator.Core.Domain.Events;
@@ -432,7 +433,7 @@ public sealed class IncidentModeHooks : IIncidentModeHooks
{
["reason"] = state.ActivationReason ?? string.Empty,
["source"] = state.Source.ToString(),
["expires_at"] = state.ExpiresAt?.ToString("O") ?? string.Empty,
["expires_at"] = state.ExpiresAt?.ToString("O", CultureInfo.InvariantCulture) ?? string.Empty,
["sampling_rate_override"] = state.SamplingRateOverride.ToString(),
["retention_override_days"] = state.RetentionOverride.TotalDays.ToString(),
["debug_spans_enabled"] = state.DebugSpansEnabled.ToString()
@@ -482,7 +483,7 @@ public sealed class IncidentModeHooks : IIncidentModeHooks
{
["reason"] = reason ?? string.Empty,
["previous_source"] = previousState.Source.ToString(),
["activated_at"] = previousState.ActivatedAt?.ToString("O") ?? string.Empty,
["activated_at"] = previousState.ActivatedAt?.ToString("O", CultureInfo.InvariantCulture) ?? string.Empty,
["duration_seconds"] = duration.TotalSeconds.ToString()
},
PayloadHash: null,

View File

@@ -220,9 +220,9 @@ public sealed class LedgerExporter : ILedgerExporter
entry.SequenceNumber,
EscapeCsv(entry.ContentHash),
EscapeCsv(entry.PreviousEntryHash ?? ""),
EscapeCsv(entry.RunCreatedAt.ToString("O")),
EscapeCsv(entry.RunCompletedAt.ToString("O")),
EscapeCsv(entry.LedgerCreatedAt.ToString("O"))));
EscapeCsv(entry.RunCreatedAt.ToString("O", CultureInfo.InvariantCulture)),
EscapeCsv(entry.RunCompletedAt.ToString("O", CultureInfo.InvariantCulture)),
EscapeCsv(entry.LedgerCreatedAt.ToString("O", CultureInfo.InvariantCulture))));
}
return sb.ToString();

View File

@@ -51,9 +51,6 @@
<ItemGroup>
<PackageReference Include="xunit.v3" />
</ItemGroup>

View File

@@ -1,3 +1,4 @@
using System.Globalization;
using Microsoft.AspNetCore.Mvc;
using StellaOps.Orchestrator.Core.DeadLetter;
using StellaOps.Orchestrator.Core.Domain;
@@ -117,7 +118,7 @@ public static class DeadLetterEndpoints
var responses = entries.Select(DeadLetterEntryResponse.FromDomain).ToList();
var nextCursor = entries.Count >= effectiveLimit
? entries.Last().CreatedAt.ToString("O")
? entries.Last().CreatedAt.ToString("O", CultureInfo.InvariantCulture)
: null;
return Results.Ok(new DeadLetterListResponse(responses, nextCursor, totalCount));