Dashboard OpenMotions count includes sealed-ballot motions (DashboardSnapshotService.cs:185) #29

Open
opened 2026-11-09 22:06:05 +00:00 by heimdall · 0 comments
Member

DashboardSnapshotService.cs:185 computes OpenMotions as Status == Open && ClosesAtUtc >= now with no Kind filter. The open-motions list at line 29-32 was filtered to Kind == MotionKind.Standard by #21, and MotionGovernanceService.GetStateAsync (line 148) is filtered too, so the dashboard shows a count that includes open sealed-ballot motions while the list beside it and the motions page exclude them.

Expected: the count uses Kind == MotionKind.Standard, matching the list. Cosmetic (a number on the dashboard), no data effect.

Found while reading 55b74275..416f11ad4f17 for the deploy hold. Fix is one && x.Kind == MotionKind.Standard and a test that an open sealed motion leaves OpenMotions unchanged.

`DashboardSnapshotService.cs:185` computes `OpenMotions` as `Status == Open && ClosesAtUtc >= now` with no `Kind` filter. The open-motions list at line 29-32 was filtered to `Kind == MotionKind.Standard` by #21, and `MotionGovernanceService.GetStateAsync` (line 148) is filtered too, so the dashboard shows a count that includes open sealed-ballot motions while the list beside it and the motions page exclude them. Expected: the count uses `Kind == MotionKind.Standard`, matching the list. Cosmetic (a number on the dashboard), no data effect. Found while reading `55b74275..416f11ad4f17` for the deploy hold. Fix is one `&& x.Kind == MotionKind.Standard` and a test that an open sealed motion leaves `OpenMotions` unchanged.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Bifrost#29
No description provided.