Export workflow (#987)

This commit is contained in:
Shuchang Zheng
2024-10-16 10:24:58 -07:00
committed by GitHub
parent fd061d1262
commit 7341b92046
2 changed files with 68 additions and 8 deletions

View File

@@ -1065,12 +1065,11 @@ function convertBlocks(blocks: Array<WorkflowBlock>): Array<BlockYAML> {
}
function convert(workflow: WorkflowApiResponse): WorkflowCreateYAMLRequest {
const title = `Copy of ${workflow.title}`;
const userParameters = workflow.workflow_definition.parameters.filter(
(parameter) => parameter.parameter_type !== "output",
);
return {
title: title,
title: workflow.title,
description: workflow.description,
proxy_location: workflow.proxy_location,
webhook_callback_url: workflow.webhook_callback_url,