diff --git a/backend/tests/test_sprint235_bathymetry_profiles.py b/backend/tests/test_sprint235_bathymetry_profiles.py index 941cd053..0eda5b57 100644 --- a/backend/tests/test_sprint235_bathymetry_profiles.py +++ b/backend/tests/test_sprint235_bathymetry_profiles.py @@ -353,3 +353,7 @@ def test_bathymetry_contract_and_expansion_roadmap_are_documented() -> None: dockerfile = (ROOT / "deploy" / "unraid" / "Dockerfile.all-in-one").read_text(encoding="utf-8") assert "py_compile scripts/provision_mol_bathymetry_profiles.py" in readiness assert "COPY scripts/provision_mol_bathymetry_profiles.py" in dockerfile + operator = (ROOT / "scripts" / "provision_mol_bathymetry_profiles.py").read_text(encoding="utf-8") + map_workspace = (ROOT / "frontend" / "src" / "components" / "map" / "MapWorkspace.tsx").read_text(encoding="utf-8") + assert 'DEFAULT_PROJECT_NAME = "Kempen Regional Workbench"' in operator + assert "regional_partitions_complete" in map_workspace diff --git a/docs/CODEX_EXECUTION_LOG.md b/docs/CODEX_EXECUTION_LOG.md index c949510c..a53547bd 100644 --- a/docs/CODEX_EXECUTION_LOG.md +++ b/docs/CODEX_EXECUTION_LOG.md @@ -10024,6 +10024,9 @@ Implemented: to the existing selection aggregation path. - Added the bathymetry source and acquisition API, environment controls, Mol operator command, map theme, profile inspector and source inventory. +- Kept municipality-only bathymetry hidden for a regional active Area until a + complete partition manifest exists; the Mol operator targets the canonical + Kempen workspace so selecting Mol in the ordinary map exposes the layer. - Documented partitioned Flanders scaling and federated Belgium/maritime scaling with explicit territorial sea, EEZ/continental shelf and TAW/LAT/mDNG semantics. diff --git a/frontend/src/components/map/MapWorkspace.tsx b/frontend/src/components/map/MapWorkspace.tsx index 709d9da7..57af3436 100644 --- a/frontend/src/components/map/MapWorkspace.tsx +++ b/frontend/src/components/map/MapWorkspace.tsx @@ -274,6 +274,9 @@ function datasetCoversSelectedArea( if (coverageScope !== 'municipality' || !dataset.area_id) { return true } + if (regionalScope && dataset.source_name === 'vmm_vha_bathymetry_profiles') { + return dataset.source_metadata?.['regional_partitions_complete'] === true + } if (regionalScope) { return true } diff --git a/scripts/README.md b/scripts/README.md index 8eb63663..bf45bd78 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -1893,7 +1893,7 @@ docker exec geointel python /app/scripts/provision_mol_bathymetry_profiles.py ``` Use `--force` only for a deliberate fresh provider snapshot. The command finds -`Mol Municipality Workbench` and `Gemeente Mol`, calls the canonical +`Kempen Regional Workbench` and `Gemeente Mol`, calls the canonical bathymetry acquisition endpoint and then verifies that vector selection count and semantic metrics match the persisted Job result. It never writes directly to PostGIS. diff --git a/scripts/provision_mol_bathymetry_profiles.py b/scripts/provision_mol_bathymetry_profiles.py index ce8a23e4..118425a9 100644 --- a/scripts/provision_mol_bathymetry_profiles.py +++ b/scripts/provision_mol_bathymetry_profiles.py @@ -16,7 +16,7 @@ import requests DEFAULT_API_URL = "http://127.0.0.1:8000" -DEFAULT_PROJECT_NAME = "Mol Municipality Workbench" +DEFAULT_PROJECT_NAME = "Kempen Regional Workbench" DEFAULT_AREA_FRAGMENT = "Gemeente Mol"