slidoapp / dbt-superset-lineage

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

Feature request: Append create Superset chart URL in dbt model description #43

Open rohitsanj opened 8 months ago

rohitsanj commented 8 months ago

In an effort to ease user flow from dbt docs into Superset, we could programmatically append a markdown hyperlink into a dbt model's description, pointing to the "create chart" page in Superset.

For example, consider the following file, orders.yml

# orders.yml
models:
  - name: orders
    description: |
      This table has basic information about orders, as well as some derived facts based on payments

      [Explore this table!](http://localhost:8088/explore/?datasource_type=table&datasource_id=97)
    columns: ...

dbt docs page: Screenshot 2024-02-21 at 4 21 00 PM

Clicking "Explore this table!" takes you to this Superset page:

Screenshot 2024-02-21 at 4 44 54 PM