Fix build and code structure improvements. New but essential UI functionality. CI improvements. Documentation improvements. AI module improvements.

This commit is contained in:
StellaOps Bot
2025-12-26 21:54:17 +02:00
parent 335ff7da16
commit c2b9cd8d1f
3717 changed files with 264714 additions and 48202 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using StellaOps.Concelier.Documents;
using StellaOps.Concelier.Storage;
using StellaOps.Concelier.Storage.Contracts;
namespace StellaOps.Concelier.Connector.Vndr.Oracle.Internal;
@@ -203,6 +204,15 @@ internal sealed record OracleFetchCacheEntry(string? Sha256, string? ETag, DateT
document.LastModified?.ToUniversalTime());
}
public static OracleFetchCacheEntry FromDocument(StorageDocument document)
{
ArgumentNullException.ThrowIfNull(document);
return new OracleFetchCacheEntry(
document.Sha256 ?? string.Empty,
document.Etag,
document.LastModified?.ToUniversalTime());
}
public bool Matches(DocumentRecord document)
{
ArgumentNullException.ThrowIfNull(document);
@@ -224,4 +234,26 @@ internal sealed record OracleFetchCacheEntry(string? Sha256, string? ETag, DateT
return false;
}
public bool Matches(StorageDocument document)
{
ArgumentNullException.ThrowIfNull(document);
if (!string.IsNullOrEmpty(Sha256) && !string.IsNullOrEmpty(document.Sha256))
{
return string.Equals(Sha256, document.Sha256, StringComparison.OrdinalIgnoreCase);
}
if (!string.IsNullOrEmpty(ETag) && !string.IsNullOrEmpty(document.Etag))
{
return string.Equals(ETag, document.Etag, StringComparison.Ordinal);
}
if (LastModified.HasValue && document.LastModified.HasValue)
{
return LastModified.Value.ToUniversalTime() == document.LastModified.Value.ToUniversalTime();
}
return false;
}
}

View File

@@ -13,8 +13,7 @@ using StellaOps.Concelier.Connector.Vndr.Oracle.Configuration;
using StellaOps.Concelier.Connector.Vndr.Oracle.Internal;
using StellaOps.Concelier.Storage;
using StellaOps.Concelier.Storage.Advisories;
using StellaOps.Concelier.Storage;
using StellaOps.Concelier.Storage;
using StellaOps.Concelier.Storage.Contracts;
using StellaOps.Concelier.Storage.PsirtFlags;
using StellaOps.Plugin;

View File

@@ -13,4 +13,4 @@
<ProjectReference Include="../StellaOps.Concelier.Connector.Common/StellaOps.Concelier.Connector.Common.csproj" />
<ProjectReference Include="../StellaOps.Concelier.Models/StellaOps.Concelier.Models.csproj" />
</ItemGroup>
</Project>
</Project>