Skip to content

Commit 209b266

Browse files
committed
getPageLatest
1 parent fbca1eb commit 209b266

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ qx.Class.define("osparc.data.Resources", {
350350
"jobsActive": {
351351
useCache: false, // handled in osparc.store.Jobs
352352
endpoints: {
353-
getPage: {
353+
getPageLatest: {
354354
method: "GET",
355355
url: statics.API + "/computations/-/iterations/latest?offset={offset}&limit={limit}&order_by=%7B%22field%22:%22submitted_at%22,%22direction%22:%22desc%22%7D&filter_only_running=true"
356356
},
@@ -359,7 +359,7 @@ qx.Class.define("osparc.data.Resources", {
359359
"subJobs": {
360360
useCache: false, // handled in osparc.store.Jobs
361361
endpoints: {
362-
getPage: {
362+
getPageLatest: {
363363
method: "GET",
364364
url: statics.API + "/computations/{studyId}/iterations/latest/tasks?offset={offset}&limit={limit}"
365365
},

services/static-webserver/client/source/class/osparc/store/Jobs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ qx.Class.define("osparc.store.Jobs", {
5656
const options = {
5757
resolveWResponse: true
5858
};
59-
return osparc.data.Resources.fetch("jobsActive", "getPage", params, options)
59+
return osparc.data.Resources.fetch("jobsActive", "getPageLatest", params, options)
6060
.then(jobsResp => {
6161
this.fireDataEvent("changeJobsActive", jobsResp["_meta"]["total"]);
6262
const jobsActive = [];
@@ -79,7 +79,7 @@ qx.Class.define("osparc.store.Jobs", {
7979
studyId: projectUuid,
8080
}
8181
};
82-
return osparc.data.Resources.getInstance().getAllPages("subJobs", params)
82+
return osparc.data.Resources.getInstance().getAllPages("subJobs", params, "getPageLatest")
8383
.then(subJobsData => {
8484
const subJobs = [];
8585
subJobsData.forEach(subJobData => {

0 commit comments

Comments
 (0)