File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
packages/models-library/src/models_library/rpc/webserver
services/web/server/src/simcore_service_webserver/projects/_controller Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11from datetime import datetime
22from typing import Annotated , TypeAlias
33
4- from models_library .projects import NodesDict , ProjectID
4+ from models_library .projects import ProjectID
55from models_library .rpc_pagination import PageRpc
66from pydantic import BaseModel , ConfigDict , Field
77
88
99class ProjectRpcGet (BaseModel ):
10+ """
11+ Minimal information about a project that (for now) will fullfill
12+ the needs of the api-server. Specifically, the fields needed in
13+ project to call create_job_from_project
14+ """
15+
1016 uuid : Annotated [
1117 ProjectID ,
1218 Field (description = "project unique identifier" ),
@@ -21,8 +27,6 @@ class ProjectRpcGet(BaseModel):
2127 creation_date : datetime
2228 last_change_date : datetime
2329
24- workbench : Annotated [NodesDict , Field (description = "Project's pipeline" )]
25-
2630 model_config = ConfigDict (
2731 extra = "forbid" ,
2832 populate_by_name = True ,
Original file line number Diff line number Diff line change @@ -82,7 +82,6 @@ async def list_my_projects_marked_as_jobs(
8282 description = project .description ,
8383 creation_date = project .creation_date ,
8484 last_change_date = project .last_change_date ,
85- workbench = {},
8685 )
8786 for project in projects
8887 ]
You can’t perform that action at this time.
0 commit comments