Fix experiment carts sorting by number of completed tasks [SCI-10390] (#7213)

This commit is contained in:
Alex Kriuchykhin 2024-03-12 14:37:14 +01:00 committed by GitHub
parent 802ebb68a8
commit 5da0076eb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -141,7 +141,7 @@ export default {
}
columns.push({
field: 'total_tasks',
field: 'completed_tasks',
headerName: this.i18n.t('experiments.card.completed_task'),
cellRenderer: CompletedTasksRenderer,
sortable: true,

View file

@ -77,7 +77,7 @@ module Lists
code: 'experiments.id',
archived_on: 'COALESCE(experiments.archived_on, projects.archived_on)',
updated_at: 'experiments.updated_at',
total_tasks: 'task_count',
completed_tasks: 'completed_task_count',
description: 'experiments.description'
}
end