-
Notifications
You must be signed in to change notification settings - Fork 437
Unify arguments of sample scripts #889
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
Change the docs to be in sync with PR tableau#889
@vogelsgesang I'll go thru and review these. Have you done some manual testing with the new versions of all these scripts? Wondering if you need just a quick review or someone to test them as well. |
I did test most of them against AlpoDev on Tableau Online. Some of them failed (e.g., |
I am pretty new to TSC, and wanted to run some sample scripts to get an understanding of the library. Doing so, I realized that every sample had a slightly different command line, even for common arguments: * Some expected `site`, some `site-id`, some were lacking site-support completely (and thereby unusable for Tableau Online) * Some had a short option `-i`, some had the short option `-S` for the site name * Some expected password-based authentication, some expected personal access tokens This commit fixes all those inconsistencies, so that users don't have to re-learn the command line options for each individual script.
c1ec230
to
74bec02
Compare
rebased on |
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.
very nice, thank you!
…rsonalAccessTokenAuth` As part of tableau#889, I changed the default value for the `site` argument to be `None` instead of an empty string. This accidentally broke auth, as `TableauAuth` expected an empty string instead of `None` to signify an absent `site` argument. This commit fixes the issue by now actually accepting `None` as `site_id` in `TableauAuth` and `PersonalAccessTokenAuth`, thereby making our interface more intuitive, at least in my opinion.
…rsonalAccessTokenAuth` As part of tableau#889, I changed the default value for the `site` argument to be `None` instead of an empty string. This accidentally broke auth, as `TableauAuth` expected an empty string instead of `None` to signify an absent `site` argument. This commit fixes the issue by now actually accepting `None` as `site_id` in `TableauAuth` and `PersonalAccessTokenAuth`, thereby making our interface more intuitive, at least in my opinion. Fixes tableau#924
…rsonalAccessTokenAuth` (#925) * Accept `None` as parameter for the `site_id` of `TableauAuth` and `PersonalAccessTokenAuth` As part of #889, I changed the default value for the `site` argument to be `None` instead of an empty string. This accidentally broke auth, as `TableauAuth` expected an empty string instead of `None` to signify an absent `site` argument. This commit fixes the issue by now actually accepting `None` as `site_id` in `TableauAuth` and `PersonalAccessTokenAuth`, thereby making our interface more intuitive, at least in my opinion. Fixes #924
…rsonalAccessTokenAuth` (#925) * Accept `None` as parameter for the `site_id` of `TableauAuth` and `PersonalAccessTokenAuth` As part of #889, I changed the default value for the `site` argument to be `None` instead of an empty string. This accidentally broke auth, as `TableauAuth` expected an empty string instead of `None` to signify an absent `site` argument. This commit fixes the issue by now actually accepting `None` as `site_id` in `TableauAuth` and `PersonalAccessTokenAuth`, thereby making our interface more intuitive, at least in my opinion. Fixes #924
I am pretty new to TSC, and wanted to run some sample scripts to get an
understanding of the library. Doing so, I realized that every sample
had a slightly different command line, even for common arguments:
site
, somesite-id
, some were lacking site-supportcompletely (and thereby unusable for Tableau Online)
-i
, some had the short option-S
for thesite name
access tokens
This commit fixes all those inconsistencies, so that users don't have
to re-learn the command line options for each individual script.