Skip to content

Commit

Permalink
updates filters
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Jan 6, 2025
1 parent 3d3b7df commit 3b2db9d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/models-library/src/models_library/workspaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def validate_workspace_id(cls, value, info: ValidationInfo):
if scope == WorkspaceScope.SHARED and value is None:
msg = f"workspace_id must be provided when workspace_scope is SHARED. Got {scope=}, {value=}"
raise ValueError(msg)

if scope != WorkspaceScope.SHARED and value is not None:
msg = f"workspace_id should be None when workspace_scope is not SHARED. Got {scope=}, {value=}"
raise ValueError(msg)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3909,6 +3909,16 @@ paths:
summary: List Projects Full Search
operationId: list_projects_full_search
parameters:
- name: filters
in: query
required: false
schema:
anyOf:
- type: string
contentMediaType: application/json
contentSchema: {}
- type: 'null'
title: Filters
- name: order_by
in: query
required: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ async def list_projects( # pylint: disable=too-many-arguments,too-many-statemen
)

else:
# FIXME: PC: Aks Matus why test_trash_project_in_subfolder fails here!
assert ( # nosec
workspace_query.workspace_scope == WorkspaceScope.SHARED
)
Expand Down

0 comments on commit 3b2db9d

Please sign in to comment.