fix: list_my_human_todos 补 title/description 字段
This commit is contained in:
parent
e5ae2f1555
commit
f2154ae7df
@ -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})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user