Model/backend/app/db/models
Khalim Conn-Kowlessar 883028c89e P6.1 follow-on: unbox BuildingPartIdentifier at backend boundaries
Threads the strict BuildingPartIdentifier type (introduced in a8b443f6)
through the two remaining backend touchpoints:

- EpcBuildingPartModel.from_*: SQLModel column expects a string, so
  unbox the enum with .identifier.value before binding to the DB.
- documents_parser end-to-end tests: swap bare-string equality
  ("main" / "extension_1") for identity checks against the enum
  members (BuildingPartIdentifier.MAIN / EXTENSION_1).

Documents_parser test pack passes (105/105). No dedicated SQLModel test
covers EpcBuildingPartModel.from_*; the .value line is exercised
transitively via db_writer.py / local_runner.py in production.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 09:58:23 +00:00
..
tests typing and renaming 🟪 2026-05-07 13:26:49 +00:00
addresses.py working on integration test 2026-02-23 12:13:59 +00:00
bulk_address_uploads.py added backend funciton to functions 2026-04-22 14:21:39 +00:00
condition.py working on integration test 2026-02-23 12:13:59 +00:00
energy_assessments.py removed create_type from enum (only created if it doesn't exist) 2026-02-26 18:21:37 +00:00
epc.py working on integration test 2026-02-23 12:13:59 +00:00
epc_property.py P6.1 follow-on: unbox BuildingPartIdentifier at backend boundaries 2026-05-20 09:58:23 +00:00
funding.py working on integration test 2026-02-23 12:13:59 +00:00
hubspot_deal_data.py added additional columns to db 2026-04-30 17:10:00 +01:00
hubspot_user.py Adding use model for storage of users 2026-04-30 18:53:15 +00:00
inspections.py working on integration test 2026-02-23 12:13:59 +00:00
magic_plan.py typing and renaming 🟪 2026-05-07 13:26:49 +00:00
materials.py working on integration test 2026-02-23 12:13:59 +00:00
non_intrusive_surveys.py working on integration test 2026-02-23 12:13:59 +00:00
organisation.py move HubspotDealData object to dedicated file 2026-04-09 10:46:52 +00:00
portfolio.py address fields are not optional 2026-04-24 10:22:41 +00:00
postcode_search.py lambda code works locally 2026-03-06 12:51:08 +00:00
recommendations.py define new domain object 2026-04-13 16:18:17 +00:00
solar.py working on integration test 2026-02-23 12:13:59 +00:00
tasks.py task and sub tasks imrpvoed 2026-05-12 16:24:11 +00:00
uploaded_file.py Upload gzip-compressed MagicPlan JSON to S3 🟥 2026-05-08 14:14:42 +00:00
users.py working on integration test 2026-02-23 12:13:59 +00:00
whlg.py working on integration test 2026-02-23 12:13:59 +00:00