You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Route RunStatus-sensitive branches through the enum, not literals
batch.rs, comparison.rs, dashboard.rs, alerts.rs, and pages.rs were all
matching on bare string literals ("queued" / "running" / "completed"
etc.) when deciding how to bucket runs. That made it easy for a typo
or a new status value to silently fall through to the "_ =>" default
and flip terminal/in-flight classification.
Parse incoming strings into RunStatus once and match on the enum. The
compiler now flags missing variants, and new RunStatus variants will
force us to visit every decision point. Domain-specific composites
outside the enum (e.g. batch.rs's "failed_partial") are left as
string constants with an inline comment explaining why.
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
0 commit comments