Limit map acquisition to selected theme
This commit is contained in:
@@ -29,12 +29,13 @@ def test_flanders_workspace_exposes_governed_thematic_products_on_demand() -> No
|
||||
assert "/datasets/thematic-raster/acquire" in api
|
||||
|
||||
|
||||
def test_selection_runs_all_available_themes_and_refreshes_persisted_datasets() -> None:
|
||||
def test_selection_reads_persisted_themes_but_acquires_only_the_active_theme() -> None:
|
||||
workspace = read("frontend/src/components/map/MapWorkspace.tsx")
|
||||
app = read("frontend/src/App.tsx")
|
||||
selection_hook = read("frontend/src/hooks/useMapThemeSelectionInsights.ts")
|
||||
|
||||
assert "for (const theme of DATA_THEMES)" in workspace
|
||||
assert ".filter((product) => product.theme === activeThemeId)" in workspace
|
||||
assert "await loadThemeInsights(bbox, availableThemes, areaId)" in workspace
|
||||
assert "!regionalPartitionedThemeActive && !onDemandThemeActive" in workspace
|
||||
assert "onRefreshProjectData" in workspace
|
||||
|
||||
Reference in New Issue
Block a user