Skip to content

Commit

Permalink
fix: change max_vfolder_count type from BigInt to Int
Browse files Browse the repository at this point in the history
  • Loading branch information
agatha197 committed Oct 20, 2023
1 parent 429c155 commit 7e50143
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ai/backend/manager/models/resource_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ class UserResourcePolicy(graphene.ObjectType):
id = graphene.ID(required=True)
name = graphene.String(required=True)
created_at = GQLDateTime(required=True)
max_vfolder_count = BigInt()
max_vfolder_count = graphene.Int()
max_vfolder_size = BigInt() # aliased field
max_quota_scope_size = BigInt()

Expand Down Expand Up @@ -482,12 +482,12 @@ async def batch_load_by_user(


class CreateUserResourcePolicyInput(graphene.InputObjectType):
max_vfolder_count = BigInt(required=True)
max_vfolder_count = graphene.Int(required=True)
max_quota_scope_size = BigInt(required=True)


class ModifyUserResourcePolicyInput(graphene.InputObjectType):
max_vfolder_count = BigInt(required=True)
max_vfolder_count = graphene.Int(required=True)
max_quota_scope_size = BigInt(required=True)


Expand Down Expand Up @@ -585,7 +585,7 @@ class ProjectResourcePolicy(graphene.ObjectType):
id = graphene.ID(required=True)
name = graphene.String(required=True)
created_at = GQLDateTime(required=True)
max_vfolder_count = BigInt()
max_vfolder_count = graphene.Int()
max_vfolder_size = BigInt() # aliased field
max_quota_scope_size = BigInt()

Expand Down Expand Up @@ -660,12 +660,12 @@ async def batch_load_by_project(


class CreateProjectResourcePolicyInput(graphene.InputObjectType):
max_vfolder_count = BigInt(required=True)
max_vfolder_count = graphene.Int(required=True)
max_quota_scope_size = BigInt(required=True)


class ModifyProjectResourcePolicyInput(graphene.InputObjectType):
max_vfolder_count = BigInt(required=True)
max_vfolder_count = graphene.Int(required=True)
max_quota_scope_size = BigInt(required=True)


Expand Down

0 comments on commit 7e50143

Please sign in to comment.