Skip to content

Add Datasources to the Get Command #162

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

Merged
merged 7 commits into from
Dec 6, 2022

Conversation

andyoneal
Copy link
Contributor

this simply adds datasources as an option for the Get command, in addition to the existing views and workbooks.

@salesforce-cla
Copy link

Thanks for the contribution! Before we can merge this, we need @andyoneal to sign the Salesforce.com Contributor License Agreement.

@jacalata
Copy link
Contributor

Code looks good. Can you add an e2e test in the e2e tests file and run it locally?

@andyoneal
Copy link
Contributor Author

Done. Tests all passed.

Copy link
Contributor

@jacalata jacalata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=========================== short test summary info
FAILED tests/commands/test_geturl_utils.py::GeturlTests::test_get_workbook_name
E AttributeError: type object 'GetUrl' has no attribute 'get_workbook_name'
tests/commands/test_geturl_utils.py:46: AttributeError

FAILED tests/commands/test_run_commands.py::RunCommandsTest::test_get_workbook
mock_args.url = "/workbooks/workbook-name"
mock_args.filename = "filename.twbx"

  get_url_command.GetUrl.run_command(mock_args)

tests/commands/test_run_commands.py:122:
tabcmd/commands/datasources_and_workbooks/get_url_command.py:66: in run_command
Errors.exit_with_error(logger, message=_("tabcmd.get.extension.not_found"))

=================== 2 failed, 184 passed, 1 skipped in 1.00s

@jacalata jacalata merged commit 4565b7e into tableau:development Dec 6, 2022
jacalata added a commit that referenced this pull request Dec 8, 2022
* Add Datasources to the Get Command (#162)
* format command-specific help (#203)
* hide token-value like we do password
* Tfs 1482014 publishing (#205)
* make db-auth/oauth mutually exclusive
* Create a db credentials item for publishing with --db-username, etc arguments

Co-authored-by: Brian Cantoni <[email protected]>
Co-authored-by: Bhuvnesh Singh <[email protected]>
Co-authored-by: andyoneal <[email protected]>
jacalata added a commit that referenced this pull request Dec 16, 2022
* add datasources to the get command
Co-authored-by: Jac Fitzgerald <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants