Commit graph

16 commits

Author SHA1 Message Date
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
Daniel Roth
b3fa7c3051 rename Plan and Scenario to PlanModel and ScenarioModel 2026-02-12 12:01:39 +00:00
Khalim Conn-Kowlessar
9963151944 debugging upload of funding data to db 2025-08-21 18:53:43 +01:00
Khalim Conn-Kowlessar
096915bf33 added missing fields to scenarios model 2024-07-30 21:11:04 +01:00
Khalim Conn-Kowlessar
b1f4f154dd Refactored recommendation uploading to return ids explicitly on upload 2024-07-30 20:00:32 +01:00
Khalim Conn-Kowlessar
cadbd4f48a Adding scenario structure to backend 2024-07-30 17:42:36 +01:00
Khalim Conn-Kowlessar
36718ab3be handling aggregations storage to db 2024-07-09 23:30:09 +01:00
Khalim Conn-Kowlessar
d6fa81939d creating new aggregations for front end 2024-04-15 23:41:24 +01:00
Khalim Conn-Kowlessar
e182d7acd7 change calculation of energy savings to use adjusted heat demand, not heat demand 2024-04-05 10:19:22 +01:00
Khalim Conn-Kowlessar
d97a91eec7 Put in placeholder method to break down carbon and energy savings 2023-11-28 22:32:12 +00:00
Khalim Conn-Kowlessar
7ebfb3b99c Added labour days to cavity walls costs 2023-11-28 12:39:11 +00:00
Khalim Conn-Kowlessar
1da9433ee2 Adding in mvp valuation and energy cost savings for keyzy demo 2023-11-28 11:41:34 +00:00
Khalim Conn-Kowlessar
d942eacc55 finished updating recommendations for now to build portfolios 2023-11-24 11:54:46 +00:00
Khalim Conn-Kowlessar
f2fc921bc5 optimised api speed, good enough for now 2023-08-21 11:32:50 +01:00
Khalim Conn-Kowlessar
6d381c2b65 refactored database upload so it's more efficient 2023-08-21 11:03:54 +01:00
Khalim Conn-Kowlessar
776f3a48e5 Added in portfolio aggregation method 2023-08-18 17:21:11 +01:00