fix(config-db): unbound SystemArtifactDeploymentRecord.PerSiteStatus (DEP-3, WP2 task 2.9)

PerSiteStatus carries one serialized SiteArtifactResult per site (~155 chars
for a clean site, more with error text). The 4000-char cap made Deploy
Artifacts over ~25 sites throw on the final save, after every site had applied,
so no site was stamped and every retry failed the same way. Mapping is now
nvarchar(max); the migration + SQL script follow in their own commit.
This commit is contained in:
Joseph Doherty
2026-12-03 10:12:45 -05:00
parent baecf10fea
commit 7eabb82287
2 changed files with 52 additions and 2 deletions
@@ -113,8 +113,11 @@ public class SystemArtifactDeploymentRecordConfiguration : IEntityTypeConfigurat
.IsRequired()
.HasMaxLength(200);
builder.Property(d => d.PerSiteStatus)
.HasMaxLength(4000);
// DEP-3: unbounded. One serialized SiteArtifactResult per site (identifier, name,
// error text, removed secret names) is ~155 chars for a clean site, so 4000 ran
// out at ~25 sites (fewer with long errors) — and that save runs AFTER every site
// has applied the artifacts, so the run failed with nothing stamped.
builder.Property(d => d.PerSiteStatus);
builder.HasIndex(d => d.DeployedAt);
}