Skip to content

Commit

Permalink
backwards_compatibility.py -> model_adapter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bisgaard-itis committed Dec 5, 2024
1 parent b7e09b4 commit 794cbf3
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from fastapi import APIRouter, Depends, status

from ...models.schemas.backwards_compatibility import GetCreditPrice
from ...models.schemas.model_adapter import GetCreditPrice
from ..dependencies.webserver import AuthSession, get_webserver_session
from ._constants import FMSG_CHANGELOG_NEW_IN_VERSION

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from ...exceptions.service_errors_utils import DEFAULT_BACKEND_SERVICE_STATUS_CODES
from ...models.basic_types import VersionStr
from ...models.pagination import OnePage, Page, PaginationParams
from ...models.schemas.backwards_compatibility import ServicePricingPlanGet
from ...models.schemas.errors import ErrorGet
from ...models.schemas.model_adapter import ServicePricingPlanGet
from ...models.schemas.solvers import Solver, SolverKeyId, SolverPort
from ...services.catalog import CatalogApi
from ..dependencies.application import get_reverse_url_mapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
from ...exceptions.service_errors_utils import DEFAULT_BACKEND_SERVICE_STATUS_CODES
from ...models.basic_types import LogStreamingResponse, VersionStr
from ...models.pagination import Page, PaginationParams
from ...models.schemas.backwards_compatibility import (
PricingUnitGet,
WalletGetWithAvailableCredits,
)
from ...models.schemas.errors import ErrorGet
from ...models.schemas.files import File
from ...models.schemas.jobs import (
Expand All @@ -37,6 +33,10 @@
JobMetadata,
JobOutputs,
)
from ...models.schemas.model_adapter import (
PricingUnitGet,
WalletGetWithAvailableCredits,
)
from ...models.schemas.solvers import SolverKeyId
from ...services.catalog import CatalogApi
from ...services.director_v2 import DirectorV2Api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from fastapi import APIRouter, Depends, status

from ...exceptions.service_errors_utils import DEFAULT_BACKEND_SERVICE_STATUS_CODES
from ...models.schemas.backwards_compatibility import WalletGetWithAvailableCredits
from ...models.schemas.errors import ErrorGet
from ...models.schemas.model_adapter import WalletGetWithAvailableCredits
from ..dependencies.webserver import AuthSession, get_webserver_session
from ._constants import FMSG_CHANGELOG_NEW_IN_VERSION

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@
SolverOutputNotFoundError,
WalletNotFoundError,
)
from simcore_service_api_server.models.schemas.backwards_compatibility import (
GetCreditPrice,
)
from simcore_service_api_server.models.schemas.model_adapter import GetCreditPrice
from tenacity import TryAgain
from tenacity.asyncio import AsyncRetrying
from tenacity.before_sleep import before_sleep_log
Expand All @@ -74,11 +72,8 @@
)
from ..models.basic_types import VersionStr
from ..models.pagination import MAXIMUM_NUMBER_OF_ITEMS_PER_PAGE
from ..models.schemas.backwards_compatibility import (
PricingUnitGet,
WalletGetWithAvailableCredits,
)
from ..models.schemas.jobs import MetaValueType
from ..models.schemas.model_adapter import PricingUnitGet, WalletGetWithAvailableCredits
from ..models.schemas.profiles import Profile, ProfileUpdate
from ..models.schemas.solvers import SolverKeyId
from ..models.schemas.studies import StudyPort
Expand Down
2 changes: 1 addition & 1 deletion services/api-server/tests/unit/_with_db/test_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from models_library.wallets import WalletStatus
from pydantic import PositiveInt
from simcore_service_api_server._meta import API_VTAG
from simcore_service_api_server.models.schemas.backwards_compatibility import (
from simcore_service_api_server.models.schemas.model_adapter import (
WalletGetWithAvailableCredits,
)

Expand Down
4 changes: 2 additions & 2 deletions services/api-server/tests/unit/test_api_solver_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
SideEffectCallback,
)
from simcore_service_api_server._meta import API_VTAG
from simcore_service_api_server.models.schemas.backwards_compatibility import (
from simcore_service_api_server.models.schemas.jobs import Job, JobStatus
from simcore_service_api_server.models.schemas.model_adapter import (
PricingUnitGet,
WalletGetWithAvailableCredits,
)
from simcore_service_api_server.models.schemas.jobs import Job, JobStatus
from simcore_service_api_server.models.schemas.solvers import Solver
from simcore_service_api_server.services.director_v2 import ComputationTaskGet

Expand Down
2 changes: 1 addition & 1 deletion services/api-server/tests/unit/test_api_wallets.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
HttpApiCallCaptureModel,
)
from simcore_service_api_server._meta import API_VTAG
from simcore_service_api_server.models.schemas.backwards_compatibility import (
from simcore_service_api_server.models.schemas.model_adapter import (
WalletGetWithAvailableCredits,
)

Expand Down

0 comments on commit 794cbf3

Please sign in to comment.