feat: sort executions by updated at
This commit is contained in:
@@ -32,7 +32,7 @@ const getExecutions = async (
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.groupBy('executions.id')
|
.groupBy('executions.id')
|
||||||
.orderBy('created_at', 'desc');
|
.orderBy('updated_at', 'desc');
|
||||||
|
|
||||||
return paginate(executions, params.limit, params.offset);
|
return paginate(executions, params.limit, params.offset);
|
||||||
};
|
};
|
||||||
|
@@ -23,8 +23,8 @@ export default function ExecutionRow(
|
|||||||
const { execution } = props;
|
const { execution } = props;
|
||||||
const { flow } = execution;
|
const { flow } = execution;
|
||||||
|
|
||||||
const createdAt = DateTime.fromMillis(parseInt(execution.createdAt, 10));
|
const updatedAt = DateTime.fromMillis(parseInt(execution.updatedAt, 10));
|
||||||
const relativeCreatedAt = createdAt.toRelative();
|
const relativeUpdatedAt = updatedAt.toRelative();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link to={URLS.EXECUTION(execution.id)} data-test="execution-row">
|
<Link to={URLS.EXECUTION(execution.id)} data-test="execution-row">
|
||||||
@@ -41,8 +41,8 @@ export default function ExecutionRow(
|
|||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Typography variant="caption" noWrap>
|
<Typography variant="caption" noWrap>
|
||||||
{formatMessage('execution.executedAt', {
|
{formatMessage('execution.updatedAt', {
|
||||||
datetime: relativeCreatedAt,
|
datetime: relativeUpdatedAt,
|
||||||
})}
|
})}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Title>
|
</Title>
|
||||||
|
@@ -77,7 +77,7 @@
|
|||||||
"flowEditor.goBack": "Go back to flows",
|
"flowEditor.goBack": "Go back to flows",
|
||||||
"executions.title": "Executions",
|
"executions.title": "Executions",
|
||||||
"executions.noExecutions": "There is no execution data point to show.",
|
"executions.noExecutions": "There is no execution data point to show.",
|
||||||
"execution.executedAt": "executed {datetime}",
|
"execution.updatedAt": "updated {datetime}",
|
||||||
"execution.test": "Test run",
|
"execution.test": "Test run",
|
||||||
"execution.statusSuccess": "Success",
|
"execution.statusSuccess": "Success",
|
||||||
"execution.statusFailure": "Failure",
|
"execution.statusFailure": "Failure",
|
||||||
|
Reference in New Issue
Block a user