Enhanced Sisense2DataCatalog's CLI by adding the list-elasticube-deps option.
Improved the ElastiCube dependency finding results output by tabulating the Matching field or filter, Table, and Column Tag fields.
- How I did it
Improved sisense.Sisense2DataCatalogCli arg parsers helped by the new _ListElastiCubeDepsCliHelper class, responsible for setting up the CLI tool introduced in the present PR.
Added the tabulate library to improve addons.ElastiCubeDependencyPrinter's results output.
Added unit tests that fully cover the above code changes.
Updated README.md by adding instructions on how to use the CLI.
- How to verify it
Run the unit tests and, if possible, the connector in an integrated environment.
For the new list-elasticube-deps option, the output should be similar to:
INFO:root:
INFO:root:The entries.lookup API does not work for user-specified Entries
(https://issuetracker.google.com/issues/202510978 for details). Catalog search is used as a fallback.
INFO:root:
INFO:root:===> Searching Data Catalog...
INFO:root:Query: system=Sisense (type=Dashboard OR type=Widget) tag:id:__REDACTED__
INFO:root:==== DONE ========================================
INFO:root: 8 results found
INFO:root:
INFO:root:===> Getting entries...
INFO:root:==== DONE ========================================
INFO:root:
INFO:root:===> Listing tags...
INFO:root:==== DONE ========================================
INFO:root:
INFO:root:===> Assembling results...
INFO:root:==== DONE ========================================
Results:
1
Entry : projects/__REDACTED__/locations/us/entryGroups/sisense/entries/sss___REDACTED__
Type : Dashboard
Title : Sample - Healthcare
Data source : Sample Healthcare
URL : https://__REDACTED__.sisense.com/app/main#/dashboards/__REDACTED__
Matching field or filter | Table | Column
--------------------------------------------+------------+----------------
filters.gender | Patients | Gender
filters.division | Divisions | Divison_name
filters.admission date | Admissions | Admission_Time
filters.top diagnoses | Diagnosis | Description
...
- Description for the changelog
Enhanced Sisense2DataCatalog's CLI by adding the list-elasticube-deps option.
- What I did
list-elasticube-deps
option.Matching field or filter
,Table
, andColumn
Tag fields.- How I did it
sisense.Sisense2DataCatalogCli
arg parsers helped by the new_ListElastiCubeDepsCliHelper
class, responsible for setting up the CLI tool introduced in the present PR.tabulate
library to improveaddons.ElastiCubeDependencyPrinter
's results output.README.md
by adding instructions on how to use the CLI.- How to verify it Run the unit tests and, if possible, the connector in an integrated environment. For the new
list-elasticube-deps
option, the output should be similar to:- Description for the changelog Enhanced Sisense2DataCatalog's CLI by adding the
list-elasticube-deps
option.This PR is part of the effort to deliver #70.