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,