wip: doctor/cli/docs/api to vector db consolidation; api hardening for descriptions, tenant, and scopes; migrations and conversions of all DALs to EF v10
This commit is contained in:
@@ -214,10 +214,14 @@ public sealed class SourceTriggerDispatcherTests
|
||||
{
|
||||
public Dictionary<Guid, SbomSourceRun> Runs { get; } = new();
|
||||
|
||||
public Task<SbomSourceRun?> GetByIdAsync(Guid runId, CancellationToken ct = default)
|
||||
=> Task.FromResult(Runs.TryGetValue(runId, out var run) ? run : null);
|
||||
public Task<SbomSourceRun?> GetByIdAsync(string tenantId, Guid runId, CancellationToken ct = default)
|
||||
=> Task.FromResult(
|
||||
Runs.TryGetValue(runId, out var run) && string.Equals(run.TenantId, tenantId, StringComparison.Ordinal)
|
||||
? run
|
||||
: null);
|
||||
|
||||
public Task<PagedResponse<SbomSourceRun>> ListForSourceAsync(
|
||||
string tenantId,
|
||||
Guid sourceId,
|
||||
ListSourceRunsRequest request,
|
||||
CancellationToken ct = default)
|
||||
@@ -241,7 +245,7 @@ public sealed class SourceTriggerDispatcherTests
|
||||
CancellationToken ct = default)
|
||||
=> Task.FromResult<IReadOnlyList<SbomSourceRun>>(Array.Empty<SbomSourceRun>());
|
||||
|
||||
public Task<SourceRunStats> GetStatsAsync(Guid sourceId, CancellationToken ct = default)
|
||||
public Task<SourceRunStats> GetStatsAsync(string tenantId, Guid sourceId, CancellationToken ct = default)
|
||||
=> Task.FromResult(new SourceRunStats());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user