Skip to content

Commit f53b3f8

Browse files
authored
Merge branch 'master' into 2025/upgrade/postgres
2 parents e0f8d57 + 85c3281 commit f53b3f8

File tree

81 files changed

+487
-1183
lines changed

Some content is hidden

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

81 files changed

+487
-1183
lines changed

.env-devel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,10 @@ SIMCORE_VCS_RELEASE_TAG=latest
348348
STUDIES_ACCESS_ANONYMOUS_ALLOWED=0
349349
STUDIES_DEFAULT_SERVICE_THUMBNAIL=https://via.placeholder.com/170x120.png
350350
TRACING_OPENTELEMETRY_COLLECTOR_BATCH_SIZE=2
351-
TRACING_OPENTELEMETRY_COLLECTOR_PORT=4318
352351
TRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT=http://opentelemetry-collector
353-
TRACING_OPENTELEMETRY_COLLECTOR_SAMPLING_PERCENTAGE=100
354352
TRACING_OPENTELEMETRY_COLLECTOR_EXPORTER_ENDPOINT=http://jaeger:4318
353+
TRACING_OPENTELEMETRY_COLLECTOR_PORT=4318
354+
TRACING_OPENTELEMETRY_COLLECTOR_SAMPLING_PERCENTAGE=100
355355
TRAEFIK_SIMCORE_ZONE=internal_simcore_stack
356356
TWILIO_ACCOUNT_SID=DUMMY
357357
TWILIO_AUTH_TOKEN=DUMMY
@@ -365,8 +365,8 @@ WEBSERVER_DEV_FEATURES_ENABLED=0
365365
WEBSERVER_DIAGNOSTICS={}
366366
WEBSERVER_EMAIL={}
367367
WEBSERVER_EXPORTER={}
368-
WEBSERVER_FRONTEND={}
369368
WEBSERVER_FOLDERS=1
369+
WEBSERVER_FRONTEND={}
370370
WEBSERVER_GARBAGE_COLLECTOR=null
371371
WEBSERVER_GROUPS=1
372372
WEBSERVER_GUNICORN_CMD_ARGS=--timeout=180

api/specs/web-server/_projects_crud.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from models_library.rest_pagination import Page
3131
from pydantic import BaseModel
3232
from simcore_service_webserver._meta import API_VTAG
33-
from simcore_service_webserver.projects._common_models import ProjectPathParams
33+
from simcore_service_webserver.projects._common.models import ProjectPathParams
3434
from simcore_service_webserver.projects._crud_handlers import ProjectCreateParams
3535
from simcore_service_webserver.projects._crud_handlers_models import (
3636
ProjectActiveQueryParams,

api/specs/web-server/_projects_groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from fastapi import APIRouter, Depends, status
1010
from models_library.generics import Envelope
1111
from simcore_service_webserver._meta import API_VTAG
12-
from simcore_service_webserver.projects._common_models import ProjectPathParams
12+
from simcore_service_webserver.projects._common.models import ProjectPathParams
1313
from simcore_service_webserver.projects._groups_api import ProjectGroupGet
1414
from simcore_service_webserver.projects._groups_handlers import (
1515
_ProjectsGroupsBodyParams,

api/specs/web-server/_projects_wallet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from models_library.projects import ProjectID
1717
from models_library.wallets import WalletID
1818
from simcore_service_webserver._meta import API_VTAG
19-
from simcore_service_webserver.projects._common_models import ProjectPathParams
19+
from simcore_service_webserver.projects._common.models import ProjectPathParams
2020

2121
router = APIRouter(
2222
prefix=f"/{API_VTAG}",

services/web/server/setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ commit_args = --no-verify
1212
[tool:pytest]
1313
addopts = --strict-markers
1414
asyncio_mode = auto
15-
markers =
15+
markers =
1616
slow: marks tests as slow (deselect with '-m "not slow"')
1717
acceptance_test: "marks tests as 'acceptance tests' i.e. does the system do what the user expects? Typically those are workflows."
1818
testit: "marks test to run during development"
1919
heavy_load: "mark tests that require large amount of data"
2020

2121
[mypy]
22-
plugins =
22+
plugins =
2323
pydantic.mypy
2424
sqlalchemy.ext.mypy.plugin

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

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,13 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings):
175175
json_schema_extra={"auto_default_from_env": True},
176176
description="director-v2 service client's plugin",
177177
)
178+
179+
WEBSERVER_DYNAMIC_SCHEDULER: DynamicSchedulerSettings | None = Field(
180+
json_schema_extra={"auto_default_from_env": True},
181+
)
182+
178183
WEBSERVER_EMAIL: SMTPSettings | None = Field(
179-
json_schema_extra={"auto_default_from_env": True}, description="email plugin"
184+
json_schema_extra={"auto_default_from_env": True}
180185
)
181186
WEBSERVER_EXPORTER: ExporterSettings | None = Field(
182187
json_schema_extra={"auto_default_from_env": True}, description="exporter plugin"
@@ -204,9 +209,8 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings):
204209
description="payments plugin settings",
205210
)
206211

207-
WEBSERVER_DYNAMIC_SCHEDULER: DynamicSchedulerSettings | None = Field(
208-
description="dynamic-scheduler plugin settings",
209-
json_schema_extra={"auto_default_from_env": True},
212+
WEBSERVER_PROJECTS: ProjectsSettings | None = Field(
213+
json_schema_extra={"auto_default_from_env": True}
210214
)
211215

212216
WEBSERVER_REDIS: RedisSettings | None = Field(
@@ -254,15 +258,19 @@ class ApplicationSettings(BaseCustomSettings, MixinLoggingSettings):
254258
description="tracing plugin", json_schema_extra={"auto_default_from_env": True}
255259
)
256260

257-
WEBSERVER_PROJECTS: ProjectsSettings | None = Field(
258-
description="projects plugin", json_schema_extra={"auto_default_from_env": True}
259-
)
260-
WEBSERVER_RABBITMQ: RabbitSettings | None = Field(
261-
description="rabbitmq plugin", json_schema_extra={"auto_default_from_env": True}
262-
)
263-
WEBSERVER_USERS: UsersSettings | None = Field(
264-
description="users plugin", json_schema_extra={"auto_default_from_env": True}
265-
)
261+
WEBSERVER_RABBITMQ: Annotated[
262+
RabbitSettings | None,
263+
Field(
264+
json_schema_extra={"auto_default_from_env": True},
265+
),
266+
]
267+
268+
WEBSERVER_USERS: Annotated[
269+
UsersSettings | None,
270+
Field(
271+
json_schema_extra={"auto_default_from_env": True},
272+
),
273+
]
266274

267275
# These plugins only require (for the moment) an entry to toggle between enabled/disabled
268276
WEBSERVER_ANNOUNCEMENTS: bool = False

services/web/server/src/simcore_service_webserver/projects/_comments_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from ..security.decorators import permission_required
3232
from ..utils_aiohttp import envelope_json_response
3333
from . import _comments_api, projects_api
34-
from ._common_models import RequestContext
34+
from ._common.models import RequestContext
3535
from .exceptions import ProjectInvalidRightsError, ProjectNotFoundError
3636

3737
_logger = logging.getLogger(__name__)

services/web/server/src/simcore_service_webserver/projects/_common/__init__.py

Whitespace-only changes.

services/web/server/src/simcore_service_webserver/projects/_common_models.py renamed to services/web/server/src/simcore_service_webserver/projects/_common/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from models_library.projects import ProjectID
88
from pydantic import BaseModel, ConfigDict, Field
99

10-
from ..models import RequestContext
10+
from ...models import RequestContext
1111

1212
assert RequestContext.__name__ # nosec
1313

services/web/server/src/simcore_service_webserver/projects/_crud_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
from ..users.api import get_user_fullname
4949
from ..workspaces.errors import WorkspaceAccessForbiddenError, WorkspaceNotFoundError
5050
from . import _crud_api_create, _crud_api_read, projects_api
51-
from ._common_models import ProjectPathParams, RequestContext
51+
from ._common.models import ProjectPathParams, RequestContext
5252
from ._crud_handlers_models import (
5353
ProjectActiveQueryParams,
5454
ProjectCreateHeaders,

0 commit comments

Comments
 (0)