Skip to content

Commit d7987e8

Browse files
committed
getOne -> fetch
1 parent 9d2ca61 commit d7987e8

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
163163
"studyId": this.__resourceData["uuid"]
164164
}
165165
};
166-
osparc.data.Resources.getOne("studies", params)
166+
osparc.data.Resources.fetch("studies", "getOne", params)
167167
.then(updatedStudyData => {
168168
openButton.setFetching(false);
169169
const updatableServices = osparc.metadata.ServicesInStudyUpdate.updatableNodeIds(updatedStudyData.workbench);

services/static-webserver/client/source/class/osparc/dashboard/StudyBrowser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
361361
studyId
362362
}
363363
};
364-
osparc.data.Resources.getOne("studies", params)
364+
osparc.data.Resources.fetch("studies", "getOne", params)
365365
.then(studyData => {
366366
this.__studyStateReceived(study["uuid"], studyData["state"]);
367367
});
@@ -2057,7 +2057,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
20572057
"studyId": data["data"]["uuid"]
20582058
}
20592059
};
2060-
osparc.data.Resources.getOne("studies", params)
2060+
osparc.data.Resources.fetch("studies", "getOne", params)
20612061
.then(studyData => this._updateStudyData(studyData))
20622062
.catch(err => {
20632063
console.error(err);

services/static-webserver/client/source/class/osparc/desktop/MainPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ qx.Class.define("osparc.desktop.MainPage", {
308308
"studyId": studyId
309309
}
310310
};
311-
osparc.data.Resources.getOne("studies", params2)
311+
osparc.data.Resources.fetch("studies", "getOne", params2)
312312
.then(studyData => {
313313
if (!studyData) {
314314
const msg = this.tr("Study not found");
@@ -348,7 +348,7 @@ qx.Class.define("osparc.desktop.MainPage", {
348348
}
349349
};
350350
// OM TODO. DO NOT ADD ITERATIONS TO STUDIES CACHE
351-
osparc.data.Resources.getOne("studies", params)
351+
osparc.data.Resources.fetch("studies", "getOne", params)
352352
.then(studyData => {
353353
if (!studyData) {
354354
const msg = this.tr("Iteration not found");

services/static-webserver/client/source/class/osparc/desktop/MainPageHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ qx.Class.define("osparc.desktop.MainPageHandler", {
6969
"studyId": studyId
7070
}
7171
};
72-
osparc.data.Resources.getOne("studies", params)
72+
osparc.data.Resources.fetch("studies", "getOne", params)
7373
.then(studyData => {
7474
if (!studyData) {
7575
const msg = qx.locale.Manager.tr("Study not found");

services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ qx.Class.define("osparc.desktop.StudyEditor", {
134134
"studyId": studyData.uuid
135135
}
136136
};
137-
osparc.data.Resources.getOne("studies", params)
137+
osparc.data.Resources.fetch("studies", "getOne", params)
138138
.then(latestStudyData => {
139139
const study = new osparc.data.model.Study(latestStudyData);
140140
this.setStudy(study);

services/static-webserver/client/source/class/osparc/notification/NotificationUI.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ qx.Class.define("osparc.notification.NotificationUI", {
150150
"studyId": resourceId
151151
}
152152
};
153-
osparc.data.Resources.getOne("studies", params)
153+
osparc.data.Resources.fetch("studies", "getOne", params)
154154
.then(study => {
155155
const studyAlias = osparc.product.Utils.getStudyAlias({
156156
firstUpperCase: true
@@ -194,7 +194,7 @@ qx.Class.define("osparc.notification.NotificationUI", {
194194
"studyId": resourceId
195195
}
196196
};
197-
osparc.data.Resources.getOne("studies", params)
197+
osparc.data.Resources.fetch("studies", "getOne", params)
198198
.then(study => titleLabel.setValue(`Note added in '${study["name"]}'`))
199199
.catch(() => this.setEnabled(false));
200200
}
@@ -283,7 +283,7 @@ qx.Class.define("osparc.notification.NotificationUI", {
283283
"studyId": studyId
284284
}
285285
};
286-
osparc.data.Resources.getOne("studies", params)
286+
osparc.data.Resources.fetch("studies", "getOne", params)
287287
.then(studyData => {
288288
if (studyData) {
289289
const studyDataCopy = osparc.data.model.Study.deepCloneStudyObject(studyData);

services/static-webserver/client/source/class/osparc/snapshots/IterationsView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ qx.Class.define("osparc.snapshots.IterationsView", {
7676
"studyId": iteration["workcopy_project_id"]
7777
}
7878
};
79-
iterationPromises.push(osparc.data.Resources.getOne("studies", params));
79+
iterationPromises.push(osparc.data.Resources.fetch("studies", "getOne", params));
8080
});
8181
Promise.all(iterationPromises)
8282
.then(values => {
@@ -204,7 +204,7 @@ qx.Class.define("osparc.snapshots.IterationsView", {
204204
"studyId": iterationId
205205
}
206206
};
207-
osparc.data.Resources.getOne("studies", params)
207+
osparc.data.Resources.fetch("studies", "getOne", params)
208208
.then(data => {
209209
const studyData = this.__study.serialize();
210210
studyData["workbench"] = data["workbench"];

services/static-webserver/client/source/class/osparc/study/StudyOptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ qx.Class.define("osparc.study.StudyOptions", {
245245
}
246246
};
247247
Promise.all([
248-
osparc.data.Resources.getOne("studies", params),
248+
osparc.data.Resources.fetch("studies", "getOne", params),
249249
osparc.data.Resources.fetch("studies", "getWallet", params)
250250
])
251251
.then(values => {

0 commit comments

Comments
 (0)