Skip to content

Add Datasources to the Get Command - #162

Merged
jacalata merged 7 commits into
tableau:developmentfrom
andyoneal:add-get-datasource
Dec 6, 2022
Merged

Add Datasources to the Get Command#162
jacalata merged 7 commits into
tableau:developmentfrom
andyoneal:add-get-datasource

Conversation

@andyoneal

Copy link
Copy Markdown
Contributor

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

@salesforce-cla

Copy link
Copy Markdown

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

@jacalata

Copy link
Copy Markdown
Contributor

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

@andyoneal

Copy link
Copy Markdown
Contributor Author

Done. Tests all passed.

@jacalata jacalata left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread tabcmd/commands/datasources_and_workbooks/get_url_command.py
Comment thread tests/e2e/language_tests.py
Comment thread tests/e2e/language_tests.py
@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 <bcantoni@salesforce.com>
Co-authored-by: Bhuvnesh Singh <bhuvnesh.singh@salesforce.com>
Co-authored-by: andyoneal <andyoneal@me.com>
jacalata added a commit that referenced this pull request Dec 16, 2022
* add datasources to the get command
Co-authored-by: Jac Fitzgerald <jac.fitzgerald@salesforce.com>
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