Skip to content

Commit 69a6fe2

Browse files
committed
cleanup
1 parent 8f1a5a9 commit 69a6fe2

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

services/web/server/src/simcore_service_webserver/application_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings):
283283
WEBSERVER_DB_LISTENER: bool = True
284284
WEBSERVER_FOLDERS: bool = True
285285
WEBSERVER_GROUPS: bool = True
286-
WEBSERVER_LICENSES: bool
286+
WEBSERVER_LICENSES: bool = False
287287
WEBSERVER_META_MODELING: bool = True
288288
WEBSERVER_NOTIFICATIONS: bool = Field(default=True)
289289
WEBSERVER_PRODUCTS: bool = True

services/web/server/src/simcore_service_webserver/licenses/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from servicelib.aiohttp.application_setup import ModuleCategory, app_module_setup
99

1010
from ..rabbitmq import setup_rabbitmq
11+
from ..rest.plugin import setup_rest
1112
from . import (
1213
_licensed_items_checkouts_rest,
1314
_licensed_items_purchases_rest,
@@ -22,13 +23,13 @@
2223
__name__,
2324
ModuleCategory.ADDON,
2425
settings_name="WEBSERVER_LICENSES",
25-
depends=["simcore_service_webserver.rest"],
2626
logger=_logger,
2727
)
2828
def setup_licenses(app: web.Application):
2929
assert app[APP_SETTINGS_KEY].WEBSERVER_LICENSES # nosec
3030

3131
# routes
32+
setup_rest(app)
3233
app.router.add_routes(_licensed_items_rest.routes)
3334
app.router.add_routes(_licensed_items_purchases_rest.routes)
3435
app.router.add_routes(_licensed_items_checkouts_rest.routes)

services/web/server/tests/unit/isolated/test_application_settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def test_settings_to_client_statics_plugins(
8484

8585
assert settings.WEBSERVER_LOGIN
8686

87+
assert statics["webserverLicenses"] == settings.WEBSERVER_LICENSES
88+
8789
assert (
8890
statics["webserverLogin"]["LOGIN_ACCOUNT_DELETION_RETENTION_DAYS"]
8991
== settings.WEBSERVER_LOGIN.LOGIN_ACCOUNT_DELETION_RETENTION_DAYS

0 commit comments

Comments
 (0)