diff --git a/core/dbt/contracts/graph/semantic_manifest.py b/core/dbt/contracts/graph/semantic_manifest.py index 4587a9dc4a6..76c87cac13b 100644 --- a/core/dbt/contracts/graph/semantic_manifest.py +++ b/core/dbt/contracts/graph/semantic_manifest.py @@ -59,7 +59,7 @@ def validate(self) -> bool: semantic_manifest = self._get_pydantic_semantic_manifest() - if get_flags().allow_legacy_mf_cumulative_type_params is False: + if get_flags().require_nested_cumulative_type_params is False: metrics_using_old_params: Set[str] = set() for metric in semantic_manifest.metrics or []: for field in ("window", "grain_to_date"): diff --git a/core/dbt/contracts/project.py b/core/dbt/contracts/project.py index 88464ca5d72..1e41879556c 100644 --- a/core/dbt/contracts/project.py +++ b/core/dbt/contracts/project.py @@ -345,7 +345,7 @@ class ProjectFlags(ExtensibleDbtClassMixin): state_modified_compare_more_unrendered_values: bool = False state_modified_compare_vars: bool = False require_yaml_configuration_for_mf_time_spines: bool = False - allow_legacy_mf_cumulative_type_params: bool = False + require_nested_cumulative_type_params: bool = False @property def project_only_flags(self) -> Dict[str, Any]: @@ -357,7 +357,7 @@ def project_only_flags(self) -> Dict[str, Any]: "state_modified_compare_more_unrendered_values": self.state_modified_compare_more_unrendered_values, "state_modified_compare_vars": self.state_modified_compare_vars, "require_yaml_configuration_for_mf_time_spines": self.require_yaml_configuration_for_mf_time_spines, - "allow_legacy_mf_cumulative_type_params": self.allow_legacy_mf_cumulative_type_params, + "require_nested_cumulative_type_params": self.require_nested_cumulative_type_params, } diff --git a/tests/unit/contracts/graph/test_semantic_manifest.py b/tests/unit/contracts/graph/test_semantic_manifest.py index 82b551de7e9..ba8c731c497 100644 --- a/tests/unit/contracts/graph/test_semantic_manifest.py +++ b/tests/unit/contracts/graph/test_semantic_manifest.py @@ -92,7 +92,7 @@ def test_deprecate_cumulative_type_params(self, manifest: Manifest, metric: Metr with patch("dbt.contracts.graph.semantic_manifest.get_flags") as patched_get_flags, patch( "dbt.contracts.graph.semantic_manifest.deprecations" ) as patched_deprecations: - patched_get_flags.return_value.allow_legacy_mf_cumulative_type_params = False + patched_get_flags.return_value.require_nested_cumulative_type_params = False manifest.metrics[metric.unique_id] = metric sm_manifest = SemanticManifest(manifest) assert sm_manifest.validate()