From 33d7da947af0de45a5d6dedb25c8eb4c4358ff49 Mon Sep 17 00:00:00 2001 From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> Date: Tue, 20 Jun 2023 10:33:20 -0400 Subject: [PATCH 1/6] Model property deprecation_date --- website/docs/reference/model-properties.md | 1 + .../resource-properties/deprecation_date.md | 32 +++++++++++++++++++ website/sidebars.js | 1 + 3 files changed, 34 insertions(+) create mode 100644 website/docs/reference/resource-properties/deprecation_date.md diff --git a/website/docs/reference/model-properties.md b/website/docs/reference/model-properties.md index b88f9fd6b98..730432c88af 100644 --- a/website/docs/reference/model-properties.md +++ b/website/docs/reference/model-properties.md @@ -17,6 +17,7 @@ models: [docs](/reference/resource-configs/docs): show: true | false [latest_version](/reference/resource-properties/latest_version): + [deprecation_date](/reference/resource-properties/deprecation_date): [access](/reference/resource-properties/access): private | protected | public [config](/reference/resource-properties/config): [](/reference/model-configs): diff --git a/website/docs/reference/resource-properties/deprecation_date.md b/website/docs/reference/resource-properties/deprecation_date.md new file mode 100644 index 00000000000..108c277ab1c --- /dev/null +++ b/website/docs/reference/resource-properties/deprecation_date.md @@ -0,0 +1,32 @@ +--- +resource_types: [models] +datatype: deprecation_date +required: no +--- + + + +```yml +models: + - name: my_model + description: deprecated + deprecation_date: 1999-01-01 +``` + + + + +```yml +version: 2 +models: + - name: my_model + description: deprecating in the future + deprecation_date: 2999-01-01 +``` + + + +## Definition + +The deprecation date of the model in YAML DateTime format. + diff --git a/website/sidebars.js b/website/sidebars.js index 657252b8409..b34014fab31 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -546,6 +546,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", From 9aa088b587af730a1e32e243f7023666753b7f9c Mon Sep 17 00:00:00 2001 From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> Date: Tue, 20 Jun 2023 10:36:22 -0400 Subject: [PATCH 2/6] Adding versioning --- website/dbt-versions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website/dbt-versions.js b/website/dbt-versions.js index f611e17b650..409d0b7e2bc 100644 --- a/website/dbt-versions.js +++ b/website/dbt-versions.js @@ -31,6 +31,10 @@ exports.versions = [ ] exports.versionedPages = [ + { + "page": "reference/resource-properties/deprecation_date", + "firstVersion": "1.6", + }, { "page": "docs/build/groups", "firstVersion": "1.5", From 26fa112800ca1231a9b2e3021848281024832f9b Mon Sep 17 00:00:00 2001 From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> Date: Fri, 30 Jun 2023 16:00:07 -0400 Subject: [PATCH 3/6] Update website/docs/reference/resource-properties/deprecation_date.md Co-authored-by: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> --- website/docs/reference/resource-properties/deprecation_date.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/reference/resource-properties/deprecation_date.md b/website/docs/reference/resource-properties/deprecation_date.md index 108c277ab1c..e433ab47130 100644 --- a/website/docs/reference/resource-properties/deprecation_date.md +++ b/website/docs/reference/resource-properties/deprecation_date.md @@ -10,7 +10,7 @@ required: no models: - name: my_model description: deprecated - deprecation_date: 1999-01-01 + deprecation_date: 1999-01-01 00:00:00.00+00:00 ``` From 1f7fee477b2843fe86f758f097e2727e57253552 Mon Sep 17 00:00:00 2001 From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> Date: Fri, 30 Jun 2023 16:00:46 -0400 Subject: [PATCH 4/6] Update website/docs/reference/resource-properties/deprecation_date.md --- website/docs/reference/resource-properties/deprecation_date.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/reference/resource-properties/deprecation_date.md b/website/docs/reference/resource-properties/deprecation_date.md index e433ab47130..9fe9e2e1098 100644 --- a/website/docs/reference/resource-properties/deprecation_date.md +++ b/website/docs/reference/resource-properties/deprecation_date.md @@ -21,7 +21,7 @@ version: 2 models: - name: my_model description: deprecating in the future - deprecation_date: 2999-01-01 + deprecation_date: 2999-01-01 00:00:00.00+00:00 ``` From 4bb77947989f9cfe7904cb4de68ea5ffd2e59c6d Mon Sep 17 00:00:00 2001 From: mirnawong1 <89008547+mirnawong1@users.noreply.github.com> Date: Wed, 5 Jul 2023 16:05:34 +0100 Subject: [PATCH 5/6] Update dbt-versions.js --- website/dbt-versions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/dbt-versions.js b/website/dbt-versions.js index 14906d21ceb..a919beca2ec 100644 --- a/website/dbt-versions.js +++ b/website/dbt-versions.js @@ -32,9 +32,9 @@ exports.versions = [ exports.versionedPages = [ { - "page": "reference/resource-properties/deprecation_date", + "page": "reference/resource-properties/deprecation_date", "firstVersion": "1.6", - }, + { "page": "reference/commands/retry", "firstVersion": "1.6", }, From 11c5a6b4801480f4af755f0de4e59346eea40d27 Mon Sep 17 00:00:00 2001 From: mirnawong1 <89008547+mirnawong1@users.noreply.github.com> Date: Wed, 5 Jul 2023 16:08:54 +0100 Subject: [PATCH 6/6] Update dbt-versions.js --- website/dbt-versions.js | 1 + 1 file changed, 1 insertion(+) diff --git a/website/dbt-versions.js b/website/dbt-versions.js index a919beca2ec..52b68d6c084 100644 --- a/website/dbt-versions.js +++ b/website/dbt-versions.js @@ -34,6 +34,7 @@ exports.versionedPages = [ { "page": "reference/resource-properties/deprecation_date", "firstVersion": "1.6", + }, { "page": "reference/commands/retry", "firstVersion": "1.6",