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

Model property deprecation_date #3579

Merged
merged 9 commits into from
Jul 5, 2023
4 changes: 4 additions & 0 deletions website/dbt-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ exports.versions = [
]

exports.versionedPages = [
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trying to fix deploy preview build error

"page": "reference/resource-properties/deprecation_date",
"firstVersion": "1.6",
},
{
"page": "reference/commands/retry",
"firstVersion": "1.6",
Expand Down
1 change: 1 addition & 0 deletions website/docs/reference/model-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ models:
[docs](/reference/resource-configs/docs):
show: true | false
[latest_version](/reference/resource-properties/latest_version): <version_identifier>
[deprecation_date](/reference/resource-properties/deprecation_date): <YAML_DateTime>
[access](/reference/resource-properties/access): private | protected | public
[config](/reference/resource-properties/config):
[<model_config>](/reference/model-configs): <config_value>
Expand Down
32 changes: 32 additions & 0 deletions website/docs/reference/resource-properties/deprecation_date.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
resource_types: [models]
datatype: deprecation_date
required: no
---

<File name='models/<schema>.yml'>

```yml
models:
- name: my_model
description: deprecated
deprecation_date: 1999-01-01 00:00:00.00+00:00
```
</File>

<File name='models/<schema>.yml'>

```yml
version: 2
models:
- name: my_model
description: deprecating in the future
deprecation_date: 2999-01-01 00:00:00.00+00:00
```

</File>

## Definition

The deprecation date of the model in YAML DateTime format.

1 change: 1 addition & 0 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ const sidebarSettings = {
"reference/resource-properties/columns",
"reference/resource-properties/config",
"reference/resource-properties/constraints",
"reference/resource-properties/deprecation_date",
"reference/resource-properties/description",
"reference/resource-properties/latest_version",
"reference/resource-properties/include-exclude",
Expand Down