Skip to content

Commit 6a60a4e

Browse files
committed
tasks can only be sorted by started_at
1 parent 72ee7b4 commit 6a60a4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

services/static-webserver/client/source/class/osparc/data/Resources.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ qx.Class.define("osparc.data.Resources", {
365365
endpoints: {
366366
getPageLatest: {
367367
method: "GET",
368-
url: statics.API + "/computations/{studyId}/iterations/latest/tasks?offset={offset}&limit={limit}&include_children={includeChildren}"
368+
url: statics.API + "/computations/{studyId}/iterations/latest/tasks?offset={offset}&limit={limit}&order_by=%7B%22field%22:%22started_at%22,%22direction%22:%22desc%22%7D&include_children={includeChildren}"
369369
},
370370
}
371371
},

services/static-webserver/client/source/class/osparc/jobs/SubRunsTableModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ qx.Class.define("osparc.jobs.SubRunsTableModel", {
2727
const colIDs = Object.values(subJobsCols).map(col => col.id);
2828
this.setColumns(colLabels, colIDs);
2929

30-
this.setSortColumnIndexWithoutSortingData(subJobsCols.START.column);
30+
this.setSortColumnIndexWithoutSortingData(subJobsCols.START.column); // It can only be sorted by started_at
3131
this.setSortAscendingWithoutSortingData(false);
3232
Object.values(subJobsCols).forEach(col => {
3333
this.setColumnSortable(col.column, false);

0 commit comments

Comments
 (0)