Skip to content
This repository was archived by the owner on Sep 22, 2023. It is now read-only.

Commit e03d72b

Browse files
authored
fix: change ScalingGroupInput to CreateScalingGroupInput which was changed last month (#160)
* fix: change ScalingGroupInput to CreateScalingGroupInput which was changed last month * Add news fragment * fix: unable to associate/dissociate scaling groups due to type changes String! -> UUID!
1 parent 729f493 commit e03d72b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

changes/160.fix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Rename ScalingGroupInput to CreateScalingGroupInput, which was changed in Manager by recent commit.

src/ai/backend/client/func/scaling_group.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async def create(cls, name: str, description: str = '', is_active: bool = True,
106106
if fields is None:
107107
fields = ('name',)
108108
query = textwrap.dedent("""\
109-
mutation($name: String!, $input: ScalingGroupInput!) {
109+
mutation($name: String!, $input: CreateScalingGroupInput!) {
110110
create_scaling_group(name: $name, props: $input) {
111111
ok msg scaling_group {$fields}
112112
}
@@ -284,7 +284,7 @@ async def associate_group(cls, scaling_group: str, group_id: str):
284284
:param group_id: The ID of a group.
285285
"""
286286
query = textwrap.dedent("""\
287-
mutation($scaling_group: String!, $user_group: String!) {
287+
mutation($scaling_group: String!, $user_group: UUID!) {
288288
associate_scaling_group_with_user_group(
289289
scaling_group: $scaling_group, user_group: $user_group) {
290290
ok msg
@@ -337,7 +337,7 @@ async def dissociate_all_group(cls, group_id: str):
337337
:param group_id: The ID of a group.
338338
"""
339339
query = textwrap.dedent("""\
340-
mutation($group_id: String!) {
340+
mutation($group_id: UUID!) {
341341
disassociate_all_scaling_groups_with_group(user_group: $group_id) {
342342
ok msg
343343
}

0 commit comments

Comments
 (0)