diff --git a/tabcmd/commands/auth/session.py b/tabcmd/commands/auth/session.py index a380ab73..188c0581 100644 --- a/tabcmd/commands/auth/session.py +++ b/tabcmd/commands/auth/session.py @@ -44,8 +44,8 @@ def __init__(self): self.timeout = None self.logging_level = "info" - self._read_from_json() self.logger = log(__class__.__name__, self.logging_level) # instantiate here mostly for tests + self._read_from_json() self.tableau_server = None # this one is an object that doesn't get persisted in the file # called before we connect to the server diff --git a/tabcmd/commands/datasources_and_workbooks/publish_command.py b/tabcmd/commands/datasources_and_workbooks/publish_command.py index ec607755..59432ee1 100644 --- a/tabcmd/commands/datasources_and_workbooks/publish_command.py +++ b/tabcmd/commands/datasources_and_workbooks/publish_command.py @@ -65,6 +65,7 @@ def run_command(args): elif source in ["tds", "tdsx", "hyper"]: new_datasource = TSC.DatasourceItem(project_id, name=args.name) + new_datasource.use_remote_query_agent = args.use_tableau_bridge try: new_datasource = server.datasources.publish(new_datasource, args.filename, publish_mode) except IOError as ioe: diff --git a/tabcmd/execution/global_options.py b/tabcmd/execution/global_options.py index 34672806..30211a13 100644 --- a/tabcmd/execution/global_options.py +++ b/tabcmd/execution/global_options.py @@ -316,8 +316,12 @@ def set_publish_args(parser): ) parser.add_argument("--oauth-username", help="The email address of a preconfigured OAuth connection") parser.add_argument("--save-oauth", action="store_true", help="Save embedded OAuth credentials in the datasource") - parser.add_argument("--thumbnail-username", help="Not yet implemented") - parser.add_argument("--thumbnail-group", help="Not yet implemented") # not implemented in the REST API + + thumbnails = parser.add_mutually_exclusive_group() + thumbnails.add_argument("--thumbnail-username", help="Not yet implemented") + thumbnails.add_argument("--thumbnail-group", help="Not yet implemented") # not implemented in the REST API + + parser.add_argument("--use-tableau-bridge", help="Refresh datasource through Tableau Bridge") def set_overwrite_option(parser):