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

Commit

Permalink
fix: change ScalingGroupInput to CreateScalingGroupInput which was ch…
Browse files Browse the repository at this point in the history
…anged 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!
  • Loading branch information
adrysn committed May 4, 2021
1 parent 729f493 commit e03d72b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions changes/160.fix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rename ScalingGroupInput to CreateScalingGroupInput, which was changed in Manager by recent commit.
6 changes: 3 additions & 3 deletions src/ai/backend/client/func/scaling_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async def create(cls, name: str, description: str = '', is_active: bool = True,
if fields is None:
fields = ('name',)
query = textwrap.dedent("""\
mutation($name: String!, $input: ScalingGroupInput!) {
mutation($name: String!, $input: CreateScalingGroupInput!) {
create_scaling_group(name: $name, props: $input) {
ok msg scaling_group {$fields}
}
Expand Down Expand Up @@ -284,7 +284,7 @@ async def associate_group(cls, scaling_group: str, group_id: str):
:param group_id: The ID of a group.
"""
query = textwrap.dedent("""\
mutation($scaling_group: String!, $user_group: String!) {
mutation($scaling_group: String!, $user_group: UUID!) {
associate_scaling_group_with_user_group(
scaling_group: $scaling_group, user_group: $user_group) {
ok msg
Expand Down Expand Up @@ -337,7 +337,7 @@ async def dissociate_all_group(cls, group_id: str):
:param group_id: The ID of a group.
"""
query = textwrap.dedent("""\
mutation($group_id: String!) {
mutation($group_id: UUID!) {
disassociate_all_scaling_groups_with_group(user_group: $group_id) {
ok msg
}
Expand Down

0 comments on commit e03d72b

Please sign in to comment.