-
Notifications
You must be signed in to change notification settings - Fork 436
277 update group feature #279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good -- can you update the tests as well? A mocked PUT like we do for other updates should be OK.
We'll want @d45 or @aaroncarey to take a look at the doc updates, I think we need more text explaining that for a 'local' group this is a traditional update, but for an AD group it triggers a synchronization job.
@@ -55,6 +55,16 @@ def delete(self, group_id): | |||
self.delete_request(url) | |||
logger.info('Deleted single group (ID: {0})'.format(group_id)) | |||
|
|||
@api(version="2.0") | |||
def update(self, group_item, default_site_role=UserItem.Roles.Unlicensed): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull UserItem.Roles.Unlicensed
into a constant UNLICENSED_USER
or something a little shorter, it helps this read a little easier for me
There's a linter error in the tests, but it looks good otherwise, once it's passing checks I'll approve. I'll ping the team to have another set of eyes take a look as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
@t8y8, what do you think about merge this PR? |
I will merge this PR, but we realized that docs changes need to go to the We'll be removing the docs from this branch to make it less confusing in the future :) |
Adding support for update method for groups.