Files
vibe-kanban/backend/.sqlx
Louis Knight-Webb d3b9385c90 Fixed! The issue was in the SQL query in [backend/src/models/task.rs](file:///private/var/folders/kr/jdxkcn7129j376nrg0stj9zm0000gn/T/vk-d725-failed-att/backend/src/models/task.rs#L134-L169). The failed_attempts subquery was checking for ANY failed attempt, but now it: (#73)
1. First gets the latest attempt for each task (using `ROW_NUMBER() OVER (PARTITION BY task_id ORDER BY created_at DESC)`)
2. Only considers non-merged attempts (`WHERE merge_commit IS NULL`)
3. Only shows the failed indicator if the latest attempt has failed

Now the red circle cross will only appear for tasks where the most recent attempt failed, not for any task that has ever had a failed attempt.
2025-07-04 13:01:51 +00:00
..