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

CLI to Compare and Apply Configs, Base Datasource Feature Additions #92

Open jaybythebay opened 5 months ago

jaybythebay commented 5 months ago

Overview

Adds functionality for updating datasources from config files. This will allow us to have less custom code in an AIrflow DAG (or any DAG) and use the cli to update changes based on a config

Changes

Changed

New

Open Questions

Testing

Remove empty folders

Before

image

Cli Command

tableau_utilities --location local --file_path '/Users/jayrosenthal/code/tableau-utilities/development_test_files/has_empty_folder.tdsx' datasource --clean_folders

After

image

Mock tests passed

➜  pytest tests/test_datasource_remove_empty_folders.py -p no:warnings
=========================================================================================== test session starts ===========================================================================================
platform darwin -- Python 3.12.1, pytest-8.2.1, pluggy-1.5.0
rootdir: /Users/jayrosenthal/code/tableau-utilities
plugins: anyio-4.2.0
collected 3 items                                                                                                                                                                                         

tableau_utilities/test_tableau_file_objects.py ...                                                                                                                                                  [100%]

============================================================================================ 3 passed in 0.58s ============================================================================================
➜