Sealed ballot: race-safe close, close sweep, endpoint tests, backup reader and auth findings in the doc

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Heimdall 2026-11-09 20:30:35 +00:00
commit 96da1b7a8c
7 changed files with 310 additions and 9 deletions

View file

@ -278,6 +278,7 @@ public sealed class BifrostDbContext(DbContextOptions<BifrostDbContext> options)
entity.Property(x => x.Status).HasConversion<string>();
entity.Property(x => x.ApprovalThreshold).HasPrecision(6, 3);
entity.Property(x => x.Kind).HasConversion<string>();
entity.Property(x => x.Status).IsConcurrencyToken();
entity.HasOne(x => x.Project)
.WithMany(x => x.Motions)
.HasForeignKey(x => x.ProjectId)

View file

@ -941,6 +941,7 @@ namespace Bifrost.Web.Data.Migrations
.HasColumnType("text");
b.Property<string>("Status")
.IsConcurrencyToken()
.IsRequired()
.HasColumnType("text");