fix(deployment): pending-updates tick uses a slim instance projection, hash-only flatten, one untracked mismatch snapshot read and a per-tick secret lookup memo (review 2026-10-21 04/P2)
This commit is contained in:
+17
@@ -724,6 +724,23 @@ public class DeploymentManagerRepository : IDeploymentManagerRepository
|
||||
r.CreatedAtUtc, r.ExpiresAtUtc) { Id = r.Id });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<IReadOnlyList<Instance>> GetDeployedInstanceSummariesAsync(
|
||||
CancellationToken cancellationToken = default)
|
||||
{
|
||||
return await _dbContext.Set<Instance>()
|
||||
.AsNoTracking()
|
||||
.Where(i => i.State != InstanceState.NotDeployed)
|
||||
.Select(i => new Instance(i.UniqueName)
|
||||
{
|
||||
Id = i.Id,
|
||||
SiteId = i.SiteId,
|
||||
TemplateId = i.TemplateId,
|
||||
State = i.State
|
||||
})
|
||||
.ToListAsync(cancellationToken);
|
||||
}
|
||||
|
||||
// --- Instance lookups for deployment pipeline ---
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user