Skip to content

Commit

Permalink
chore: change type name of AsyncNode to Node
Browse files Browse the repository at this point in the history
  • Loading branch information
fregataa committed Dec 4, 2023
1 parent 59b6481 commit ced4296
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ai/backend/manager/models/etcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from ..defs import PASSWORD_PLACEHOLDER
from . import UserRole
from .base import privileged_mutation, set_if_set
from .gql_relay import AsyncNode

if TYPE_CHECKING:
from .gql import GraphQueryContext
Expand Down Expand Up @@ -58,7 +59,7 @@ class ContainerRegistry(graphene.ObjectType):
config = graphene.Field(ContainerRegistryConfig)

class Meta:
interfaces = (graphene.relay.Node,)
interfaces = (AsyncNode,)

# TODO: `get_node()` should be implemented to query a scalar object directly by ID
# (https://docs.graphene-python.org/en/latest/relay/nodes/#nodes)
Expand Down
2 changes: 1 addition & 1 deletion src/ai/backend/manager/models/gql_relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class AsyncNode(Node):
"""

class Meta:
name = "AsyncNode"
name = "Node"

@classmethod
def Field(cls, *args, **kwargs):
Expand Down

0 comments on commit ced4296

Please sign in to comment.