Skip to content

Commit 0f51e84

Browse files
committed
moving modules prior to change of webserver
1 parent 0e82b58 commit 0f51e84

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

services/storage/src/simcore_service_storage/api/rest/files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
from ..._meta import API_VTAG
3030
from ...constants import UPLOAD_TASKS_KEY
31+
from ...core.exceptions import FileMetaDataNotFoundError
3132
from ...dsm import get_dsm_provider
32-
from ...exceptions import FileMetaDataNotFoundError
3333
from ...models import (
3434
CopyAsSoftLinkParams,
3535
FileDownloadQueryParams,

services/storage/src/simcore_service_storage/api/rest/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
from pydantic import ValidationError
88
from servicelib.aiohttp.aiopg_utils import DBAPIError
99

10-
from ...datcore_adapter.datcore_adapter_exceptions import DatcoreAdapterTimeoutError
11-
from ...db_access_layer import InvalidFileIdentifierError
12-
from ...exceptions import (
10+
from ...core.exceptions import (
1311
FileAccessRightError,
1412
FileMetaDataNotFoundError,
1513
LinkAlreadyExistsError,
1614
ProjectAccessRightError,
1715
ProjectNotFoundError,
1816
)
17+
from ...datcore_adapter.datcore_adapter_exceptions import DatcoreAdapterTimeoutError
18+
from ...db_access_layer import InvalidFileIdentifierError
1919

2020
_logger = logging.getLogger(__name__)
2121

services/storage/src/simcore_service_storage/db_file_meta_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from sqlalchemy import and_, literal_column
1313
from sqlalchemy.dialects.postgresql import insert as pg_insert
1414

15-
from .exceptions import FileMetaDataNotFoundError
15+
from .core.exceptions import FileMetaDataNotFoundError
1616
from .models import FileMetaData, FileMetaDataAtDB, UserOrProjectFilter
1717

1818

services/storage/src/simcore_service_storage/simcore_s3_dsm.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@
5454
SIMCORE_S3_ID,
5555
SIMCORE_S3_STR,
5656
)
57+
from .core.exceptions import (
58+
FileAccessRightError,
59+
FileMetaDataNotFoundError,
60+
LinkAlreadyExistsError,
61+
ProjectAccessRightError,
62+
ProjectNotFoundError,
63+
)
5764
from .core.settings import Settings
5865
from .datcore_adapter import datcore_adapter
5966
from .db_access_layer import (
@@ -63,13 +70,6 @@
6370
get_readable_project_ids,
6471
)
6572
from .dsm_factory import BaseDataManager
66-
from .exceptions import (
67-
FileAccessRightError,
68-
FileMetaDataNotFoundError,
69-
LinkAlreadyExistsError,
70-
ProjectAccessRightError,
71-
ProjectNotFoundError,
72-
)
7373
from .models import (
7474
DatasetMetaData,
7575
FileMetaData,

services/storage/src/simcore_service_storage/simcore_s3_dsm_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from servicelib.utils import ensure_ends_with
1414

1515
from . import db_file_meta_data
16-
from .exceptions import FileMetaDataNotFoundError
16+
from .core.exceptions import FileMetaDataNotFoundError
1717
from .models import FileMetaData, FileMetaDataAtDB
1818
from .utils import convert_db_to_model
1919

services/storage/tests/unit/test_dsm_dsmcleaner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from pytest_simcore.helpers.parametrizations import byte_size_ids
2727
from simcore_postgres_database.storage_models import file_meta_data
2828
from simcore_service_storage import db_file_meta_data
29-
from simcore_service_storage.exceptions import (
29+
from simcore_service_storage.core.exceptions import (
3030
FileAccessRightError,
3131
FileMetaDataNotFoundError,
3232
)

services/storage/tests/unit/test_utils_handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
from pytest_mock import MockerFixture
1212
from servicelib.aiohttp.aiopg_utils import DBAPIError
1313
from simcore_service_storage.api.rest.utils import dsm_exception_handler
14-
from simcore_service_storage.db_access_layer import InvalidFileIdentifierError
15-
from simcore_service_storage.exceptions import (
14+
from simcore_service_storage.core.exceptions import (
1615
FileAccessRightError,
1716
FileMetaDataNotFoundError,
1817
ProjectAccessRightError,
1918
ProjectNotFoundError,
2019
)
20+
from simcore_service_storage.db_access_layer import InvalidFileIdentifierError
2121

2222

2323
@pytest.fixture()

0 commit comments

Comments
 (0)