Skip to content

Improve confusing help message for signing in - #190

Merged
jacalata merged 4 commits into
developmentfrom
jac/tfs-1427025
Oct 18, 2022
Merged

Improve confusing help message for signing in#190
jacalata merged 4 commits into
developmentfrom
jac/tfs-1427025

Conversation

@jacalata

Copy link
Copy Markdown
Contributor

old: said username/token was missing even when it was there

c:\dev\tabcmd2>python -m tabcmd login -u jfitzgerald@tableau.com
constants.py: Cannot sign in because of missing arguments: Either a ''username'' option or a ''token'' option must be specified

new: says some arguments are missing, see help for info on required args

c:\dev\tabcmd2>python -m tabcmd login -u jfitzgerald@tableau.com
constants.py: Cannot sign in because of missing arguments: Run 'tabcmd login -h' for details on required arguments

Make error message generic when signin args not present
move debug statements to debug instead of print
@github-actions

Copy link
Copy Markdown

Coverage

Coverage Report
FileStmtsMissCoverMissing
tabcmd
   __main__.py777 0%
   tabcmd.py121212 0%
tabcmd/commands
   commands.py101010 0%
   constants.py591111 81%
   server.py1262525 80%
tabcmd/commands/auth
   session.py2784141 85%
tabcmd/commands/datasources_and_workbooks
   datasources_and_workbooks_command.py951919 80%
   delete_command.py591616 73%
   export_command.py1262727 79%
   get_url_command.py1524343 72%
   publish_command.py581717 71%
   runschedule_command.py2077 65%
tabcmd/commands/extracts
   create_extracts_command.py3955 87%
   decrypt_extracts_command.py2622 92%
   delete_extracts_command.py3666 83%
   encrypt_extracts_command.py2622 92%
   reencrypt_extracts_command.py2622 92%
   refresh_extracts_command.py672626 61%
tabcmd/commands/group
   create_group_command.py2855 82%
   delete_group_command.py2622 92%
tabcmd/commands/help
   help_command.py472626 45%
tabcmd/commands/project
   create_project_command.py4599 80%
   delete_project_command.py3444 88%
   publish_samples_command.py2744 85%
tabcmd/commands/site
   create_site_command.py3577 80%
   delete_site_command.py2422 92%
   edit_site_command.py3722 95%
   list_command.py331818 45%
   list_sites_command.py2922 93%
tabcmd/commands/user
   create_site_users.py4555 89%
   create_users_command.py5144 92%
   delete_site_users_command.py4255 88%
   user_data.py2103030 86%
tabcmd/execution
   _version.py222 0%
   global_options.py1382323 83%
   localize.py6788 88%
   logger_config.py4066 85%
   parent_parser.py4633 93%
   tabcmd_controller.py3955 87%
TOTAL237245081% 

@jacalata

Copy link
Copy Markdown
Contributor Author

Not sure how, but I guess I overwrote this in a merge.

@anyoung-tableau

Copy link
Copy Markdown
Collaborator

💯

@anyoung-tableau
anyoung-tableau self-requested a review October 17, 2022 22:12
@jacalata
jacalata merged commit b96cc08 into development Oct 18, 2022
@jacalata
jacalata deleted the jac/tfs-1427025 branch November 5, 2022 05:33
jacalata added a commit that referenced this pull request Nov 10, 2022
Dropped support for python < 3.9
Changed argument from "token" to "token-value" so it is not a substring of "token-name", remove the 2-letter short arguments

Release 2.0.6
* add step to list dependencies for licensing
* Defect 1427376: [Tabcmd WAM] --save-db-password flag thinks it should get an argument (#134)
* Fix exit_with_error handling (#137)
* TFS 1428581 publish project (#139)
* Defect 1426885: [Tabcmd WAM] addusers and removeusers error, fix deletegroup (#140)
* clearly indicate when using the default site (#141)
* Fix export success log message params (#142)
* Jac/tfs 1428582 create edit site (#146)
* Fix get view, get csv file extensions (#143)
* Change install destination to /tabcmd instead of /src (#150)
* Defect 1428581: [Tabcmd WAM] Publishing to projects other than default throws an error  (#145)
* Jac/delete command (#144)
* Jac/e2e test workflow (#154)
* Add command to list items of a given content type (#153)
* make export use filters, add tests (#164)
* Fix some e2e tests (#166)
* Trace logging and bug fix (#165)

Release 2.0.7
* Implement command line and url parameters for get/export (#175)
* recognize more values for yes on command line (#173)
* fully port to pyproject.toml (#182)
* implement pdf layout/page type (#184, #169)
* tfs 1427025: Confusing error message related to sign-in (#187), (#190)
* stop duplicate logging in session
* extract encryption defaults to false (#193)
* call sites endpoint correctly (#194)
* publish data source to Tableau Cloud for published live connection with Tableau Bridge (#195)

Co-authored-by: Brian Cantoni <bcantoni@salesforce.com>
Co-authored-by: Bhuvnesh Singh <bhuvnesh.singh@salesforce.com>
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