Skip to content

Commit 3ef0d26

Browse files
author
Andrei Neagu
committed
Merge remote-tracking branch 'upstream/master' into pr-osparc-ooil-extensions
2 parents d24e994 + 07e603b commit 3ef0d26

File tree

236 files changed

+4943
-1321
lines changed

Some content is hidden

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

236 files changed

+4943
-1321
lines changed

.env-devel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ LOGIN_ACCOUNT_DELETION_RETENTION_DAYS=31
334334
LOGIN_REGISTRATION_CONFIRMATION_REQUIRED=0
335335
LOGIN_REGISTRATION_INVITATION_REQUIRED=0
336336
PROJECTS_INACTIVITY_INTERVAL=00:00:20
337-
PROJECTS_TRASH_RETENTION_DAYS=7
338337
PROJECTS_MAX_COPY_SIZE_BYTES=30Gib
339338
PROJECTS_MAX_NUM_RUNNING_DYNAMIC_NODES=5
340339
REST_SWAGGER_API_DOC_ENABLED=1
@@ -353,6 +352,7 @@ TRACING_OPENTELEMETRY_COLLECTOR_EXPORTER_ENDPOINT=http://jaeger:4318
353352
TRACING_OPENTELEMETRY_COLLECTOR_PORT=4318
354353
TRACING_OPENTELEMETRY_COLLECTOR_SAMPLING_PERCENTAGE=100
355354
TRAEFIK_SIMCORE_ZONE=internal_simcore_stack
355+
TRASH_RETENTION_DAYS=7
356356
TWILIO_ACCOUNT_SID=DUMMY
357357
TWILIO_AUTH_TOKEN=DUMMY
358358
TWILIO_COUNTRY_CODES_W_ALPHANUMERIC_SID_SUPPORT=["41"]

.github/dependabot.yml

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ updates:
1111
- sanderegg
1212
assignees:
1313
- pcrespov
14+
- sanderegg
15+
labels:
16+
- t:maintenance
1417
ignore:
1518
- dependency-name: docker-compose
1619
versions:
@@ -26,32 +29,10 @@ updates:
2629
- dependency-name: httpx
2730
versions:
2831
- 0.17.0
29-
- package-ecosystem: pip
30-
directory: "/packages/service-library"
31-
schedule:
32-
interval: weekly
33-
time: "04:00"
34-
open-pull-requests-limit: 10
35-
reviewers:
36-
- pcrespov
37-
- sanderegg
38-
assignees:
39-
- pcrespov
40-
ignore:
4132
- dependency-name: openapi-core
4233
versions:
4334
- "> 0.12.0, < 1"
44-
- package-ecosystem: pip
45-
directory: "/packages/postgres-database"
46-
schedule:
47-
interval: weekly
48-
time: "04:00"
49-
open-pull-requests-limit: 10
50-
reviewers:
51-
- pcrespov
52-
- sanderegg
53-
assignees:
54-
- pcrespov
35+
5536
- package-ecosystem: "github-actions"
5637
directory: "/"
5738
schedule:
@@ -62,3 +43,5 @@ updates:
6243
- pcrespov
6344
assignees:
6445
- sanderegg
46+
labels:
47+
- t:maintenance

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,15 +1730,13 @@ jobs:
17301730
matrix:
17311731
python: ["3.11"]
17321732
os: [ubuntu-22.04]
1733-
docker_buildx: [v0.10.4]
17341733
fail-fast: false
17351734
steps:
17361735
- uses: actions/checkout@v4
17371736
- name: setup docker buildx
17381737
id: buildx
17391738
uses: docker/setup-buildx-action@v3
17401739
with:
1741-
version: ${{ matrix.docker_buildx }}
17421740
driver: docker-container
17431741
- name: setup python environment
17441742
uses: actions/setup-python@v5

api/specs/web-server/_folders.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
from models_library.generics import Envelope
2020
from models_library.rest_error import EnvelopedError
2121
from simcore_service_webserver._meta import API_VTAG
22-
from simcore_service_webserver.folders._exceptions_handlers import _TO_HTTP_ERROR_MAP
23-
from simcore_service_webserver.folders._models import (
22+
from simcore_service_webserver.folders._common.exceptions_handlers import (
23+
_TO_HTTP_ERROR_MAP,
24+
)
25+
from simcore_service_webserver.folders._common.models import (
2426
FolderSearchQueryParams,
2527
FoldersListQueryParams,
2628
FoldersPathParams,
27-
)
28-
from simcore_service_webserver.folders._workspaces_handlers import (
29-
_FolderWorkspacesPathParams,
29+
FolderWorkspacesPathParams,
3030
)
3131

3232
router = APIRouter(
@@ -109,6 +109,6 @@ async def delete_folder(
109109
tags=["workspaces"],
110110
)
111111
async def move_folder_to_workspace(
112-
_path: Annotated[_FolderWorkspacesPathParams, Depends()],
112+
_path: Annotated[FolderWorkspacesPathParams, Depends()],
113113
):
114114
...

api/specs/web-server/_projects_wallet.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,20 @@
88
# pylint: disable=unused-variable
99
# pylint: disable=too-many-arguments
1010

11+
from typing import Annotated
1112

1213
from _common import assert_handler_signature_against_model
13-
from fastapi import APIRouter
14+
from fastapi import APIRouter, Depends, status
1415
from models_library.api_schemas_webserver.wallets import WalletGet
1516
from models_library.generics import Envelope
1617
from models_library.projects import ProjectID
1718
from models_library.wallets import WalletID
1819
from simcore_service_webserver._meta import API_VTAG
1920
from simcore_service_webserver.projects._common.models import ProjectPathParams
21+
from simcore_service_webserver.projects._wallets_handlers import (
22+
_PayProjectDebtBody,
23+
_ProjectWalletPathParams,
24+
)
2025

2126
router = APIRouter(
2227
prefix=f"/{API_VTAG}",
@@ -51,3 +56,17 @@ async def connect_wallet_to_project(
5156

5257

5358
assert_handler_signature_against_model(connect_wallet_to_project, ProjectPathParams)
59+
60+
61+
@router.post(
62+
"/projects/{project_id}/wallet/{wallet_id}:pay-debt",
63+
status_code=status.HTTP_204_NO_CONTENT,
64+
)
65+
async def pay_project_debt(
66+
_path: Annotated[_ProjectWalletPathParams, Depends()],
67+
_body: Annotated[_PayProjectDebtBody, Depends()],
68+
):
69+
...
70+
71+
72+
assert_handler_signature_against_model(connect_wallet_to_project, ProjectPathParams)

api/specs/web-server/_trash.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
from fastapi import APIRouter, Depends, status
1111
from models_library.trash import RemoveQueryParams
1212
from simcore_service_webserver._meta import API_VTAG
13-
from simcore_service_webserver.folders._models import (
13+
from simcore_service_webserver.folders._common.models import (
1414
FoldersPathParams,
1515
FolderTrashQueryParams,
1616
)
17-
from simcore_service_webserver.projects._trash_handlers import ProjectPathParams
18-
from simcore_service_webserver.workspaces._models import (
17+
from simcore_service_webserver.projects._trash_rest import ProjectPathParams
18+
from simcore_service_webserver.workspaces._common.models import (
1919
WorkspacesPathParams,
2020
WorkspaceTrashQueryParams,
2121
)

api/specs/web-server/_workspaces.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@
1919
from models_library.generics import Envelope
2020
from models_library.rest_error import EnvelopedError
2121
from simcore_service_webserver._meta import API_VTAG
22-
from simcore_service_webserver.folders._exceptions_handlers import _TO_HTTP_ERROR_MAP
23-
from simcore_service_webserver.workspaces._groups_api import WorkspaceGroupGet
24-
from simcore_service_webserver.workspaces._models import (
22+
from simcore_service_webserver.folders._common.exceptions_handlers import (
23+
_TO_HTTP_ERROR_MAP,
24+
)
25+
from simcore_service_webserver.workspaces._common.models import (
2526
WorkspacesGroupsBodyParams,
2627
WorkspacesGroupsPathParams,
2728
WorkspacesListQueryParams,
2829
WorkspacesPathParams,
2930
)
31+
from simcore_service_webserver.workspaces._groups_service import WorkspaceGroupGet
3032

3133
router = APIRouter(
3234
prefix=f"/{API_VTAG}",

ci/helpers/install_pylint.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ PYLINT_VERSION="$(grep pylint== $REQUIREMENTS | awk '{print $1}')"
1616
uv pip install "$PYLINT_VERSION"
1717

1818
# Minimal packages to pass linter
19-
echo "$CURDIR/requirements.txt"
20-
uv pip install -r "$CURDIR/requirements.txt"
19+
echo "$CURDIR/requirements/requirements.txt"
20+
uv pip install -r "$CURDIR/requirements/requirements.txt"
2121

2222
echo "INFO:" "$(pylint --version)" "@" "$(command -v pylint)"

ci/helpers/requirements/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# Targets to pip-compile requirements
3+
#
4+
include ../../../requirements/base.Makefile
5+
6+
# Add here any extra explicit dependency: e.g. _migration.txt: _base.txt

ci/helpers/requirements.in renamed to ci/helpers/requirements/requirements.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#
33
# Installing these void e.g. E0611: No name 'UploadFile' in module 'fastapi' (no-name-in-module)
44
#
5-
--constraint ../../requirements/constraints.txt
5+
--constraint ../../../requirements/constraints.txt
66

77
aiohttp
88
fastapi
9+
docker

0 commit comments

Comments
 (0)