hoverinc / tableau-utilities

A module and CLI Utility for managing Tableau objects, locally, and in Tableau Online.
MIT License
4 stars 1 forks source link

Added functionality to Datasource, to add an empty extract, and to filter the extract #74

Closed JustinGrilli closed 6 months ago

JustinGrilli commented 6 months ago

Summary

Our Astronomer / Airflow workers running updates on our datasources have been failing. We discovered this was because the size of our datasources exceeded the 10GB storage limit for the Astronomer workers.

So, to help adjust the size of our Datasources while making updates, I am adding functionality to allow for manipulating the Datasource extract (.hyper file).

Changes

Tests

tableau_utilities -l online -n Datasource -pn Project -f Datasource.tdsx datasource -E
tableau_utilities -n Datasource -pn Project -f Datasource.tdsx server_operate --publish datasource
tableau_utilities -l online -n Datasource -pn Project -f Datasource.tdsx --include_extract datasource -E
tableau_utilities -n Datasource -pn Project -f Datasource.tdsx server_operate --publish datasource
tableau_utilities -l online -n Datasource -pn Project -f Datasource.tdsx --include_extract datasource -F "\"CREATED_AT\" < '1/1/2024'"
tableau_utilities -n Datasource -pn Project -f Datasource.tdsx server_operate --publish datasource