Skip to content

Commit

Permalink
Remove v1.6 from docs (#6375)
Browse files Browse the repository at this point in the history
## What are you changing in this pull request and why?

Removes v1.6 from the dropdown.
Removes content where v1.6 was "lastversion"
Cleans up "firstversion="1.7" blocks
Removes appropriate page version blocks


## Checklist
- [ ] I have reviewed the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
so my content adheres to these guidelines.
- [ ] The topic I'm writing about is for specific dbt version(s) and I
have versioned it according to the [version a whole
page](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
and/or [version a block of
content](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-blocks-of-content)
guidelines.
- [ ] I have added checklist item(s) to this list for anything anything
that needs to happen before this PR is merged, such as "needs technical
review" or "change base branch."
- [ ] The content in this PR requires a dbt release note, so I added one
to the [release notes
page](https://docs.getdbt.com/docs/dbt-versions/dbt-cloud-release-notes).
<!--
PRE-RELEASE VERSION OF dbt (if so, uncomment):
- [ ] Add a note to the prerelease version [Migration
Guide](https://github.com/dbt-labs/docs.getdbt.com/tree/current/website/docs/docs/dbt-versions/core-upgrade)
-->
<!-- 
ADDING OR REMOVING PAGES (if so, uncomment):
- [ ] Add/remove page in `website/sidebars.js`
- [ ] Provide a unique filename for new pages
- [ ] Add an entry for deleted pages in `website/vercel.json`
- [ ] Run link testing locally with `npm run build` to update the links
that point to deleted pages
-->

<!-- vercel-deployment-preview -->
---
🚀 Deployment available! Here are the direct links to the updated files:


-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/docs/build/environment-variables
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/docs/build/metricflow-time-spine
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/docs/build/packages
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/docs/build/saved-queries
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/docs/build/semantic-models
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/docs/collaborate/govern/project-dependencies
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/docs/core/connect-data-platform/about-core-connections
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/docs/core/connect-data-platform/spark-setup
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/artifacts/run-results-json
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/commands/cmd-docs
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/commands/deps
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/commands/init
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/dbt_project.yml
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/global-configs/resource-type
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/node-selection/methods
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/resource-configs/access
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/resource-configs/bigquery-configs
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/resource-configs/contract
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/resource-configs/databricks-configs
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/resource-configs/enabled
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/resource-configs/group
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/resource-configs/meta
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/resource-configs/postgres-configs
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/resource-configs/redshift-configs
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/resource-configs/snowflake-configs
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/resource-properties/config
-
https://docs-getdbt-com-git-eol-dbt-labs.vercel.app/reference/resource-properties/freshness

<!-- end-vercel-deployment-preview -->
  • Loading branch information
matthewshaver authored Oct 29, 2024
1 parent 10ce590 commit f788c9d
Show file tree
Hide file tree
Showing 30 changed files with 9 additions and 647 deletions.
2 changes: 1 addition & 1 deletion contributing/single-sourcing-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ This component can be added directly to a markdown file in a similar way as othe
Both properties can be used together to set a range where the content should show. In the example below, this content will only show if the selected version is between **0.21** and **1.0**:

```markdown
<VersionBlock lastVersion="1.6">
<VersionBlock lastVersion="1.9">

Versioned content here

Expand Down
134 changes: 1 addition & 133 deletions website/dbt-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ exports.versions = [
},
{
version: "1.7",
EOLDate: "2024-10-30",
},
{
version: "1.6",
EOLDate: "2024-07-31",
EOLDate: "2024-11-01",
},
];

Expand Down Expand Up @@ -66,134 +62,6 @@ exports.versionedPages = [
page: "reference/global-configs/indirect-selection",
firstVersion: "1.8",
},
{
page: "reference/resource-configs/store_failures_as",
firstVersion: "1.7",
},
{
page: "docs/build/build-metrics-intro",
firstVersion: "1.6",
},
{
page: "docs/build/sl-getting-started",
firstVersion: "1.6",
},
{
page: "docs/build/about-metricflow",
firstVersion: "1.6",
},
{
page: "docs/build/join-logic",
firstVersion: "1.6",
},
{
page: "docs/build/validation",
firstVersion: "1.6",
},
{
page: "docs/build/semantic-models",
firstVersion: "1.6",
},
{
page: "docs/build/group-by",
firstVersion: "1.6",
},
{
page: "docs/build/entities",
firstVersion: "1.6",
},
{
page: "docs/build/metrics-overview",
firstVersion: "1.6",
},
{
page: "docs/build/cumulative",
firstVersion: "1.6",
},
{
page: "docs/build/derived",
firstVersion: "1.6",
},
{
page: "docs/build/measure-proxy",
firstVersion: "1.6",
},
{
page: "docs/build/ratio",
firstVersion: "1.6",
},
{
page: "reference/commands/clone",
firstVersion: "1.6",
},
{
page: "docs/collaborate/govern/project-dependencies",
firstVersion: "1.6",
},
{
page: "reference/dbt-jinja-functions/thread_id",
firstVersion: "1.6",
},
{
page: "reference/resource-properties/deprecation_date",
firstVersion: "1.6",
},
{
page: "reference/commands/retry",
firstVersion: "1.6",
},
{
page: "docs/build/groups",
firstVersion: "1.5",
},
{
page: "docs/collaborate/govern/model-contracts",
firstVersion: "1.5",
},
{
page: "reference/commands/show",
firstVersion: "1.5",
},
{
page: "docs/collaborate/govern/model-access",
firstVersion: "1.5",
},
{
page: "docs/collaborate/govern/model-versions",
firstVersion: "1.5",
},
{
page: "reference/programmatic-invocations",
firstVersion: "1.5",
},
{
page: "reference/resource-configs/contract",
firstVersion: "1.5",
},
{
page: "reference/resource-configs/group",
firstVersion: "1.5",
},
{
page: "reference/resource-properties/access",
firstVersion: "1.5",
},
{
page: "reference/resource-properties/constraints",
firstVersion: "1.5",
},
{
page: "reference/resource-properties/latest_version",
firstVersion: "1.5",
},
{
page: "reference/resource-properties/versions",
firstVersion: "1.5",
},
{
page: "reference/resource-configs/on_configuration_change",
firstVersion: "1.6",
},
];

/**
Expand Down
2 changes: 1 addition & 1 deletion website/docs/docs/build/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ dbt Cloud has a number of pre-defined variables built in. Variables are set auto
The following environment variable is set automatically for the dbt Cloud IDE:

- `DBT_CLOUD_GIT_BRANCH` &mdash; Provides the development Git branch name in the [dbt Cloud IDE](/docs/cloud/dbt-cloud-ide/develop-in-the-cloud).
- Available in dbt v 1.6 and later.
- Available in dbt v1.6 and later.
- The variable changes when the branch is changed.
- Doesn't require restarting the IDE after a branch change.
- Currently not available in the [dbt Cloud CLI](/docs/cloud/cloud-cli-installation).
Expand Down
139 changes: 0 additions & 139 deletions website/docs/docs/build/metricflow-time-spine.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,42 +124,6 @@ For an example project, refer to our [Jaffle shop](https://github.com/dbt-labs/j

<File name="metricflow_time_spine.sql">

<VersionBlock lastVersion="1.6">

```sql
{{
config(
materialized = 'table',
)
}}
with days as (
{{
dbt_utils.date_spine(
'day',
"to_date('01/01/2000','mm/dd/yyyy')",
"to_date('01/01/2025','mm/dd/yyyy')"
)
}}
),
final as (
select cast(date_day as date) as date_day
from days
)
select * from final
-- filter the time spine to a specific range
where date_day > dateadd(year, -4, current_timestamp())
and date_hour < dateadd(day, 30, current_timestamp())
```

</VersionBlock>

<VersionBlock firstVersion="1.7">

```sql
{{
config(
Expand Down Expand Up @@ -189,42 +153,9 @@ where date_day > dateadd(year, -4, current_timestamp())
and date_hour < dateadd(day, 30, current_timestamp())
```

</VersionBlock>

### Daily (BigQuery)

Use this model if you're using BigQuery. BigQuery supports `DATE()` instead of `TO_DATE()`:
<VersionBlock lastVersion="1.6">

<File name="metricflow_time_spine.sql">

```sql
{{config(materialized='table')}}
with days as (
{{dbt_utils.date_spine(
'day',
"DATE(2000,01,01)",
"DATE(2025,01,01)"
)
}}
),
final as (
select cast(date_day as date) as date_day
from days
)
select *
from final
-- filter the time spine to a specific range
where date_day > dateadd(year, -4, current_timestamp())
and date_hour < dateadd(day, 30, current_timestamp())
```

</File>
</VersionBlock>

<VersionBlock firstVersion="1.7">

<File name="metricflow_time_spine.sql">

Expand Down Expand Up @@ -253,7 +184,6 @@ and date_hour < dateadd(day, 30, current_timestamp())
```

</File>
</VersionBlock>

</File>

Expand Down Expand Up @@ -306,42 +236,6 @@ To create this table, you need to create a model in your dbt project called `met

### Daily

<VersionBlock lastVersion="1.6">
<File name='metricflow_time_spine.sql'>

```sql
{{
config(
materialized = 'table',
)
}}
with days as (
{{
dbt_utils.date_spine(
'day',
"to_date('01/01/2000','mm/dd/yyyy')",
"to_date('01/01/2025','mm/dd/yyyy')"
)
}}
),
final as (
select cast(date_day as date) as date_day
from days
)
select * from final
-- filter the time spine to a specific range
where date_day > dateadd(year, -4, current_timestamp())
and date_hour < dateadd(day, 30, current_timestamp())
```
</File>
</VersionBlock>

<VersionBlock firstVersion="1.7">
<File name='metricflow_time_spine.sql'>


Expand Down Expand Up @@ -375,43 +269,11 @@ and date_hour < dateadd(day, 30, current_timestamp())
```

</File>
</VersionBlock>

### Daily (BigQuery)

Use this model if you're using BigQuery. BigQuery supports `DATE()` instead of `TO_DATE()`:

<VersionBlock lastVersion="1.6">

<File name="metricflow_time_spine.sql">

```sql
{{config(materialized='table')}}
with days as (
{{dbt_utils.date_spine(
'day',
"DATE(2000,01,01)",
"DATE(2025,01,01)"
)
}}
),
final as (
select cast(date_day as date) as date_day
from days
)
select *
from final
-- filter the time spine to a specific range
where date_day > dateadd(year, -4, current_timestamp())
and date_hour < dateadd(day, 30, current_timestamp())
```
</File>
</VersionBlock>

<VersionBlock firstVersion="1.7">

<File name="metricflow_time_spine.sql">

```sql
Expand All @@ -438,7 +300,6 @@ and date_hour < dateadd(day, 30, current_timestamp())
```

</File>
</VersionBlock>

You only need to include the `date_day` column in the table. MetricFlow can handle broader levels of detail, but finer grains are only supported in versions 1.9 and higher.

Expand Down
Loading

0 comments on commit f788c9d

Please sign in to comment.