Skip to content

Commit

Permalink
fix(orchestrator): fixes sorting workflow runs (#1136)
Browse files Browse the repository at this point in the history
fix(orchestrator): workflow runs table should be sorted by started date in descending order

Addresses:
- https://issues.redhat.com/browse/FLPATH-888
  • Loading branch information
jkilzi authored Jan 29, 2024
1 parent 2a023e1 commit 7c3d0f6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export const WorkflowRunsTabContent = () => {
(): TableColumn<WorkflowRunDetail>[] => [
{
title: 'ID',
field: 'id',
render: data => (
<Link to={workflowInstanceLink({ instanceId: data.id })}>
{ellipsis(data.id)}
Expand All @@ -73,6 +74,7 @@ export const WorkflowRunsTabContent = () => {
},
{
title: 'Status',
field: 'status',
render: data => (
<WorkflowInstanceStatusIndicator
status={data.status as ProcessInstanceStateValues}
Expand All @@ -81,9 +83,10 @@ export const WorkflowRunsTabContent = () => {
},
{
title: 'Category',
field: 'category',
render: data => capitalize(data.category ?? VALUE_UNAVAILABLE),
},
{ title: 'Started', field: 'started' },
{ title: 'Started', field: 'started', defaultSort: 'desc' },
{ title: 'Duration', field: 'duration' },
],
[workflowInstanceLink],
Expand Down

0 comments on commit 7c3d0f6

Please sign in to comment.