File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
packages/models-library/src/models_library
src/simcore_service_storage Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,9 @@ class BaseProjectModel(BaseModel):
107107 last_change_date : datetime
108108
109109 # Pipeline of nodes (SEE projects_nodes.py)
110- # FIXME: pedro removes this one
111- workbench : Annotated [NodesDict , Field (description = "Project's pipeline" )]
110+ # FIXME: pedro checks this one
111+ # NOTE: GCG: a validation failed (See: services/storage/src/simcore_service_storage/modules/db/projects.py)
112+ # workbench: Annotated[NodesDict, Field(description="Project's pipeline")]
112113
113114
114115class ProjectAtDB (BaseProjectModel ):
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ async def list_valid_projects_in(
2727 async with pass_or_acquire_connection (self .db_engine , connection ) as conn :
2828 async for row in await conn .stream (
2929 sa .select (projects ).where (
30- projects .c .uuid .in_ ([ f"{ pid } " for pid in project_uuids ] )
30+ projects .c .uuid .in_ (f"{ pid } " for pid in project_uuids )
3131 )
3232 ):
3333 with suppress (ValidationError ):
@@ -43,7 +43,7 @@ async def get_project_id_and_node_id_to_names_map(
4343 async with pass_or_acquire_connection (self .db_engine , connection ) as conn :
4444 async for row in await conn .stream (
4545 sa .select (projects .c .uuid , projects .c .name ).where (
46- projects .c .uuid .in_ ([ f"{ pid } " for pid in project_uuids ] )
46+ projects .c .uuid .in_ (f"{ pid } " for pid in project_uuids )
4747 )
4848 ):
4949 names_map [ProjectID (row .uuid )] = {f"{ row .uuid } " : row .name }
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ async def _add_frontend_needed_data(
134134 assert d .project_id # nosec
135135 names_mapping = prj_names_mapping [d .project_id ]
136136 d .project_name = names_mapping [f"{ d .project_id } " ]
137- if d .node_id in names_mapping :
137+ if f" { d .node_id } " in names_mapping :
138138 assert d .node_id # nosec
139139 d .node_name = names_mapping [f"{ d .node_id } " ]
140140 if d .node_name and d .project_name :
Original file line number Diff line number Diff line change 6363from types_aiobotocore_s3 import S3Client
6464from yarl import URL
6565
66- pytest_simcore_core_services_selection = ["postgres" ]
66+ pytest_simcore_core_services_selection = ["postgres" , "rabbit" ]
6767pytest_simcore_ops_services_selection = ["adminer" ]
6868
6969
You can’t perform that action at this time.
0 commit comments