Dashboard OpenMotions count includes sealed-ballot motions (DashboardSnapshotService.cs:185) #29
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
DashboardSnapshotService.cs:185computesOpenMotionsasStatus == Open && ClosesAtUtc >= nowwith noKindfilter. The open-motions list at line 29-32 was filtered toKind == MotionKind.Standardby #21, andMotionGovernanceService.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..416f11ad4f17for the deploy hold. Fix is one&& x.Kind == MotionKind.Standardand a test that an open sealed motion leavesOpenMotionsunchanged.