From 3237efdb9b0afe6265abecd9b5c80b317c99ed5d Mon Sep 17 00:00:00 2001 From: Tyler Ohlsen Date: Tue, 12 Mar 2024 18:47:22 -0700 Subject: [PATCH] Included missed update on workflow hit parsing Signed-off-by: Tyler Ohlsen --- public/pages/workflows/workflow_list/columns.tsx | 2 +- server/routes/helpers.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/pages/workflows/workflow_list/columns.tsx b/public/pages/workflows/workflow_list/columns.tsx index f4079893..9f7ae6ae 100644 --- a/public/pages/workflows/workflow_list/columns.tsx +++ b/public/pages/workflows/workflow_list/columns.tsx @@ -22,7 +22,7 @@ export const columns = (actions: any[]) => [ sortable: true, }, { - field: 'useCase', + field: 'use_case', name: 'Type', sortable: true, }, diff --git a/server/routes/helpers.ts b/server/routes/helpers.ts index 49283de3..58b813ac 100644 --- a/server/routes/helpers.ts +++ b/server/routes/helpers.ts @@ -26,10 +26,10 @@ function toWorkflowObj(workflowHit: any): Workflow { return { id: workflowHit._id, name: hitSource.name, - useCase: hitSource.use_case, + use_case: hitSource.use_case, description: hitSource.description || '', - // TODO: update below values after frontend Workflow interface is finalized - template: {}, + version: hitSource.version, + workflows: hitSource.workflows, // TODO: this needs to be persisted by backend. Tracking issue: // https://github.com/opensearch-project/flow-framework/issues/548 lastUpdated: 1234,