mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
37 modelling_e2e properties failed on the 2026-06-23 run with `NotNullViolation: null value in column "wet_rooms_count" of relation "epc_property"`. Root cause: 21.0.1 lodges `wet_rooms_count` as Optional, and `from_rdsap_schema_21_0_1` passed it straight through (`wet_rooms_count=schema.wet_rooms_count`). A cert omitting it mapped to `EpcPropertyData.wet_rooms_count=None`. When a predicted EPC (which deep-copies a comparable template's EpcPropertyData) inherited that None and was persisted, it violated the `epc_property.wet_rooms_count` NOT-NULL column — and the calc's `wet_rooms_count > 0` check would also raise `TypeError` on None. Fix: coalesce to 0, matching every other mapper (RdSAP "not lodged" → the calc's minimum 1 wet room). Regression test added. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| domain | ||
| loaders | ||
| schema | ||
| search | ||
| surveys | ||
| __init__.py | ||
| construction_age_band.py | ||
| efficiency.py | ||
| floor.py | ||
| fuel.py | ||
| heating_controls.py | ||
| hotwater.py | ||
| main_heating.py | ||
| property_type_built_form.py | ||
| roof.py | ||
| walls.py | ||
| windows.py | ||