Use full-area fast path for regional history
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-15 23:46:15 +02:00
parent 3a8f6e6cef
commit 63e61627a9
4 changed files with 15 additions and 0 deletions
@@ -232,6 +232,15 @@ def test_full_area_fast_path_requires_matching_area_and_clipped_operator_provena
source="manual",
source_metadata={"geometry_clipped_to_area": True},
)
regional_historical = Dataset(
id=uuid4(),
project_id=project_id,
area_id=area_id,
name="Regional historical buildings",
dataset_type="vector",
source="operator_official_import",
provenance_metadata={"operator_tool": "provision_regional_historical_landuse.py"},
)
untrusted = Dataset(
id=uuid4(),
project_id=project_id,
@@ -243,6 +252,7 @@ def test_full_area_fast_path_requires_matching_area_and_clipped_operator_provena
assert VectorFeatureService.can_use_full_area_fast_path(trusted, area_id) is True
assert VectorFeatureService.can_use_full_area_fast_path(explicit, area_id) is True
assert VectorFeatureService.can_use_full_area_fast_path(regional_historical, area_id) is True
assert VectorFeatureService.can_use_full_area_fast_path(untrusted, area_id) is False
assert VectorFeatureService.can_use_full_area_fast_path(trusted, uuid4()) is False
assert VectorFeatureService.can_use_full_area_fast_path(trusted, None) is False