Skip to content

Commit bf411e1

Browse files
committed
includeChildren always false
1 parent 098908a commit bf411e1

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ qx.Class.define("osparc.jobs.SubRunsBrowser", {
7474

7575
this.__titleLabel.setValue(project["projectName"])
7676

77-
const includeChildren = false;
78-
const subRunsTable = this.__subRunsTable = new osparc.jobs.SubRunsTable(project["projectUuid"], includeChildren);
77+
const subRunsTable = this.__subRunsTable = new osparc.jobs.SubRunsTable(project["projectUuid"]);
7978
this._add(subRunsTable, {
8079
flex: 1
8180
});

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
qx.Class.define("osparc.jobs.SubRunsTable", {
2020
extend: qx.ui.table.Table,
2121

22-
construct: function(projectUuid, includeChildren = false) {
22+
construct: function(projectUuid) {
2323
this.base(arguments);
2424

25-
const model = new osparc.jobs.SubRunsTableModel(projectUuid, includeChildren);
25+
const model = new osparc.jobs.SubRunsTableModel(projectUuid);
2626
this.setTableModel(model);
2727

2828
this.set({

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
qx.Class.define("osparc.jobs.SubRunsTableModel", {
2020
extend: qx.ui.table.model.Remote,
2121

22-
construct: function(projectUuid, includeChildren = false) {
22+
construct: function(projectUuid) {
2323
this.base(arguments);
2424

2525
const subJobsCols = osparc.jobs.SubRunsTable.COLS;
@@ -51,11 +51,9 @@ qx.Class.define("osparc.jobs.SubRunsTableModel", {
5151
},
5252

5353
members: {
54-
__includeChildren: null,
55-
5654
// overridden
5755
_loadRowCount() {
58-
osparc.store.Jobs.getInstance().fetchSubJobs(this.getProjectUuid(), this.__includeChildren)
56+
osparc.store.Jobs.getInstance().fetchSubJobs(this.getProjectUuid())
5957
.then(subJobs => {
6058
this._onRowCountLoaded(subJobs.length)
6159
})
@@ -71,7 +69,7 @@ qx.Class.define("osparc.jobs.SubRunsTableModel", {
7169
const lastRow = Math.min(qxLastRow, this._rowCount - 1);
7270
// Returns a request promise with given offset and limit
7371
const getFetchPromise = () => {
74-
return osparc.store.Jobs.getInstance().fetchSubJobs(this.getProjectUuid(), this.__includeChildren)
72+
return osparc.store.Jobs.getInstance().fetchSubJobs(this.getProjectUuid())
7573
.then(subJobs => {
7674
const data = [];
7775
const subJobsCols = osparc.jobs.SubRunsTable.COLS;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ qx.Class.define("osparc.store.Jobs", {
119119
.catch(err => console.error(err));
120120
},
121121

122-
fetchSubJobs: function(projectUuid, includeChildren = false) {
122+
fetchSubJobs: function(projectUuid) {
123123
const params = {
124124
url: {
125125
studyId: projectUuid,
126-
includeChildren,
126+
includeChildren: false,
127127
}
128128
};
129129
return osparc.data.Resources.getInstance().getAllPages("subRuns", params, "getPageLatest")

0 commit comments

Comments
 (0)