Skip to content

Commit 3b2db9d

Browse files
committed
updates filters
1 parent 3d3b7df commit 3b2db9d

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

packages/models-library/src/models_library/workspaces.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def validate_workspace_id(cls, value, info: ValidationInfo):
3636
if scope == WorkspaceScope.SHARED and value is None:
3737
msg = f"workspace_id must be provided when workspace_scope is SHARED. Got {scope=}, {value=}"
3838
raise ValueError(msg)
39+
3940
if scope != WorkspaceScope.SHARED and value is not None:
4041
msg = f"workspace_id should be None when workspace_scope is not SHARED. Got {scope=}, {value=}"
4142
raise ValueError(msg)

services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3909,6 +3909,16 @@ paths:
39093909
summary: List Projects Full Search
39103910
operationId: list_projects_full_search
39113911
parameters:
3912+
- name: filters
3913+
in: query
3914+
required: false
3915+
schema:
3916+
anyOf:
3917+
- type: string
3918+
contentMediaType: application/json
3919+
contentSchema: {}
3920+
- type: 'null'
3921+
title: Filters
39123922
- name: order_by
39133923
in: query
39143924
required: false

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ async def list_projects( # pylint: disable=too-many-arguments,too-many-statemen
535535
)
536536

537537
else:
538+
# FIXME: PC: Aks Matus why test_trash_project_in_subfolder fails here!
538539
assert ( # nosec
539540
workspace_query.workspace_scope == WorkspaceScope.SHARED
540541
)

0 commit comments

Comments
 (0)