Fixed missing graphql fields
@@ -85,6 +85,8 @@ class Run(graphene.ObjectType):
systemMetrics = graphene.types.json.JSONString()
heartbeatAt = graphene.String()
events = graphene.List(graphene.String)
+ tags = graphene.List(graphene.String)
+ requestSubscribe = graphene.Boolean()
history = graphene.List(graphene.String)
logLines = relay.ConnectionField(
LogLineConnection)
@@ -103,6 +105,9 @@ class Run(graphene.ObjectType):
def resolve_files(self, info, **args):
return []
+ def resolve_tags(self, info, **args):
+ return []
+
def resolve_fileCount(self, info, **args):
return 0
@@ -196,15 +201,27 @@ class Project(graphene.ObjectType):
return settings.get_project("views")
+class ProjectConnection(relay.Connection):
+ class Meta:
+ node = Project
+
+
class ModelType(Project):
pass
+class ModelConnection(relay.Connection):
+ class Meta:
+ node = ModelType
+
+
class Query(graphene.ObjectType):
project = graphene.Field(
Project, name=graphene.String(), entityName=graphene.String())
model = graphene.Field(
ModelType, name=graphene.String(), entityName=graphene.String())
+ models = relay.ConnectionField(
+ ModelConnection, entityName=graphene.String())
viewer = graphene.Field(
UserType
)
@@ -215,6 +232,9 @@ class Query(graphene.ObjectType):
def resolve_model(self, info, **args):
return ModelType()
+ def resolve_models(self, info, **args):
+ return [ModelType()]
+
def resolve_viewer(self, info, **args):
return UserType()
