Model/backend/pashub_fetcher
Daniel Roth b5c05166db Persist resolved UPRN on PasHub site-notes rows (#1537)
Thread the UPRN the PashubService has already resolved for a job into the
PasHub site-notes mapper so the EpcPropertyData aggregate is born with its
uprn set, and the existing save_epc_property_data path persists it.

- EpcPropertyDataMapper.from_site_notes gains uprn: Optional[int] = None and
  sets it unconditionally (site notes never carry a UPRN natively).
- parse_site_notes_pdf / _parse_pashub forward the uprn; the Elmhurst branch
  is untouched.
- PashubService coerces uprn str -> int in one place, carries it on the
  internal upload record, and passes it into parse_site_notes_pdf.
- No new lookups; jobs with no known UPRN still persist null, unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-10 13:19:28 +00:00
..
handler upgraded python version 2026-06-17 09:28:24 +00:00
local_handler include pymupdf in pashub fetcher requirements 2026-05-01 13:19:31 +00:00
tests UploadedFile, FileTypeEnum, FileSourceEnum importable from infrastructure.postgres.uploaded_file_table 🟩 2026-06-09 11:50:51 +00:00
core_files.py UploadedFile, FileTypeEnum, FileSourceEnum importable from infrastructure.postgres.uploaded_file_table 🟩 2026-06-09 11:50:51 +00:00
evidence_categories.py evidence categories plus typehinting 2026-06-02 12:54:12 +00:00
evidence_file_data.py improved typing 2026-03-23 16:16:20 +00:00
evidence_metadata.py improved typing 2026-03-23 16:16:20 +00:00
job.py upload files to sharepoint 2026-03-24 16:03:35 +00:00
pashub_client.py Downloaded files carry evidence_category as DownloadedFile 🟩 2026-06-02 14:27:54 +00:00
pashub_service.py Persist resolved UPRN on PasHub site-notes rows (#1537) 2026-07-10 13:19:28 +00:00
pashub_to_ara_trigger_request.py SharePoint upload is skipped when client is None 🟩 2026-06-04 09:33:07 +00:00
sharepoint_subfolders.py correct sharepoint file structure and playwright videos for debugging 2026-03-26 10:33:49 +00:00
spreadsheet.py move extraction from spreadsheet to dedicated file 2026-04-29 10:04:55 +00:00
The_Guinness_Partnership_AtkinsR_alis_Coordination_Design_Board_1774881298.xlsx correct s3 location and replace incorrect pashub link 2026-04-17 10:51:49 +00:00
token_getter.py Playwright tmp dirs are cleaned up after browser close 🟩 2026-06-04 12:51:14 +00:00
trigger_local_lambda_from_file.py get triggers working for abri address list 2026-06-03 14:23:08 +00:00
trigger_pashub_sqs_from_file.py increase pashub fetcher timeout to 5 mins 2026-06-04 15:12:29 +00:00
Watford_Warm_Homes_Wave_3_RA Downloads .xlsx get addresses and jobs from watford file 2026-03-24 16:48:11 +00:00