Skip to content

Commit c5718ee

Browse files
committed
cleanup methods in storage client
1 parent 42f66c1 commit c5718ee

File tree

1 file changed

+0
-21
lines changed
  • services/api-server/src/simcore_service_api_server/services_http

1 file changed

+0
-21
lines changed

services/api-server/src/simcore_service_api_server/services_http/storage.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
from settings_library.tracing import TracingSettings
3232
from simcore_service_api_server.models.schemas.files import UserFile
3333
from simcore_service_api_server.models.schemas.jobs import UserFileToProgramJob
34-
from starlette.datastructures import URL
3534
from tenacity import (
3635
AsyncRetrying,
3736
before_sleep_log,
@@ -250,26 +249,6 @@ async def abort_file_upload(self, *, user_id: int, file: File) -> None:
250249
)
251250
response.raise_for_status()
252251

253-
async def create_complete_upload_link(
254-
self, *, file: File, query: dict[str, str] | None = None
255-
) -> URL:
256-
url = URL(
257-
f"{self.client.base_url}locations/{self.SIMCORE_S3_ID}/files/{file.quoted_storage_file_id}:complete"
258-
)
259-
if query is not None:
260-
url = url.include_query_params(**query)
261-
return url
262-
263-
async def create_abort_upload_link(
264-
self, *, file: File, query: dict[str, str] | None = None
265-
) -> URL:
266-
url = URL(
267-
f"{self.client.base_url}locations/{self.SIMCORE_S3_ID}/files/{file.quoted_storage_file_id}:abort"
268-
)
269-
if query is not None:
270-
url = url.include_query_params(**query)
271-
return url
272-
273252
@_exception_mapper(http_status_map={})
274253
async def create_soft_link(
275254
self, *, user_id: int, target_s3_path: str, as_file_id: UUID

0 commit comments

Comments
 (0)