File tree Expand file tree Collapse file tree
src/ai/backend/manager/api/gql/rbac/types Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ async def scope(
187187 info : Info [StrawberryGQLContext ],
188188 ) -> EntityNode | None :
189189 from ai .backend .manager .api .gql .artifact .types import ArtifactRevision
190+ from ai .backend .manager .api .gql .container_registry .types import ContainerRegistryGQL
190191 from ai .backend .manager .api .gql .deployment .types .deployment import ModelDeployment
191192 from ai .backend .manager .api .gql .domain_v2 .types .node import DomainV2GQL
192193 from ai .backend .manager .api .gql .project_v2 .types .node import ProjectV2GQL
@@ -234,13 +235,19 @@ async def scope(
234235 if rev_data is None :
235236 return None
236237 return ArtifactRevision .from_dataclass (rev_data )
238+ case RBACElementType .CONTAINER_REGISTRY :
239+ cr_data = await data_loaders .container_registry_loader .load (
240+ uuid .UUID (self .scope_id )
241+ )
242+ if cr_data is None :
243+ return None
244+ return ContainerRegistryGQL .from_data (cr_data )
237245 case (
238246 RBACElementType .SESSION
239247 | RBACElementType .VFOLDER
240248 | RBACElementType .KEYPAIR
241249 | RBACElementType .NOTIFICATION_CHANNEL
242250 | RBACElementType .NETWORK
243- | RBACElementType .CONTAINER_REGISTRY
244251 | RBACElementType .STORAGE_HOST
245252 | RBACElementType .IMAGE
246253 | RBACElementType .ARTIFACT
You can’t perform that action at this time.
0 commit comments