Skip to content

Commit 9ae8293

Browse files
committed
changed force
1 parent 82d4b4d commit 9ae8293

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4338,7 +4338,7 @@ paths:
43384338
'403':
43394339
description: ProjectInvalidRightsError
43404340
'404':
4341-
description: ProjectNotFoundError, UserDefaultWalletNotFoundError
4341+
description: UserDefaultWalletNotFoundError, ProjectNotFoundError
43424342
'409':
43434343
description: ProjectTooManyProjectOpenedError
43444344
'422':
@@ -5390,7 +5390,7 @@ paths:
53905390
schema:
53915391
title: Force
53925392
type: boolean
5393-
default: true
5393+
default: false
53945394
name: force
53955395
in: query
53965396
responses:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ class Config:
2727

2828
class RemoveQueryParams(BaseModel):
2929
force: bool = Field(
30-
default=True, description="Force removal (even if resource is active)"
30+
default=False, description="Force removal (even if resource is active)"
3131
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class HttpErrorInfo(NamedTuple):
3737
_TO_HTTP_ERROR_MAP: dict[type[Exception], HttpErrorInfo] = {
3838
ProjectRunningConflictError: HttpErrorInfo(
3939
status.HTTP_409_CONFLICT,
40-
"Current study is in use and cannot be trashed [{project_uuid}]",
40+
"Current study is in use and cannot be trashed [{project_uuid}]. Please stop all services first and try again",
4141
),
4242
ProjectStopError: HttpErrorInfo(
4343
status.HTTP_503_SERVICE_UNAVAILABLE,

0 commit comments

Comments
 (0)