You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UK economy: constituency_impact and local_authority_impact changed from dict to list, breaking the maps #3955
UK economy results now return constituency_impact and local_authority_impact as lists, so the app's constituency and local authority maps show "No constituency data available" in production (v2 and v3).
GET /uk/economy/85546/over/1?region=uk&time_period=2026 (resolved_app_name: policyengine-simulation-py6-5-0, policyengine_bundle.model_version: 2.130.1):
result.constituency_impact: a list of 632 objects {constituency_code, constituency_name, x, y, average_household_income_change, relative_household_income_change, population}
result.local_authority_impact: a list of 363 objects with local_authority_code, local_authority_name and the same fields
The documented and previous shape (still emitted by the code in this repo) is a dict:
Fixed by #4024 with app-v2 #1398, now live. Checked on production data after the 4024 deploy: the local-area breakdown returns constituency_impact and local_authority_impact as lists, and the v3 "Local areas" tab (report 4729) shows both maps, the top and bottom five, the disclosure notes (71 of 650 constituencies and 56 of 361 local authorities not published), and Northern Ireland (Belfast West −£38, 90% range −£51 to −£27). I could not open a saved v2 report in the browser; #1398's unit tests cover the v2 constituency and local-authority sub-pages.
Activity
PavelMakarchuk commentedon Oct 23, 2026
Fixed by #4024 with app-v2 #1398, now live. Checked on production data after the 4024 deploy: the local-area breakdown returns
constituency_impactandlocal_authority_impactas lists, and the v3 "Local areas" tab (report 4729) shows both maps, the top and bottom five, the disclosure notes (71 of 650 constituencies and 56 of 361 local authorities not published), and Northern Ireland (Belfast West −£38, 90% range −£51 to −£27). I could not open a saved v2 report in the browser; #1398's unit tests cover the v2 constituency and local-authority sub-pages.