You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method UpdateUserGroupContext does not seem to be working correctly. I tried to browse the code for a usage example in the tests to make sure I was calling it correctly but I also realized that the method is not tested.
In my code I try to update the users belonging to a user group so I have something like:
userGroup:=client.GetUserGroupsContext(ctx, slack.GetUserGroupsOptionIncludeUsers(true))
userGroup.Users=getNewUsers()
userGroup, err=api.UpdateUserGroupContext(ctx, userGroup)
// here I would expect the userGroup to have the new user ids, instead it has still the old ones
Expected behavior
I would expect to be able to change the users under a usergroup with the UpdateUserGroupContext method
Steps to reproduce
userGroup:=client.GetUserGroupsContext(ctx, slack.GetUserGroupsOptionIncludeUsers(true))
userGroup.Users=getNewUsers()
userGroup, err=api.UpdateUserGroupContext(ctx, userGroup)
// here I would expect the userGroup to have the new user ids, instead it has still the old ones
reproducible code
userGroup:=client.GetUserGroupsContext(ctx, slack.GetUserGroupsOptionIncludeUsers(true))
userGroup.Users=getNewUsers()
userGroup, err=api.UpdateUserGroupContext(ctx, userGroup)
// here I would expect the userGroup to have the new user ids, instead it has still the old ones
manifest.yaml
Versions
Go: 1.17
slack-go/slack: v0.10.1
The text was updated successfully, but these errors were encountered:
Found myself that the right method for that is UpdateUserGroupMembersContext, maybe would it be worth adding documentation explicitly explaining that in the UpdateUserGroupContext method? Would it be great to find unit-tests for those methods as well.
What happened
Method
UpdateUserGroupContext
does not seem to be working correctly. I tried to browse the code for a usage example in thetests
to make sure I was calling it correctly but I also realized that the method is not tested.In my code I try to update the users belonging to a user group so I have something like:
Expected behavior
I would expect to be able to change the users under a usergroup with the
UpdateUserGroupContext
methodSteps to reproduce
reproducible code
manifest.yaml
Versions
The text was updated successfully, but these errors were encountered: