mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-08-03 05:18:22 +00:00
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> |
||
|---|---|---|
| .. | ||
| audit_generator | ||
| magic_plan | ||
| __init__.py | ||
| fakes.py | ||
| test_abri_orchestrator_abandon_job.py | ||
| test_abri_orchestrator_amend_job.py | ||
| test_abri_orchestrator_log_job.py | ||
| test_abri_orchestrator_tenant_data_sync.py | ||
| test_ara_first_run_pipeline.py | ||
| test_ara_first_run_pipeline_integration.py | ||
| test_build_canonical_filename.py | ||
| test_bulk_document_download_orchestrator.py | ||
| test_bulk_upload_finaliser_orchestrator.py | ||
| test_first_run_without_database.py | ||
| test_ingestion_orchestrator.py | ||
| test_ingestion_prediction.py | ||
| test_landlord_description_overrides_orchestrator.py | ||
| test_modelling_baseline_coherence.py | ||
| test_modelling_fabric_first.py | ||
| test_modelling_goal_band_floor.py | ||
| test_modelling_goal_objectives.py | ||
| test_modelling_heat_pump_sizing_threading.py | ||
| test_modelling_solar_threading.py | ||
| test_pashub_fetcher_orchestrator.py | ||
| test_postcode_splitter_orchestrator.py | ||
| test_property_baseline_orchestrator.py | ||
| test_scenario_export_orchestrator.py | ||
| test_task_orchestrator.py | ||