-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add config to disable metrics/exposures #5815
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This config stuff really does get complicated. This looks pretty good to me, with the exception that I think we should change what's returned from 'parse' for metrics and exposures as discussed in that comment.
3019166
to
27ab056
Compare
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Just tested this on my local and can confirm that it works as expected with metrics. Adding the same metric to two different folders resulted in a compilation error. When adding the below code, the definition from one of the folder paths was disabled and thus didn't get picked up. metrics:
dbt_metrics_integration_tests:
testing_disabling__overridden:
+enabled: false
testing_disabling:
+enabled: true |
* first pass adding disabled functionality to metrics and exposures * first pass at getting metrics disabled * add unsaved file * fix up comments * Delete tmp.csv * fix test * add exposure logic, fix merge from main * change when nodes are added to manifest, finish tests * add changelog * removed unused code * minor cleanup
resolves #5422
Description
Support disabling metrics and exposures via config.
Checklist
changie new
to create a changelog entry