fix(FN-690): fix migration schema, dashboard type guards, and test stability
- Fix SQL parameter mismatch in db-migrate task INSERT (add baseCommitSha, modifiedFiles, sliceId columns) - Fix dashboard routes type predicate to guard against null entries from git diff parsing - Stabilize central-core activity cleanup test with fake timers - Align executor test assertions with updated steering comment log messages - Align store test comment log assertion with new action/outcome format
This commit is contained in:
@@ -2005,27 +2005,31 @@ export function createApiRoutes(store: TaskStore, options?: ServerOptions): Rout
|
||||
if (statusCode === "R") {
|
||||
const oldPath = parts[1];
|
||||
const path = parts[2];
|
||||
return {
|
||||
path,
|
||||
oldPath,
|
||||
status: "renamed" as const,
|
||||
diff: "",
|
||||
};
|
||||
return path
|
||||
? {
|
||||
path,
|
||||
oldPath,
|
||||
status: "renamed" as const,
|
||||
diff: "",
|
||||
}
|
||||
: null;
|
||||
}
|
||||
|
||||
const path = parts[1];
|
||||
return {
|
||||
path,
|
||||
status:
|
||||
statusCode === "A"
|
||||
? ("added" as const)
|
||||
: statusCode === "D"
|
||||
? ("deleted" as const)
|
||||
: ("modified" as const),
|
||||
diff: "",
|
||||
};
|
||||
return path
|
||||
? {
|
||||
path,
|
||||
status:
|
||||
statusCode === "A"
|
||||
? ("added" as const)
|
||||
: statusCode === "D"
|
||||
? ("deleted" as const)
|
||||
: ("modified" as const),
|
||||
diff: "",
|
||||
}
|
||||
: null;
|
||||
})
|
||||
.filter((entry): entry is TaskFileDiff => Boolean(entry.path));
|
||||
.filter((entry): entry is TaskFileDiff => entry !== null);
|
||||
};
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user