8000 Fixes groups.update to match server requests/responses by shinchris · Pull Request #772 · tableau/server-client-python · GitHub
[go: up one dir, main page]

Skip to content

Fixes groups.update to match server requests/responses #772

8000 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

Merged
merged 1 commit into from
Jan 20, 2021

Conversation

shinchris
Copy link
Contributor

Included in this PR:

  1. Response parsing: Rest api docs are wildly wrong about the local group update request/response (will file a doc bug) starting 3.9+ (2020.3+). Import element is returned starting 3.9+, for both local and AD groups. Query calls will return a domain element for all versions, but won't return it for create/update calls.
  2. Update endpoint was taking in a default_site_role, which would always override the minimum_site_role field of the group_item with Unlicensed. TSC standard is to set that value in the resource item itself.
  3. Updating local groups don't support async, so it would error in the parser if you tried.
  4. Allows local groups to update minimum site role now

import_element.attrib['domainName'] = group_item.domain_name
import_element.attrib['siteRole'] = group_item.minimum_site_role
if group_item.license_mode is not None:
import_element.attrib['grantLicenseMode'] = group_item.license_mode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we still have an underlying REST bug on changing the license mode?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there is still that bug where you can't change license mode from onLogin -> onSync. Internal 1214605

@shinchris shinchris merged commit 1c7480f into development Jan 20, 2021
@shinchris shinchris deleted the fix_update_group 8000 branch January 20, 2021 21:05
shinchris pushed a commit that referenced this pull request Feb 17, 2021
[Release] Sync master with v0.15 changes
## 0.15.0 (16 Feb 2021)
* Added support for python version 3.9 (#744)
* Added support for 'Get View by ID' (#750)
* Added docs and test data to MANIFEST.in file (#780)
* Added owner_id property to ProjectItem (#784)
* Added support for skipping connection check while publishing workbook (#791)
* Added support for 'Update Subscription' (#794)
* Added support for 'Get Groups for a User' (#799)
* Improved debug logging by including put/post request contents (#743)
* Improved local and active-directory group creation (#770)
* Improved 'Update Group' to match server requests/responses (#772)
* Improved SiteItem with new properties and functions (#777)
* Improved SubscriptionItem with new properties (#794)
* Improved the 'type' property of TaskItem to convert server response to enum (#796)
* Improved repository to use Github Actions for running tests/linter (#798)
* Fixed data_acceleration field causing error in workbook update payload (#741)
shinchris pushed a commit that referenced this pull request Feb 17, 2021
[Release] Sync master with v0.15 changes
* Added support for python version 3.9 (#744)
* Added support for 'Get View by ID' (#750)
* Added docs and test data to MANIFEST.in file (#780)
* Added owner_id property to ProjectItem (#784)
* Added support for skipping connection check while publishing workbook (#791)
* Added support for 'Update Subscription' (#794)
* Added support for 'Get Groups for a User' (#799)
* Improved debug logging by including put/post request contents (#743)
* Improved local and active-directory group creation (#770)
* Improved 'Update Group' to match server requests/responses (#772)
* Improved SiteItem with new properties and functions (#777)
* Improved SubscriptionItem with new properties (#794)
* Improved the 'type' property of TaskItem to convert server response to enum (#796)
* Improved repository to use Github Actions for running tests/linter (#798)
* Fixed data_acceleration field causing error in workbook update payload (#741)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0