Model/tests/applications
Khalim Conn-Kowlessar 0ca8ca31a0 Refresh a property's default Plan when its owning scenario is re-run
A Plan became default only when its Scenario was flagged default or the
property had no Plan yet. Scenarios are created is_default=False, so in
practice only the first-ever Plan was ever promoted — re-modelling a
property appended a new Plan but left the default frozen on the first run,
so a re-model never surfaced on the FE (property 792168 kept its 2026-07-22
scenario-1328 default through three same-scenario re-runs).

Also promote when the re-run models the SAME scenario that currently owns
the property's default, so a re-run refreshes the shown Plan in place (the
save demotes the stale one). A re-run of a different scenario still does not
hijack the default. New PlanRepository.default_plan_scenario_by_property
surfaces each property's default scenario for the decision.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-27 16:53:24 +00:00
..
abri Complete the task for a void property instead of dead-lettering it 🟥 2026-07-27 11:26:12 +00:00
ara_export Add the scenario export route, worker handler and SQS trigger 🟩 2026-07-14 09:36:14 +00:00
ara_first_run refactor(ara): rename FirstRunPipeline → AraFirstRunPipeline (PR #1139 review) 2026-06-01 15:00:33 +00:00
audit_generator put db engine construction inside handler to avoid import errors in test 2026-06-09 15:18:42 +00:00
landlord_description_overrides Classify the landlord Hot Water and Heating columns into categories 🟥 2026-06-19 14:07:14 +00:00
magic_plan define MagicPlanConfig class to get environment variables 2026-06-05 15:46:32 +00:00
modelling_e2e Refresh a property's default Plan when its owning scenario is re-run 2026-07-27 16:53:24 +00:00
pashub_fetcher Move the PasHub fetcher into the DDD layer structure 🟪 2026-07-22 13:35:54 +00:00
__init__.py feat(ara): AraFirstRunTriggerBody + ara_first_run lambda skeleton (#1130) 2026-05-30 20:38:15 +00:00