Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] Disabling a model in a package in order to use your own version of the model #5094

Open
dbeatty10 opened this issue Mar 15, 2024 · 0 comments
Labels
content Improvements or additions to content dbt Core The changes proposed in this issue relate to dbt Core size: medium This change will take up to a week to address

Comments

@dbeatty10
Copy link
Contributor

Link to the page(s) on docs.getdbt.com requiring updates

https://docs.getdbt.com/reference/resource-configs/enabled#disable-a-model-in-a-package-in-order-to-use-your-own-version-of-the-model

Tell us more about this update

It would be helpful if we add the content from dbt-labs/dbt-core#9762 (comment) as an additional option for folks to consider.

Reviewers/Stakeholders/SMEs

Doug E. Fresh 😎

Related GitHub issues

dbt-labs/dbt-core#9762

Additional information

After installing a package that includes models, the user may want to change the logic of one (or more) of the models.

We explain how here.

But it sounds like configuration in YAML files (like tests) still persist from the base package, which is undesireable for some users (see dbt-labs/dbt-core#9762 and this slack thread).

The instructions in dbt-labs/dbt-core#9762 (comment) serve as an alternative method to completely disable the package model, including its YAML configurations.

Another idea

💡 I didn't try out if adding your own YAML config for the overridden model is a sufficient alternative.

We should try that out though! It might be the most simple solution of all.

If it works, it would be like this:

dbt_project.yml

models:
  segment:
    base:
      segment_web_page_views:
        +enabled: false

models/_models.yml

models:
  - name: segment_web_page_views
@dbeatty10 dbeatty10 added content Improvements or additions to content dbt Core The changes proposed in this issue relate to dbt Core labels Mar 15, 2024
@nataliefiann nataliefiann added the size: medium This change will take up to a week to address label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content dbt Core The changes proposed in this issue relate to dbt Core size: medium This change will take up to a week to address
Projects
None yet
Development

No branches or pull requests

2 participants