ensure disable_cache saves for v2 task block (#3813)

This commit is contained in:
Jonathan Dobson
2025-10-24 19:08:13 -04:00
committed by GitHub
parent 5a3ae387a1
commit f7fec46871
2 changed files with 3 additions and 0 deletions

View File

@@ -1089,6 +1089,7 @@ function getWorkflowBlock(node: WorkflowBlockNode): BlockYAML {
totp_identifier: node.data.totpIdentifier,
totp_verification_url: node.data.totpVerificationUrl,
url: node.data.url,
disable_cache: node.data.disableCache ?? false,
};
}
case "validation": {
@@ -1894,6 +1895,7 @@ function convertBlocksToBlockYAML(
max_steps: block.max_steps,
totp_identifier: block.totp_identifier,
totp_verification_url: block.totp_verification_url,
disable_cache: block.disable_cache ?? false,
};
return blockYaml;
}

View File

@@ -174,6 +174,7 @@ export type Taskv2BlockYAML = BlockYAMLBase & {
totp_verification_url: string | null;
totp_identifier: string | null;
max_steps: number | null;
disable_cache: boolean;
};
export type ValidationBlockYAML = BlockYAMLBase & {