diff --git a/.changes/unreleased/Under the Hood-20220411-213914.yaml b/.changes/unreleased/Under the Hood-20220411-213914.yaml new file mode 100644 index 00000000000..febbb12e570 --- /dev/null +++ b/.changes/unreleased/Under the Hood-20220411-213914.yaml @@ -0,0 +1,7 @@ +kind: Under the Hood +body: "" +time: 2022-04-11T21:39:14.402268-04:00 +custom: + Author: leahwicz + Issue: "5033" + PR: "5032" diff --git a/core/dbt/contracts/graph/manifest.py b/core/dbt/contracts/graph/manifest.py index 5a8309d3319..736460cf5e7 100644 --- a/core/dbt/contracts/graph/manifest.py +++ b/core/dbt/contracts/graph/manifest.py @@ -1091,7 +1091,7 @@ def __init__(self, macros): @dataclass -@schema_version("manifest", 4) +@schema_version("manifest", 5) class WritableManifest(ArtifactMixin): nodes: Mapping[UniqueID, ManifestNode] = field( metadata=dict(description=("The nodes defined in the dbt project and its dependencies")) diff --git a/test/integration/029_docs_generate_tests/test_docs_generate.py b/test/integration/029_docs_generate_tests/test_docs_generate.py index 0623c4f25e0..7075fe795b0 100644 --- a/test/integration/029_docs_generate_tests/test_docs_generate.py +++ b/test/integration/029_docs_generate_tests/test_docs_generate.py @@ -646,7 +646,7 @@ def expected_seeded_manifest(self, model_database=None, quote_model=False): ) return { - 'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v4.json', + 'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v5.json', 'dbt_version': dbt.version.__version__, 'nodes': { 'model.test.model': { @@ -1237,7 +1237,7 @@ def expected_postgres_references_manifest(self, model_database=None): snapshot_path = self.dir('snapshot/snapshot_seed.sql') return { - 'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v4.json', + 'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v5.json', 'dbt_version': dbt.version.__version__, 'nodes': { 'model.test.ephemeral_copy': { @@ -1819,7 +1819,7 @@ def verify_manifest(self, expected_manifest): elif key == 'metadata': metadata = manifest['metadata'] self.verify_metadata( - metadata, 'https://schemas.getdbt.com/dbt/manifest/v4.json') + metadata, 'https://schemas.getdbt.com/dbt/manifest/v5.json') assert 'project_id' in metadata and metadata[ 'project_id'] == '098f6bcd4621d373cade4e832627b4f6' assert 'send_anonymous_usage_stats' in metadata and metadata[ diff --git a/test/unit/test_manifest.py b/test/unit/test_manifest.py index 35a5dad1975..1b7ec64b485 100644 --- a/test/unit/test_manifest.py +++ b/test/unit/test_manifest.py @@ -311,7 +311,7 @@ def test__no_nodes(self): 'child_map': {}, 'metadata': { 'generated_at': '2018-02-14T09:15:13Z', - 'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v4.json', + 'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v5.json', 'dbt_version': dbt.version.__version__, 'env': {ENV_KEY_NAME: 'value'}, 'invocation_id': invocation_id, @@ -462,7 +462,7 @@ def test_no_nodes_with_metadata(self, mock_user): 'docs': {}, 'metadata': { 'generated_at': '2018-02-14T09:15:13Z', - 'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v4.json', + 'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v5.json', 'dbt_version': dbt.version.__version__, 'project_id': '098f6bcd4621d373cade4e832627b4f6', 'user_id': 'cfc9500f-dc7f-4c83-9ea7-2c581c1b38cf', @@ -708,7 +708,7 @@ def test__no_nodes(self): 'child_map': {}, 'metadata': { 'generated_at': '2018-02-14T09:15:13Z', - 'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v4.json', + 'dbt_schema_version': 'https://schemas.getdbt.com/dbt/manifest/v5.json', 'dbt_version': dbt.version.__version__, 'invocation_id': '01234567-0123-0123-0123-0123456789ab', 'env': {ENV_KEY_NAME: 'value'},