From 7bd79d83026ba9621cc122605147074470fd0fa3 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Thu, 16 Nov 2023 17:56:14 -0300 Subject: [PATCH] feat(API): add support for saving last tested version of a flow in the flow store The `saveFlowStore` function in the API controller now accepts an optional `last_tested_version` parameter. This parameter allows the user to specify the last tested version of a flow when saving it to the flow store. The value of `last_tested_version` is now included in the request payload when creating a new flow in the flow store. --- src/frontend/src/controllers/API/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/src/controllers/API/index.ts b/src/frontend/src/controllers/API/index.ts index 1ea4f15e2..d7f17a028 100644 --- a/src/frontend/src/controllers/API/index.ts +++ b/src/frontend/src/controllers/API/index.ts @@ -556,6 +556,7 @@ export async function saveFlowStore( style?: FlowStyleType; is_component?: boolean; parent?: string; + last_tested_version?: string; }, tags: string[], publicFlow = false @@ -569,6 +570,7 @@ export async function saveFlowStore( parent: newFlow.parent, tags: tags, status: publicFlow ? "public" : "private", + last_tested_version: newFlow.last_tested_version, }); if (response.status !== 201) {