refactor(dev-task): 去掉"已完成"状态,"已提测"作为终态
DevTask 状态简化为:待开发 → 开发中 → 自测 → 已提测(终态) - 提测即代表开发交付完成,不需要额外的"已完成" - 测试通过/失败产生的是 Bug,不影响 DevTask 状态 - 移除 TestCaseStore 中的自动完成副作用(不再需要) - 版本执行态推导规则同步更新 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -79,8 +79,7 @@ export function calcVersionExecutionStatus(input: ExecutionInput): VersionExecut
|
||||
// fallback: 没有 DevTask 则停留 planning
|
||||
if (devTasks.length === 0) return 'planning';
|
||||
|
||||
const allDevDone = devTasks.every((t) => t.status === 'done');
|
||||
const allDevSubmitted = devTasks.every((t) => t.status === 'submitted' || t.status === 'done');
|
||||
const allDevSubmitted = devTasks.every((t) => t.status === 'submitted');
|
||||
|
||||
// 判断是否可发布
|
||||
if (testCases.length > 0) {
|
||||
@@ -98,8 +97,5 @@ export function calcVersionExecutionStatus(input: ExecutionInput): VersionExecut
|
||||
// 已提测
|
||||
if (allDevSubmitted) return 'submitted';
|
||||
|
||||
// 开发完成但未全部提测
|
||||
if (allDevDone) return 'submitted';
|
||||
|
||||
return 'developing';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user