Skip to content

Commit

Permalink
chore: move loaders and context out of types (#156)
Browse files Browse the repository at this point in the history
* chore: move loaders and context out of types

* Add back loaders
  • Loading branch information
mikeldking authored Jan 5, 2023
1 parent 02bc015 commit f0af3f5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/phoenix/server/api/schema.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import strawberry
from strawberry.types import Info

from phoenix.server.api.types.context import Context
from phoenix.server.api.context import Context
from phoenix.server.api.types.Dataset import Dataset
from phoenix.server.api.types.Model import Model

Expand Down
2 changes: 1 addition & 1 deletion src/phoenix/server/api/types/DimensionDataQuality.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import strawberry
from strawberry.types import Info

from .context import Context
from phoenix.server.api.context import Context


@strawberry.type
Expand Down
3 changes: 2 additions & 1 deletion src/phoenix/server/api/types/Model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
from strawberry.arguments import UNSET
from strawberry.types import Info

from .context import Context
from phoenix.server.api.context import Context

from .Dimension import Dimension
from .DimensionDataType import DimensionDataType
from .pagination import Connection, Cursor, Edge, PageInfo
Expand Down
4 changes: 2 additions & 2 deletions src/phoenix/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

from phoenix.core.model import Model

from .api.context import Context
from .api.loaders import Loaders, create_loaders
from .api.schema import schema
from .api.types.context import Context
from .api.types.loaders import Loaders, create_loaders


class Static(StaticFiles):
Expand Down

0 comments on commit f0af3f5

Please sign in to comment.