slidoapp / dbt-superset-lineage

Make dbt docs and Apache Superset talk to one another
MIT License
134 stars 18 forks source link

Update `get_dashboards_from_superset` to utilise new API calls #22

Closed one-data-cookie closed 1 year ago

one-data-cookie commented 1 year ago

In Superset v1.5 onwards, GET /dashboard/{id} doesn't return "table_name" key anymore, and it is replaced by GET /dashboard/{id}/datasets.

This addresses #9.

one-data-cookie commented 1 year ago

@sweco I strongly recommend hiding the whitespace changes here as I wrapped most of the function into try-except.