Model/backend/app/db/functions
Khalim Conn-Kowlessar af5dbe325d feat(modelling): cut plan→recommendation readers onto plan_id
Rewrite the three structurally-identical m2m-join readers
(portfolio_functions.aggregate_portfolio_recommendations,
Outputs.get_recommendations_from_db, export get_recommendations) to join
PlanModel directly via recommendation.plan_id, dropping the plan_recommendations
join and its now-unused import. The writers set plan_id (prior slice), so the
rows resolve. test_export pins the export reader through the cut (its fixtures
now set recommendation.plan_id). A portfolio_functions DB characterization test
lands with the scenario consolidation (which provides the full-parity scenario
table the aggregation writes to).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 21:09:43 +00:00
..
tasks made everything complete not compelted 2026-04-21 20:37:34 +00:00
tests Store uploaded_file_id on magic_plan_plan row 🟥 2026-05-13 10:50:28 +00:00
__init__.py allow double glazing if no restrictions but confirmed performance of secondary glazing 2026-01-10 11:40:49 +00:00
address_functions.py removing data 2026-03-18 19:17:22 +00:00
already_installed_functions.py allow double glazing if no restrictions but confirmed performance of secondary glazing 2026-01-10 11:40:49 +00:00
bulk_address_uploads_functions.py added backend funciton to functions 2026-04-22 14:21:39 +00:00
condition_functions.py define models and bulk insert function 2026-01-28 15:01:10 +00:00
energy_assessment_functions.py updating database pushes for rebaselined properties 2026-03-25 22:16:30 +00:00
epc_functions.py reduced freshness down to 14 days 2026-04-09 17:17:41 +01:00
funding_functions.py completed database upload refactor 2025-12-22 18:46:19 +08:00
inspections_functions.py refactoring db requests to run in bulk 2025-12-19 09:43:13 +08:00
magic_plan_functions.py Store uploaded_file_id on magic_plan_plan row 🟥 2026-05-13 10:50:28 +00:00
materials_functions.py update floor recommendations for suspended floor 2023-11-24 08:03:09 +00:00
non_intrusive_surveys.py Pushed non-intrusive survey results to bd 2024-04-13 17:07:42 +01:00
portfolio_functions.py feat(modelling): cut plan→recommendation readers onto plan_id 2026-06-03 21:09:43 +00:00
property_functions.py testing out rebaselining 2026-02-12 22:25:03 +00:00
recommendations_functions.py feat(modelling): legacy writers set recommendation.plan_id (dual-write) 2026-06-03 21:01:56 +00:00
solar_functions.py updating write to db for solar api, wip 2024-09-18 12:19:28 +01:00
uploaded_files_functions.py skip file if already processed according to db 2026-04-07 14:34:33 +00:00
whlg_functions.py add my code to main 2025-11-14 13:36:09 +00:00