-
Notifications
You must be signed in to change notification settings - Fork 422
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
Adding support for thumbnail related options in workbook publish #1542
Adding support for thumbnail related options in workbook publish #1542
Conversation
if workbook_item.thumbnails_user_id is not None: | ||
workbook_element.attrib["thumbnailsUserId"] = workbook_item.thumbnails_user_id | ||
|
||
if workbook_item.thumbnails_group_id is not None: |
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.
only one of them should be set, so maybe make this an else if?
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.
sounds good, will change it to elif
samples/publish_workbook.py
Outdated
parser.add_argument("--file", "-f", help="local filepath of the workbook to publish") | ||
parser.add_argument("--as-job", "-a", help="Publishing asynchronously", action="store_true") | ||
parser.add_argument("--skip-connection-check", "-c", help="Skip live connection check", action="store_true") | ||
parser.add_argument("--project", help="Project within which to publish the datasource") |
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.
nit: datasource -> workbook
Adding support for thumbnail related options,
thumbnailsUserId
&thumbnailsGroupId
in workbook publish