From f2154ae7df8d7ac523cea7f9156450948c8f905f Mon Sep 17 00:00:00 2001 From: ymq Date: Mon, 24 Aug 2026 12:54:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20list=5Fmy=5Fhuman=5Ftodos=20=E8=A1=A5=20?= =?UTF-8?q?title/description=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pipeline_service/human_task_capability.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pipeline_service/human_task_capability.py b/pipeline_service/human_task_capability.py index d1b5f79..e1a4b6e 100644 --- a/pipeline_service/human_task_capability.py +++ b/pipeline_service/human_task_capability.py @@ -199,7 +199,7 @@ async def complete_human_task(human_task_id, result_data, operator_id=None): "description": (ht.get('description', '') or '')[:2000], "iteration_id": ht.get('iteration_id', '') or '', } - # 补 title(pipeline_human_tasks 无 title 列,用 result 里带或 form_schema 里带) + # 补 title(pipeline_human_tasks 有 title 列,已在上方 result 里带) await sor.C('pipeline_tasks', { 'id': qid, 'tenant_id': pid, 'pipeline_id': 'role_task', 'owner_id': 'human_task_qc', @@ -332,7 +332,8 @@ async def list_my_human_todos(user_id, limit=100): # 人类任务:assignee_id=我 或 assignee_role∈我角色,pending ht = await sor.sqlExe( f"SELECT id, project_id, iteration_id, bug_id, task_type, assignee_role, " - f"assignee_id, status, qc_status, created_at, submitted_by, result_data " + f"assignee_id, status, qc_status, created_at, submitted_by, result_data, " + f"title, description " f"FROM pipeline_human_tasks " f"WHERE status='pending' AND (assignee_id=${{u}}$ OR assignee_role IN ({role_ph})) " f"ORDER BY created_at DESC LIMIT {limit}", {"u": user_id})