- check_project_owner: owner=created_by 统一校验 - human_task_capability: 派发/处理/QC/列表/计数/bug验收(复用pipeline_human_tasks) - bug_flow: verified 分流(human报告→创建验收任务给报告人, agent→自动close) - qc_review_run: human_task_qc 分支(检查对象=pipeline_human_tasks 结果) - 流转门禁: agent/pm poller + start_next_iteration 检查未完成人类任务 - pipeline_human_tasks 加 project_id/iteration_id/bug_id/qc_status/qc_comment/title/description
48 lines
3.0 KiB
JSON
48 lines
3.0 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "pipeline_human_tasks",
|
|
"title": "人工任务表",
|
|
"primary": ["id"],
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{"name": "id", "title": "主键ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "task_id", "title": "产线任务ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "step_name", "title": "步骤名称", "type": "str", "length": 64, "nullable": "no"},
|
|
{"name": "version", "title": "版本号", "type": "int", "nullable": "no", "default": "1"},
|
|
{"name": "task_type", "title": "任务类型", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "assignee_role", "title": "指派角色", "type": "str", "length": 64},
|
|
{"name": "assignee_id", "title": "指派人ID", "type": "str", "length": 32},
|
|
{"name": "form_schema", "title": "表单Schema(JSON)", "type": "longtext"},
|
|
{"name": "result_data", "title": "提交结果(JSON)", "type": "longtext"},
|
|
{"name": "status", "title": "任务状态", "type": "str", "length": 32, "nullable": "no", "default": "pending"},
|
|
{"name": "submitted_by", "title": "提交人ID", "type": "str", "length": 32},
|
|
{"name": "submitted_at", "title": "提交时间", "type": "timestamp"},
|
|
{"name": "comments", "title": "备注", "type": "text"},
|
|
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"},
|
|
{"name": "expired_at", "title": "过期时间", "type": "timestamp"},
|
|
{"name": "project_id", "title": "项目ID", "type": "str", "length": 32},
|
|
{"name": "iteration_id", "title": "迭代ID", "type": "str", "length": 32},
|
|
{"name": "bug_id", "title": "关联BugID", "type": "str", "length": 32},
|
|
{"name": "qc_status", "title": "QC状态", "type": "str", "length": 20, "default": "pending"},
|
|
{"name": "qc_comment", "title": "QC意见", "type": "str", "length": 500},
|
|
{"name": "title", "title": "任务标题", "type": "str", "length": 500},
|
|
{"name": "description", "title": "任务描述", "type": "text"}
|
|
],
|
|
"indexes": [
|
|
{"name": "idx_pht_task", "idxtype": "index", "idxfields": ["task_id"]},
|
|
{"name": "idx_pht_step", "idxtype": "index", "idxfields": ["task_id", "step_name"]},
|
|
{"name": "idx_pht_role", "idxtype": "index", "idxfields": ["assignee_role"]},
|
|
{"name": "idx_pht_assignee", "idxtype": "index", "idxfields": ["assignee_id"]},
|
|
{"name": "idx_pht_status", "idxtype": "index", "idxfields": ["status"]},
|
|
{"name": "idx_pht_project", "idxtype": "index", "idxfields": ["project_id"]},
|
|
{"name": "idx_pht_iteration", "idxtype": "index", "idxfields": ["iteration_id"]}
|
|
],
|
|
"codes": [
|
|
{"field": "task_type", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='human_task_type'"},
|
|
{"field": "status", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='human_task_status'"}
|
|
]
|
|
}
|