Skip to content

Commit

Permalink
fixes testss
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Nov 20, 2024
1 parent 567075e commit 75964f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
HttpErrorInfo,
create_exception_handlers_decorator,
)
from ..projects.exceptions import ProjectRunningConflictError, ProjectStoppingError
from ..projects.exceptions import (
BaseProjectError,
ProjectRunningConflictError,
ProjectStoppingError,
)
from .errors import (
WorkspaceAccessForbiddenError,
WorkspaceGroupNotFoundError,
Expand Down Expand Up @@ -44,6 +48,6 @@


handle_plugin_requests_exceptions = create_exception_handlers_decorator(
exceptions_catch=(WorkspacesValueError),
exceptions_catch=(BaseProjectError, WorkspacesValueError),
exc_to_status_map=_TO_HTTP_ERROR_MAP,
)
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def trash_workspace(
)

# IMPLICIT trash
child_folders: list[FolderID] = [] # TODO: find children
child_folders: list[FolderID] = [] # TODO: find children. Check with MD

for folder_id in child_folders:
await trash_folder(
Expand All @@ -70,7 +70,7 @@ async def trash_workspace(
force_stop_first=force_stop_first,
)

child_projects: list[ProjectID] = [] # TODO: find children
child_projects: list[ProjectID] = [] # TODO: find children. Check with MD

for project_id in child_projects:
await trash_project(
Expand Down Expand Up @@ -104,7 +104,7 @@ async def untrash_workspace(
updates=WorkspaceUpdateDB(trashed=None, trashed_by=None),
)

child_folders: list[FolderID] = [] # TODO: find children
child_folders: list[FolderID] = [] # TODO: find children. Check with MD

for folder_id in child_folders:
await untrash_folder(
Expand All @@ -114,7 +114,7 @@ async def untrash_workspace(
folder_id=folder_id,
)

child_projects: list[ProjectID] = [] # TODO: find children
child_projects: list[ProjectID] = [] # TODO: find children. Check with MD

for project_id in child_projects:
await untrash_project(
Expand Down

0 comments on commit 75964f9

Please sign in to comment.