#828 Status filter allowlists incomplete: 'orphaned' unfilterable; VALID_WORKFLOW_STATUSES dead constant missing 3 statuses

closed medium api Created 2026-07-19 05:26 · Updated 2026-07-19 06:06

Description

Edit
api/blueprints/v1/workflows.py:804 _status_keys = (completed,failed,running,pending,sleeping,paused,cancelled) — missing 'orphaned', so orphaned runs cannot be filtered in the list endpoint (invisible to status-filtered dashboard views). api/middleware/validators.py:16 VALID_WORKFLOW_STATUSES is missing paused/cancelled/orphaned AND appears to have zero usages (dead constant — wire it or delete it). Single source of truth suggestion: one canonical status tuple imported everywhere, asserted against the DB CHECK constraint in a test.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...