Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tabcmd/commands/auth/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 6 additions & 2 deletions tabcmd/execution/global_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down