feat(FN-5233): add tombstone recreate guard and allow-resurrection delete f
Implements the FN-5233 tombstone system for soft-delete resurrection: a configurable `tombstoneWindowSeconds` deduplicates recreation of recently deleted tasks, with an `allowResurrection` flag that permits explicit resurrect-on-recreate, tombstone recreate guards in the store layer, and cleanup of Fusion-Task-Id: FN-5233
This commit is contained in:
committed by
gsxdsm
parent
916047c2ae
commit
2d2e5b809f
@@ -3415,6 +3415,8 @@ export function registerTaskWorkflowRoutes(ctx: ApiRoutesContext, deps: TaskWork
|
||||
const removeLineageReferences = req.query.removeLineageReferences === "1"
|
||||
|| req.query.removeLineageReferences === "true";
|
||||
const githubIssueActionRaw = req.query.githubIssueAction;
|
||||
const allowResurrection = req.query.allowResurrection === "1"
|
||||
|| req.query.allowResurrection === "true";
|
||||
const githubIssueActionValues: readonly GithubIssueAction[] = ["close", "delete", "leave", "auto"];
|
||||
let githubIssueAction: GithubIssueAction | undefined;
|
||||
if (typeof githubIssueActionRaw === "string") {
|
||||
@@ -3426,6 +3428,7 @@ export function registerTaskWorkflowRoutes(ctx: ApiRoutesContext, deps: TaskWork
|
||||
const task = await scopedStore.deleteTask(req.params.id, {
|
||||
removeDependencyReferences,
|
||||
removeLineageReferences,
|
||||
allowResurrection,
|
||||
githubIssueAction,
|
||||
auditContext: {
|
||||
agentId: "system",
|
||||
|
||||
Reference in New Issue
Block a user