debug: add more logging at start of move_task function
This commit is contained in:
@@ -198,6 +198,7 @@ async def move_task(
|
|||||||
request: Request,
|
request: Request,
|
||||||
):
|
):
|
||||||
"""Move task to a different column"""
|
"""Move task to a different column"""
|
||||||
|
print(f"[Move] move_task called: task_id={task_id}, new_status={move.status}")
|
||||||
user: User = request.state.user
|
user: User = request.state.user
|
||||||
updates = {"status": move.status}
|
updates = {"status": move.status}
|
||||||
|
|
||||||
@@ -208,6 +209,7 @@ async def move_task(
|
|||||||
raise HTTPException(status_code=404, detail="Task not found")
|
raise HTTPException(status_code=404, detail="Task not found")
|
||||||
|
|
||||||
old_status = current_task["status"]
|
old_status = current_task["status"]
|
||||||
|
print(f"[Move] Task {task_id}: old_status={old_status}, new_status={move.status}, assigned_to={current_task.get('assigned_to')}")
|
||||||
|
|
||||||
# Handle automatic time tracking
|
# Handle automatic time tracking
|
||||||
if old_status != "in_progress" and move.status == "in_progress":
|
if old_status != "in_progress" and move.status == "in_progress":
|
||||||
|
|||||||
Reference in New Issue
Block a user