dbt-labs / docs.getdbt.com

The code behind docs.getdbt.com
https://docs.getdbt.com/
Apache License 2.0
118 stars 940 forks source link

Update the 1.7 migration guide #4123

Closed graciegoheen closed 1 year ago

graciegoheen commented 1 year ago

Contributions

Link to the page on docs.getdbt.com requiring updates

https://docs.getdbt.com/guides/migration/versions/upgrading-to-v1.7

What part(s) of the page would you like to see updated?

We need to update this for what's going to be released in 1.7

Additional information

@graciegoheen -> to add what content needs to go onto this page

dataders commented 1 year ago

Hi Grace, when you do this, do you mind linking to https://github.com/dbt-labs/dbt-core/discussions/8307? as we have done in previous upgrade guides? Something like the below?

For maintainers of adapter plugins

For more detailed information and to ask questions, please read and comment on the GH discussion: dbt-labs/dbt-core#8307.

graciegoheen commented 1 year ago

For consumers of dbt artifacts (metadata)

The manifest schema version has been updated to v11. Specific changes:

@dbeatty10 do you know what the manifest schema changes were? The PR that bumped the version didn't seem to make any other changes.

The run_results schema version has been updated to v5. Specific changes:

The nodes dictionary in the catalog.json can now be "partial" if dbt docs generate is run with a selector.

graciegoheen commented 1 year ago

New and changed documentation

dbt docs generate now supports --select to generate documentation for a subset of your project

source freshness can now be generated from warehouse metadata tables

MetricFlow enhancements

Quick hits

graciegoheen commented 1 year ago

Outstanding:

graciegoheen commented 1 year ago

Behavior change:

Full information here -> https://github.com/dbt-labs/dbt-core/issues/8704#issuecomment-1753905285

Previously -> "the loaded_at_field is required to calculate freshness for a table. If a loaded_at_field is not provided, then dbt will not calculate freshness for the table."

In 1.7 -> when you add a freshness: config to a source (and no loaded_at_field is provided), we will calculate freshness for that source via warehouse metadata tables when the warehouse supports it

dataders commented 1 year ago

@graciegoheen here's a 1.7 adapter upgrade guide snippet about dbt show. My brain feels as though it's something worth calling out in the end user 1.7 guide, but perhaps not because this change just happened for all users of 1.5 and 1.6 as well? Do we this new behavior called out? Ok for the answer to be no, provided that we only ever rever to the new behavior. That said, I don't see any reference in the doc for dbt show that mentions this new behavior

dbeatty10 commented 1 year ago

That said, I don't see any reference in the doc for dbt show that mentions this new behavior

@dataders I just opened an issue for this here: https://github.com/dbt-labs/docs.getdbt.com/issues/4256

I don't know the way you want to update the docs for show, so I'm relying on you to update this docs issue as-needed.