Skip to content

Commit b73a36a

Browse files
authored
🎨 state of webserverDevFeaturesEnabled flag is passed in statics for the front-end (#7490)
1 parent 927caed commit b73a36a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -540,17 +540,18 @@ def to_client_statics(self) -> dict[str, Any]:
540540
"SIMCORE_VCS_RELEASE_TAG": True,
541541
"SIMCORE_VCS_RELEASE_URL": True,
542542
"SWARM_STACK_NAME": True,
543+
"WEBSERVER_DEV_FEATURES_ENABLED": True,
543544
"WEBSERVER_LOGIN": {
544545
"LOGIN_ACCOUNT_DELETION_RETENTION_DAYS",
545546
"LOGIN_2FA_REQUIRED",
546547
},
547548
"WEBSERVER_PROJECTS": {
548549
"PROJECTS_MAX_NUM_RUNNING_DYNAMIC_NODES",
549550
},
551+
"WEBSERVER_SESSION": {"SESSION_COOKIE_MAX_AGE"},
550552
"WEBSERVER_TRASH": {
551553
"TRASH_RETENTION_DAYS",
552554
},
553-
"WEBSERVER_SESSION": {"SESSION_COOKIE_MAX_AGE"},
554555
},
555556
exclude_none=True,
556557
)

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

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def test_settings_to_client_statics_plugins(
9393
assert settings.WEBSERVER_LOGIN
9494

9595
assert "webserverLicenses" not in statics
96+
assert "webserverDevFeaturesEnabled" in statics
9697

9798
assert (
9899
statics["webserverLogin"]["LOGIN_ACCOUNT_DELETION_RETENTION_DAYS"]

0 commit comments

Comments
 (0)