-
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
remove top level meta attribute from SemanticModels #8766
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8766 +/- ##
==========================================
- Coverage 86.50% 85.34% -1.17%
==========================================
Files 176 176
Lines 25825 25821 -4
==========================================
- Hits 22341 22038 -303
- Misses 3484 3783 +299
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Code coverage went down but all I did was remove code. |
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 great! Sorry about the thrash 🙃
@QMalcolm it was a good question and the code is a tiny bit cleaner now! Worth it. |
The current docs for the
Since this is no longer accurate, I'll update it here to something like the following:
|
related to: #4180 related to: #4281 ## What are you changing in this pull request and why? - Mention config in `dbt_project.yml` (like for models, seeds, and snapshots) - Match the style for other resource types for `models/semantic_models.yml` - Clarify that `meta` is no longer "always" available as a top-level key (see [#8766](dbt-labs/dbt-core#8766)) ## Other - Here's an open issue to add `meta` config for metrics: [#3957](#3957) - Opened an issue to add version blocks for any other resource types for which it is applicable: [#4224](#4224) - Opened an issue to add code examples to [`meta` ](https://docs.getdbt.com/reference/resource-configs/meta) for `dbt_project.yml` (like [`enabled`](https://docs.getdbt.com/reference/resource-configs/enabled) has them): [#4415](#4415) ## 🎩 ### Previews - [1.6](https://docs-getdbt-com-git-dbeatty-semantic-models-met-b30fa1-dbt-labs.vercel.app/reference/resource-configs/meta?version=1.6) - [1.7](https://docs-getdbt-com-git-dbeatty-semantic-models-met-b30fa1-dbt-labs.vercel.app/reference/resource-configs/meta?version=1.7) ### v1.7 <img width="500" alt="image" src="https://github.com/dbt-labs/docs.getdbt.com/assets/44704949/09de14e0-dd5b-40ef-8d9b-f1cd34a602a9"> ## Checklist - [x] I have tested that the code examples work - [x] I have tested that the changes look correct in the Vercel preview - [x] Review the [Content style guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md) and [About versioning](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version) so my content adheres to these guidelines.
related to #8511
Problem
meta
is a top level attribute in #8754 but doesn't need to beSolution
Modify to only allow meta under the config key.
Checklist