Skip to content

Commit 6987c8c

Browse files
committed
updates filters
1 parent 5afb5d6 commit 6987c8c

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
@@ -3964,6 +3964,16 @@ paths:
39643964
summary: List Projects Full Search
39653965
operationId: list_projects_full_search
39663966
parameters:
3967+
- name: filters
3968+
in: query
3969+
required: false
3970+
schema:
3971+
anyOf:
3972+
- type: string
3973+
contentMediaType: application/json
3974+
contentSchema: {}
3975+
- type: 'null'
3976+
title: Filters
39673977
- name: order_by
39683978
in: query
39693979
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)