Skip to content

Commit 7c3d0f6

Browse files
authored
fix(orchestrator): fixes sorting workflow runs (#1136)
fix(orchestrator): workflow runs table should be sorted by started date in descending order Addresses: - https://issues.redhat.com/browse/FLPATH-888
1 parent 2a023e1 commit 7c3d0f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugins/orchestrator/src/components/WorkflowRunsTabContent.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export const WorkflowRunsTabContent = () => {
6161
(): TableColumn<WorkflowRunDetail>[] => [
6262
{
6363
title: 'ID',
64+
field: 'id',
6465
render: data => (
6566
<Link to={workflowInstanceLink({ instanceId: data.id })}>
6667
{ellipsis(data.id)}
@@ -73,6 +74,7 @@ export const WorkflowRunsTabContent = () => {
7374
},
7475
{
7576
title: 'Status',
77+
field: 'status',
7678
render: data => (
7779
<WorkflowInstanceStatusIndicator
7880
status={data.status as ProcessInstanceStateValues}
@@ -81,9 +83,10 @@ export const WorkflowRunsTabContent = () => {
8183
},
8284
{
8385
title: 'Category',
86+
field: 'category',
8487
render: data => capitalize(data.category ?? VALUE_UNAVAILABLE),
8588
},
86-
{ title: 'Started', field: 'started' },
89+
{ title: 'Started', field: 'started', defaultSort: 'desc' },
8790
{ title: 'Duration', field: 'duration' },
8891
],
8992
[workflowInstanceLink],

0 commit comments

Comments
 (0)