Skip to content

Commit

Permalink
fix: Add missing scope_id to image_node GQL API
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Nov 11, 2024
1 parent 617be9b commit cc01306
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ai/backend/manager/api/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ type Queries {
"""Added in 24.12.0."""
image_node(

Check notice on line 101 in src/ai/backend/manager/api/schema.graphql

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'image_node' was added to object type 'Queries'

Field 'image_node' was added to object type 'Queries'
id: GlobalIDField!
scope_id: ScopeField!

"""Default is read_attribute."""
permission: ImagePermissionValueField = "read_attribute"
Expand Down
1 change: 1 addition & 0 deletions src/ai/backend/manager/models/gql.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ class Queries(graphene.ObjectType):
ImageNode,
description="Added in 24.12.0.",
id=GlobalIDField(required=True),
scope_id=ScopeField(required=True),
permission=ImagePermissionValueField(
default_value=ImagePermission.READ_ATTRIBUTE,
description=f"Default is {ImagePermission.READ_ATTRIBUTE.value}.",
Expand Down

0 comments on commit cc01306

Please sign in to comment.