feat(webui): link parked tasks to the page that fixes their blocker
This commit is contained in:
24 files changed
+214
-50
No files matched your search
@@ -155,6 +155,7 @@ UPDATE tasks
|
||||
SET status = $2,
|
||||
park_reason = CASE WHEN $2 = 'parked' THEN $3 ELSE park_reason END,
|
||||
park_class = CASE WHEN $2 = 'parked' THEN $4 ELSE park_class END,
|
||||
park_blocker = CASE WHEN $2 = 'parked' THEN '' ELSE park_blocker END,
|
||||
updated_at = now()
|
||||
WHERE id = $1 AND status = $5;
|
||||
|
||||
@@ -165,7 +166,7 @@ FROM tasks t WHERE t.id = sqlc.arg(task_id);
|
||||
|
||||
-- name: ParkTask :execrows
|
||||
UPDATE tasks
|
||||
SET status = 'parked', park_reason = $2, park_class = $3, updated_at = now()
|
||||
SET status = 'parked', park_reason = $2, park_class = $3, park_blocker = $5, updated_at = now()
|
||||
WHERE id = $1 AND status = $4;
|
||||
|
||||
-- name: ClearTerminalTasks :execrows
|
||||
|
||||
Reference in new issue
Block a user