Skip to content

Commit 3237efd

Browse files
committedMar 13, 2024
Included missed update on workflow hit parsing
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
1 parent 4975ba9 commit 3237efd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎public/pages/workflows/workflow_list/columns.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const columns = (actions: any[]) => [
2222
sortable: true,
2323
},
2424
{
25-
field: 'useCase',
25+
field: 'use_case',
2626
name: 'Type',
2727
sortable: true,
2828
},

‎server/routes/helpers.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ function toWorkflowObj(workflowHit: any): Workflow {
2626
return {
2727
id: workflowHit._id,
2828
name: hitSource.name,
29-
useCase: hitSource.use_case,
29+
use_case: hitSource.use_case,
3030
description: hitSource.description || '',
31-
// TODO: update below values after frontend Workflow interface is finalized
32-
template: {},
31+
version: hitSource.version,
32+
workflows: hitSource.workflows,
3333
// TODO: this needs to be persisted by backend. Tracking issue:
3434
// https://github.com/opensearch-project/flow-framework/issues/548
3535
lastUpdated: 1234,

0 commit comments

Comments
 (0)