gouline / dbt-metabase

dbt + Metabase integration
https://pypi.org/project/dbt-metabase/
MIT License
442 stars 63 forks source link

Sync table visibility #68

Closed mmmatthew closed 2 years ago

mmmatthew commented 2 years ago

It would be useful to automatically hide/show models in Metabase. The metabase API endpoint PUT /api/table/:id accepts a visibility_type value that may be nil, or if non-nil, value must be one of: cruft, hidden, technical. Can we allow the

  meta:
    metabase.visibility_type: hidden

to be defined on models?

gouline commented 2 years ago

Is what we already have not sufficient for this? https://github.com/gouline/dbt-metabase#visibility-types

z3z1ma commented 2 years ago

@gouline

What we have is field level visibility setting adjustment.

What is available through Metabase and what he is suggesting is table level visibility adjustment. Which makes sense given how dbt proliferates tables/views as models which might not need to be seen or so easily exposed. The implementation would likely look very similar to what you have already, just scoped to the table endpoint.

gouline commented 2 years ago

Ahh, got it. Once 0.8.0 is dealt with, we can look at implementing this.

rarup1 commented 2 years ago

@gouline Is this still being worked on or in the plans?

gouline commented 2 years ago

Ask @mmmatthew, he's working on #71

mmmatthew commented 2 years ago

Sorry, I don't have plans to continue this in the near future. Someone else is welcome to pick it up.