Skip to content

Commit d9af07c

Browse files
author
Andrei Neagu
committed
Merge remote-tracking branch 'upstream/master' into pr-osparc-refactor-simcore-sdk
2 parents 3d75c03 + 3d8ae69 commit d9af07c

File tree

17 files changed

+88
-160
lines changed

17 files changed

+88
-160
lines changed

services/docker-compose.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,10 +1385,12 @@ services:
13851385
- "--metrics.prometheus.entryPoint=metrics"
13861386
- "--entryPoints.http.address=:80"
13871387
- "--entryPoints.http.forwardedHeaders.insecure"
1388-
- "--entryPoints.http.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 - "--entryPoints.simcore_api.address=:10081"
1388+
- "--entryPoints.http.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 large file uploads
1389+
- "--entryPoints.http.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 large file downloads
13891390
- "--entryPoints.simcore_api.address=:10081"
13901391
- "--entryPoints.simcore_api.forwardedHeaders.insecure"
1391-
- "--entryPoints.simcore_api.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805
1392+
- "--entryPoints.simcore_api.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 large file uploads
1393+
- "--entryPoints.simcore_api.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 large file downloads
13921394
- "--entryPoints.traefik_monitor.address=:8080"
13931395
- "--entryPoints.traefik_monitor.forwardedHeaders.insecure"
13941396
- "--providers.swarm.endpoint=unix:///var/run/docker.sock"
@@ -1401,6 +1403,14 @@ services:
14011403
- "--tracing.addinternals"
14021404
- "--tracing.otlp=true"
14031405
- "--tracing.otlp.http=true"
1406+
healthcheck:
1407+
# NOTE: this healthcheck to check if traefik is up and running must be run on the ping entrypoint defined in command!
1408+
test: traefik healthcheck --ping --ping.entryPoint=ping --entryPoints.ping.address=:9082
1409+
interval: 10s
1410+
timeout: 5s
1411+
retries: 5
1412+
start_period: 10s
1413+
start_interval: 1s
14041414
volumes:
14051415
# So that Traefik can listen to the Docker events
14061416
- /var/run/docker.sock:/var/run/docker.sock

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ qx.Class.define("osparc.dashboard.CardBase", {
700700
}
701701

702702
// Block card
703-
const cantReadServices = osparc.study.Utils.getCantExecuteServices(services);
703+
const cantReadServices = osparc.study.Utils.getCantReadServices(services);
704704
if (cantReadServices.length) {
705705
this.setBlocked("UNKNOWN_SERVICES");
706706
const image = "@FontAwesome5Solid/ban/";
@@ -985,8 +985,17 @@ qx.Class.define("osparc.dashboard.CardBase", {
985985
throw new Error("Abstract method called!");
986986
},
987987

988-
_applyMenu: function(value, old) {
989-
throw new Error("Abstract method called!");
988+
_applyMenu: function(menu) {
989+
const menuButton = this.getChildControl("menu-button");
990+
if (menu) {
991+
menuButton.setMenu(menu).set({
992+
appearance: "menu-wider",
993+
position: "bottom-left",
994+
});
995+
osparc.utils.Utils.setIdToWidget(menu, "studyItemMenuMenu");
996+
menu.addListener("appear", () => this.evaluateMenuButtons());
997+
}
998+
menuButton.setVisibility(menu ? "visible" : "excluded");
990999
},
9911000

9921001
_setStudyPermissions: function(accessRights) {

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -281,19 +281,5 @@ qx.Class.define("osparc.dashboard.GridButtonItem", {
281281
}
282282
}
283283
},
284-
285-
// overridden
286-
_applyMenu: function(menu, old) {
287-
const menuButton = this.getChildControl("menu-button");
288-
if (menu) {
289-
menuButton.setMenu(menu).set({
290-
appearance: "menu-wider",
291-
position: "bottom-left",
292-
});
293-
osparc.utils.Utils.setIdToWidget(menu, "studyItemMenuMenu");
294-
this.evaluateMenuButtons();
295-
}
296-
menuButton.setVisibility(menu ? "visible" : "excluded");
297-
}
298284
}
299285
});

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -295,18 +295,5 @@ qx.Class.define("osparc.dashboard.ListButtonItem", {
295295
});
296296
});
297297
},
298-
299-
_applyMenu: function(menu, old) {
300-
const menuButton = this.getChildControl("menu-button");
301-
if (menu) {
302-
menuButton.setMenu(menu).set({
303-
appearance: "menu-wider",
304-
position: "bottom-left",
305-
});
306-
osparc.utils.Utils.setIdToWidget(menu, "studyItemMenuMenu");
307-
this.evaluateMenuButtons();
308-
}
309-
menuButton.setVisibility(menu ? "visible" : "excluded");
310-
}
311298
}
312299
});

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,10 +1598,12 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
15981598
const duplicateStudyButton = this.__getDuplicateMenuButton(studyData);
15991599
menu.add(duplicateStudyButton);
16001600

1601-
const convertToPipelineButton = this.__getConvertToPipelineMenuButton(studyData);
1602-
menu.add(convertToPipelineButton);
1601+
if (writeAccess && osparc.product.Utils.showConvertToPipeline()) {
1602+
const convertToPipelineButton = this.__getConvertToPipelineMenuButton(studyData);
1603+
menu.add(convertToPipelineButton);
1604+
}
16031605

1604-
if (osparc.product.Utils.hasExportCMisEnabled()) {
1606+
if (osparc.product.Utils.showExportCMis()) {
16051607
const exportStudyButton = this.__getExportCMisMenuButton(studyData);
16061608
menu.add(exportStudyButton);
16071609
}

services/static-webserver/client/source/class/osparc/editor/HtmlEditor.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ qx.Class.define("osparc.editor.HtmlEditor", {
2626

2727
this.getChildControl("preview-html");
2828
this.getChildControl("subtitle").set({
29-
value: this.tr("Supports HTML"),
30-
url: "https://en.wikipedia.org/wiki/HTML",
29+
value: this.tr("Supports HTML")
3130
});
3231
},
3332

services/static-webserver/client/source/class/osparc/editor/MarkdownEditor.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ qx.Class.define("osparc.editor.MarkdownEditor", {
3131

3232
this.getChildControl("preview-markdown");
3333
this.getChildControl("subtitle").set({
34-
value: this.tr("Markdown supported"),
35-
url: "https://en.wikipedia.org/wiki/Markdown",
34+
value: this.tr("Markdown supported")
3635
});
3736
},
3837

services/static-webserver/client/source/class/osparc/editor/TextEditor.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,15 @@ qx.Class.define("osparc.editor.TextEditor", {
8181
writePage.add(control, {
8282
flex: 1
8383
});
84-
const subtitle = this.getChildControl("subtitle");
84+
const subtitle = this.getChildControl("subtitle").set({
85+
value: this.tr("Supports HTML")
86+
});
8587
writePage.add(subtitle);
8688
tabs.add(writePage);
8789
break;
8890
}
8991
case "subtitle":
90-
control = new osparc.ui.basic.LinkLabel().set({
92+
control = new qx.ui.basic.Label().set({
9193
font: "text-12"
9294
});
9395
this._add(control);

services/static-webserver/client/source/class/osparc/info/CommentUI.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ qx.Class.define("osparc.info.CommentUI", {
113113

114114
__buildLayout: function() {
115115
const thumbnail = this.getChildControl("thumbnail");
116+
thumbnail.setSource(osparc.utils.Avatar.emailToThumbnail("", "", 32));
116117

117118
const userName = this.getChildControl("user-name");
119+
userName.setValue("Unknown");
118120

119121
const date = new Date(this.__comment["modified"]);
120122
const date2 = osparc.utils.Utils.formatDateAndTime(date);
@@ -129,14 +131,7 @@ qx.Class.define("osparc.info.CommentUI", {
129131
if (user) {
130132
thumbnail.setSource(user.getThumbnail());
131133
userName.setValue(user.getLabel());
132-
} else {
133-
thumbnail.setSource(osparc.utils.Avatar.emailToThumbnail());
134-
userName.setValue("Unknown user");
135134
}
136-
})
137-
.catch(() => {
138-
thumbnail.setSource(osparc.utils.Avatar.emailToThumbnail());
139-
userName.setValue("Unknown user");
140135
});
141136

142137
this.getChildControl("spacer");

services/static-webserver/client/source/class/osparc/metadata/ServicesInStudyUpdate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ qx.Class.define("osparc.metadata.ServicesInStudyUpdate", {
6060
osparc.store.Services.getStudyServices(this._studyData["uuid"])
6161
.then(resp => {
6262
const services = resp["services"];
63-
if (osparc.study.Utils.getCantExecuteServices(services).length) {
63+
if (osparc.study.Utils.getCantReadServices(services).length) {
6464
msg += this.tr("Some services are inaccessible. Please contact the service owner:");
6565
msg += "<br><br>";
6666
}

0 commit comments

Comments
 (0)