Skip to content

Commit a27ae21

Browse files
committed
Merge branch 'master' into 7348-add-dummy-functions-api
2 parents dcea149 + 7202315 commit a27ae21

File tree

59 files changed

+4660
-225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+4660
-225
lines changed

.github/workflows/ci-testing-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ jobs:
514514
unit-test-storage:
515515
needs: changes
516516
if: ${{ needs.changes.outputs.storage == 'true' || github.event_name == 'push' }}
517-
timeout-minutes: 18 # if this timeout gets too small, then split the tests
517+
timeout-minutes: 25 # if this timeout gets too small, then split the tests
518518
name: "[unit] storage"
519519
runs-on: ${{ matrix.os }}
520520
strategy:

packages/pytest-simcore/src/pytest_simcore/docker_compose.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# pylint: disable=unused-argument
33
# pylint: disable=unused-variable
44

5-
""" Fixtures to create docker-compose.yaml configuration files (as in Makefile)
5+
"""Fixtures to create docker-compose.yaml configuration files (as in Makefile)
66
7-
- Basically runs `docker compose config
8-
- Services in stack can be selected using 'core_services_selection', 'ops_services_selection' fixtures
7+
- Basically runs `docker compose config
8+
- Services in stack can be selected using 'core_services_selection', 'ops_services_selection' fixtures
99
1010
"""
1111

@@ -391,6 +391,10 @@ def _filter_services_and_dump(
391391
if "environment" in service:
392392
service["environment"] = _minio_fix(service["environment"])
393393

394+
if name == "postgres":
395+
# NOTE: # -c fsync=off is not recommended for production as this disable writing to disk https://pythonspeed.com/articles/faster-db-tests/
396+
service["command"] += ["-c", "fsync=off"]
397+
394398
# updates current docker-compose (also versioned ... do not change by hand)
395399
with docker_compose_path.open("wt") as fh:
396400
yaml.dump(content, fh, default_flow_style=False)

packages/service-library/src/servicelib/rabbitmq/_client_rpc.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,18 @@ async def create(
3232
cls, *, client_name: str, settings: RabbitSettings, **kwargs
3333
) -> "RabbitMQRPCClient":
3434
client = cls(client_name=client_name, settings=settings, **kwargs)
35-
await client._rpc_initialize() # noqa: SLF001
35+
await client._rpc_initialize()
3636
return client
3737

3838
async def _rpc_initialize(self) -> None:
39+
# NOTE: to show the connection name in the rabbitMQ UI see there
40+
# https://www.bountysource.com/issues/89342433-setting-custom-connection-name-via-client_properties-doesn-t-work-when-connecting-using-an-amqp-url
41+
#
42+
connection_name = f"{get_rabbitmq_client_unique_name(self.client_name)}.rpc"
43+
url = f"{self.settings.dsn}?name={connection_name}"
3944
self._connection = await aio_pika.connect_robust(
40-
self.settings.dsn,
41-
client_properties={
42-
"connection_name": f"{get_rabbitmq_client_unique_name(self.client_name)}.rpc"
43-
},
45+
url,
46+
client_properties={"connection_name": connection_name},
4447
)
4548
self._channel = await self._connection.channel()
4649

packages/settings-library/src/settings_library/redis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ def build_redis_dsn(self, db_index: RedisDatabase) -> str:
4242
),
4343
host=self.REDIS_HOST,
4444
port=self.REDIS_PORT,
45-
path=f"/{db_index}",
45+
path=f"{db_index}",
4646
)
4747
)

services/static-webserver/client/.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,3 @@ source/resource/iconfont/material
1414
# generator outputs
1515
/api/
1616
/test/
17-
18-
# translations for the moment ignored
19-
*.po

services/static-webserver/client/Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,17 @@ serve: compile ## serves site compiled in image in 127.0.0.1:8080
8888
docker run --rm -p 8080:8080 $(docker_image) $(qx_serve) --target=build
8989

9090

91+
# qx translate --------------------------
92+
93+
define qx_translate_extract =
94+
qx compile --update-po-files
95+
endef
96+
97+
.PHONY: translate-extract
98+
translate-extract: translate-extract ## the generated .po files goes to source/translation https://qooxdoo.org/documentation/v7.8/#/development/howto/internationalization?id=translation
99+
# qx compile --update-po-files
100+
$(docker_compose) run $(if $(detached),--detach --name=$(detached),--rm) qooxdoo-kit $(qx_translate_extract)
101+
91102

92103
# misc --------------------------
93104
.PHONY: shell

services/static-webserver/client/source/class/osparc/Application.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ qx.Class.define("osparc.Application", {
7474
const webSocket = osparc.wrapper.WebSocket.getInstance();
7575
webSocket.addListener("connect", () => osparc.WatchDog.getInstance().setOnline(true));
7676
webSocket.addListener("disconnect", () => osparc.WatchDog.getInstance().setOnline(false));
77-
webSocket.addListener("logout", () => this.logout(qx.locale.Manager.tr("You were logged out")));
77+
webSocket.addListener("logout", () => this.logout(qx.locale.Manager.tr("You have been logged out")));
7878
// alert the users that they are about to navigate away
7979
// from osparc. unfortunately it is not possible
8080
// to provide our own message here
@@ -371,7 +371,7 @@ qx.Class.define("osparc.Application", {
371371
__checkNewRelease: function() {
372372
if (osparc.NewRelease.firstTimeISeeThisFrontend()) {
373373
const newRelease = new osparc.NewRelease();
374-
const title = this.tr("New Release");
374+
const title = this.tr("New Version Released");
375375
const win = osparc.ui.window.Window.popUpInWindow(newRelease, title, 350, 135).set({
376376
clickAwayClose: false,
377377
resizable: false,
@@ -563,7 +563,7 @@ qx.Class.define("osparc.Application", {
563563
if (forcedReason) {
564564
osparc.FlashMessenger.logAs(forcedReason, "WARNING", 0);
565565
} else {
566-
osparc.FlashMessenger.logAs(this.tr("You are logged out"), "INFO");
566+
osparc.FlashMessenger.logAs(this.tr("You have been logged out"), "INFO");
567567
}
568568
this.__closeAllAndToLoginPage();
569569
},

services/static-webserver/client/source/class/osparc/CookieExpirationTracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ qx.Class.define("osparc.CookieExpirationTracker", {
112112
// /FLASH MESSAGE //
113113

114114
__logoutUser: function() {
115-
const reason = qx.locale.Manager.tr("Session expired");
115+
const reason = qx.locale.Manager.tr("Your session has expired");
116116
qx.core.Init.getApplication().logout(reason);
117117
}
118118
}

services/static-webserver/client/source/class/osparc/MaintenanceTracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ qx.Class.define("osparc.MaintenanceTracker", {
166166
end: null,
167167
reason: null
168168
});
169-
const reason = qx.locale.Manager.tr("We are under maintenance. Please check back later");
169+
const reason = qx.locale.Manager.tr("The service is under maintenance. Please check back later");
170170
qx.core.Init.getApplication().logout(reason);
171171
},
172172

services/static-webserver/client/source/class/osparc/TooSmallDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ qx.Class.define("osparc.TooSmallDialog", {
1919
extend: osparc.ui.window.SingletonWindow,
2020

2121
construct: function() {
22-
this.base(arguments, "too-small-logout", this.tr("Window too small"));
22+
this.base(arguments, "too-small-logout", this.tr("Window size too small"));
2323

2424
this.set({
2525
layout: new qx.ui.layout.VBox(10),

0 commit comments

Comments
 (0)