Commit graph

12 commits

Author SHA1 Message Date
Khalim Conn-Kowlessar
b97d06882f feat(modelling): drop the plan_recommendations m2m
Stop writing the m2m (remove create_plan_recommendations + its call, the bulk
link insert and the now-dead plan_ids_by_index, and the plan_recommendations
delete in delete_property_batch) and remove the PlanRecommendationRow model +
its shim alias and the test_export fixture inserts. Measures now link to their
Plan solely via recommendation.plan_id (writers set it, readers join on it).

The live drop of the plan_recommendations table is the FE-owned Drizzle
migration documented in docs/migrations/recommendation-plan-id.md, sequenced
after the read-cut + backfill.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 21:13:00 +00:00
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
Khalim Conn-Kowlessar
c8dcf29845 minor commit to test git message 2026-05-01 08:54:54 +00:00
Khalim Conn-Kowlessar
aca503e877 fixing broken unit tests 2026-05-01 08:46:17 +00:00
Khalim Conn-Kowlessar
02cc1b9978 fixing failing tests 2026-04-30 20:18:39 +00:00
Daniel Roth
fa3e276dc4 define new domain object 2026-04-13 16:18:17 +00:00
Khalim Conn-Kowlessar
0f99fbc739 fixed initial export test 2026-03-27 01:25:18 +00:00
Khalim Conn-Kowlessar
261e0769e3 created test to cover off the case of solar pv + battery 2026-03-02 17:49:58 +00:00
Khalim Conn-Kowlessar
facc81d741 expanded keys being checked in tests 2026-03-02 14:45:51 +00:00
Khalim Conn-Kowlessar
e5d7a3ff14 Fixed outputs of export test 2026-02-26 18:16:50 +00:00
Khalim Conn-Kowlessar
1df4fb7815 working on export issues 2026-02-26 16:53:23 +00:00
Khalim Conn-Kowlessar
bf3d6f4d51 working on integration test 2026-02-23 12:13:59 +00:00