Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env-devel
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ WEBSERVER_EMAIL={}
WEBSERVER_EXPORTER={}
WEBSERVER_FOLDERS=1
WEBSERVER_FRONTEND={}
WEBSERVER_FUNCTIONS=1
WEBSERVER_GARBAGE_COLLECTOR=null
WEBSERVER_GROUPS=1
WEBSERVER_GUNICORN_CMD_ARGS=--timeout=180
Expand Down
5 changes: 5 additions & 0 deletions services/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,7 @@ services:
WEBSERVER_ANNOUNCEMENTS: ${WEBSERVER_ANNOUNCEMENTS}
WEBSERVER_NOTIFICATIONS: ${WEBSERVER_NOTIFICATIONS}
WEBSERVER_CLUSTERS: ${WEBSERVER_CLUSTERS}
WEBSERVER_FUNCTIONS: 0
WEBSERVER_GROUPS: ${WEBSERVER_GROUPS}
WEBSERVER_PRODUCTS: ${WEBSERVER_PRODUCTS}
WEBSERVER_PUBLICATIONS: ${WEBSERVER_PUBLICATIONS}
Expand Down Expand Up @@ -892,6 +893,8 @@ services:
WEBSERVER_HOST: ${WB_API_WEBSERVER_HOST}
WEBSERVER_PORT: ${WB_API_WEBSERVER_PORT}
WEBSERVER_STATICWEB: "null"
WEBSERVER_FUNCTIONS: ${WEBSERVER_FUNCTIONS}


networks: *webserver_networks

Expand Down Expand Up @@ -937,6 +940,7 @@ services:
WEBSERVER_EXPORTER: ${WB_DB_EL_EXPORTER}
WEBSERVER_FOLDERS: ${WB_DB_EL_FOLDERS}
WEBSERVER_FRONTEND: ${WB_DB_EL_FRONTEND}
WEBSERVER_FUNCTIONS: 0
WEBSERVER_GARBAGE_COLLECTOR: ${WB_DB_EL_GARBAGE_COLLECTOR}
WEBSERVER_GROUPS: ${WB_DB_EL_GROUPS}
WEBSERVER_INVITATIONS: ${WB_DB_EL_INVITATIONS}
Expand Down Expand Up @@ -1049,6 +1053,7 @@ services:
WEBSERVER_EXPORTER: ${WB_GC_EXPORTER}
WEBSERVER_FOLDERS: ${WB_GC_FOLDERS}
WEBSERVER_FRONTEND: ${WB_GC_FRONTEND}
WEBSERVER_FUNCTIONS: 0
WEBSERVER_GARBAGE_COLLECTOR: ${WB_GC_GARBAGE_COLLECTOR}
WEBSERVER_GROUPS: ${WB_GC_GROUPS}
WEBSERVER_HOST: ${WEBSERVER_HOST}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ class ApplicationSettings(BaseApplicationSettings, MixinLoggingSettings):
WEBSERVER_FUNCTIONS: Annotated[
bool,
Field(
json_schema_extra={_X_FEATURE_UNDER_DEVELOPMENT: True},
description="Metamodeling functions plugin",
),
] = True
] = False

WEBSERVER_LOGLEVEL: Annotated[
LogLevel,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,11 @@ class DevSettings(ApplicationSettings):

if is_dev_feature_enabled:
assert settings.WEBSERVER_DEV_FEATURES_ENABLED is True
assert settings.WEBSERVER_FUNCTIONS is True

assert settings.TEST_FOO is True
assert settings.TEST_BAR == 42
else:
assert settings.WEBSERVER_DEV_FEATURES_ENABLED is False
assert settings.WEBSERVER_FUNCTIONS is False

assert settings.TEST_FOO is False
assert settings.TEST_BAR is None
Expand Down
11 changes: 9 additions & 2 deletions services/web/server/tests/unit/with_dbs/04/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@


import pytest
from pytest_simcore.helpers.monkeypatch_envs import setenvs_from_dict


@pytest.fixture
def app_environment(
app_environment: dict[str, str], monkeypatch: pytest.MonkeyPatch
) -> dict[str, str]:
# NOTE: overrides app_environment
monkeypatch.setenv("WEBSERVER_GARBAGE_COLLECTOR", "null")
return app_environment | {"WEBSERVER_GARBAGE_COLLECTOR": "null"}
return setenvs_from_dict(
monkeypatch,
{
**app_environment,
"WEBSERVER_GARBAGE_COLLECTOR": "null",
"WEBSERVER_FUNCTIONS": "0", # needs rabbitmq
},
)
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def app_environment(
monkeypatch,
{
**app_environment, # WARNING: AFTER env_devel_dict because HOST are set to 127.0.0.1 in here
"WEBSERVER_DEV_FEATURES_ENABLED": "1",
"WEBSERVER_FUNCTIONS": "1",
},
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ def app_environment(app_environment: EnvVarsDict, monkeypatch: pytest.MonkeyPatc
{
"WEBSERVER_ACTIVITY": "null",
"WEBSERVER_CATALOG": "null",
"WEBSERVER_NOTIFICATIONS": "0",
"WEBSERVER_DIAGNOSTICS": "null",
"WEBSERVER_EXPORTER": "null",
"WEBSERVER_FUNCTIONS": "0",
"WEBSERVER_GROUPS": "1",
"WEBSERVER_NOTIFICATIONS": "0",
"WEBSERVER_PRODUCTS": "1",
"WEBSERVER_PUBLICATIONS": "0",
"WEBSERVER_RABBITMQ": "null",
Expand Down
Loading