-
Notifications
You must be signed in to change notification settings - Fork 984
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 global version callout component #6673
Changes from 4 commits
f2667cf
39c9cd4
b39fe72
d3f5b00
b91ee75
0043afe
4c418aa
5e02937
514dee8
23e0bd3
74c80cb
5954300
22521cc
e8fc174
6b4c631
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
:::info Model versions, dbt_project.yml versions, and .yml versions | ||
|
||
Take note that [model versions](/docs/collaborate/govern/model-versions) are different from [dbt_project.yml versions](/reference/project-configs/version#dbt_projectyml-versions) and [.yml property file versions](/reference/project-configs/version#yml-property-file-versions). | ||
|
||
Model versions is a _feature_ that enables better governance and data model management by allowing you to track changes and updates to models over time. dbt_project.yml versions refer to the compatibility of the dbt project with a specific version of dbt. Version numbers within .yml property files inform how dbt parses those YAML files. The latter two are completely optional starting from dbt v1.5. | ||
mirnawong1 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
::: |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
:::tip | ||
|
||
:::info Model versions, dbt_project.yml versions, and .yml versions | ||
|
||
Take note that [model versions](/docs/collaborate/govern/model-versions) are different from [dbt_project.yml versions](/reference/project-configs/version#dbt_projectyml-versions) and [.yml property file versions](/reference/project-configs/version#yml-property-file-versions). | ||
|
||
Model versions is a _feature_ that enables better governance and data model management by allowing you to track changes and updates to models over time. dbt_project.yml versions refer to the compatibility of the dbt project with a specific version of dbt. Version numbers within .yml property files inform how dbt parses those YAML files. The latter two are completely optional starting from dbt v1.5. | ||
<span>Available from dbt v{props.version} or with [the dbt Cloud "Latest" release track](/docs/dbt-versions/cloud-release-tracks) dbt Cloud.</span> | ||
|
||
::: |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import Admonition from '@theme/Admonition'; | ||
|
||
const VersionCallout = ({ version }) => ( | ||
<div> | ||
<Admonition type="tip" icon="💡" title="Did you know..."> | ||
<span> | ||
Available from dbt v{version} or with the{' '} | ||
<a href="/docs/dbt-versions/cloud-release-tracks"> | ||
dbt Cloud "Latest" release track | ||
</a>{' '}. | ||
</span> | ||
</Admonition> | ||
</div> | ||
); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh damn that's such a good flag! Thank you @JKarlavige ! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks again @JKarlavige ! added a
to the const VersionCallout statement and it worked! nothing is displayed if i forget to add the |
||
|
||
export default VersionCallout; |
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.
changed this callout from 'version-callout' to the more appropriate 'model-version-callout'.