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
Jun-te Kim
f226570b0f
upgraded python version
2026-06-17 09:28:24 +00:00
Daniel Roth
5178cd02c5
UploadedFile, FileTypeEnum, FileSourceEnum importable from infrastructure.postgres.uploaded_file_table 🟩
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-09 11:50:51 +00:00
Daniel Roth
ab465bf010
increase pashub fetcher timeout to 5 mins
2026-06-04 15:12:29 +00:00
Daniel Roth
428a5db513
Playwright tmp dirs are cleaned up after browser close 🟩
2026-06-04 12:51:14 +00:00
Daniel Roth
bd1fa09dc2
Playwright tmp dirs are cleaned up after browser close 🟥
2026-06-04 12:50:16 +00:00
Daniel Roth
db2cbc9c57
SharePoint upload is skipped when client is None 🟩
2026-06-04 09:33:07 +00:00
Daniel Roth
416dac0512
SharePoint upload is skipped when client is None 🟥
2026-06-04 09:29:24 +00:00
Daniel Roth
eb72b0223f
add ECO_SHAREPOINT_ID env var
2026-06-04 09:11:08 +00:00
Daniel Roth
d31d0683f5
get triggers working for abri address list
2026-06-03 14:23:08 +00:00
Daniel Roth
19e40ff049
rename mcs_certificate to mcs_compliance_certificate to match existing db enum value
2026-06-03 09:00:01 +00:00
Daniel Roth
36f50c3bef
Merge branch 'main' into pashub-fetcher-all-files
2026-06-03 08:57:31 +00:00
Daniel Roth
7984a6ded8
All downloaded PasHub files uploaded to SharePoint property folder 🟩
2026-06-03 08:52:30 +00:00
Daniel Roth
39fa1ccfa0
All downloaded PasHub files uploaded to SharePoint property folder 🟥
2026-06-03 08:49:37 +00:00
Daniel Roth
37ec409553
tweak local trigger
2026-06-03 08:21:54 +00:00
Jun-te Kim
4e02eb7c77
more tests to ensure we don't deploy something that is brokern
2026-06-02 15:03:20 +00:00
Daniel Roth
223c1a259b
adjust comment about evidence type
2026-06-02 14:32:13 +00:00
Daniel Roth
1a1804399e
Service persists mcs_certificate file_type when evidence_category is MCS cert 🟩
2026-06-02 14:29:52 +00:00
Daniel Roth
bdc35573b5
Downloaded files carry evidence_category as DownloadedFile 🟩
2026-06-02 14:27:54 +00:00
Daniel Roth
d68cbb44f8
Downloaded files carry evidence_category as DownloadedFile 🟥
2026-06-02 14:24:24 +00:00
Daniel Roth
98eccda0ba
MCS cert identified by evidence_category in get_core_file_type 🟩
2026-06-02 14:21:58 +00:00
Daniel Roth
ca224515f9
MCS cert identified by evidence_category in get_core_file_type 🟥
2026-06-02 14:20:35 +00:00
Daniel Roth
5df874b978
evidence categories plus typehinting
2026-06-02 12:54:12 +00:00
Daniel Roth
62676cfbc9
run() returns core and other file paths 🟩
2026-06-02 09:43:48 +00:00
Daniel Roth
9efd4e34c2
run() returns core and other file paths 🟥
2026-06-02 09:42:41 +00:00
Daniel Roth
fa450a37a3
Other files persisted to DB with file_type OTHER 🟩
2026-06-02 09:41:39 +00:00
Daniel Roth
af61c362b2
Other files persisted to DB with file_type OTHER 🟥
2026-06-02 09:39:39 +00:00
Daniel Roth
ecca84294a
Upload other files to S3 when get_other_files is True 🟩
2026-06-02 09:37:17 +00:00
Daniel Roth
1a1f9f2e6a
Upload other files to S3 when get_other_files is True 🟥
2026-06-02 09:35:12 +00:00
Daniel Roth
9b74bc5f3f
tidying for readability
2026-06-02 08:09:36 +00:00
Daniel Roth
60447a58e3
Service deletes other-file temp paths after run 🟩
2026-06-01 15:53:28 +00:00
Daniel Roth
d5a3357343
Service deletes other-file temp paths after run 🟥
2026-06-01 15:52:44 +00:00
Daniel Roth
8b6f67b357
Wire service to get_evidence_files_by_job_id; retire get_core_evidence_files_by_job_id 🟪
2026-06-01 15:51:53 +00:00
Daniel Roth
ad4b88515d
get_evidence_files_by_job_id downloads other files when include_other=True 🟩
2026-06-01 15:14:30 +00:00
Daniel Roth
9cf6eaec4b
get_evidence_files_by_job_id downloads other files when include_other=True 🟥
2026-06-01 15:13:20 +00:00
Daniel Roth
7adcad3ee6
get_evidence_files_by_job_id returns DownloadedFiles with empty other when include_other=False 🟩
2026-06-01 15:11:35 +00:00
Daniel Roth
15e37ef0e0
get_evidence_files_by_job_id returns DownloadedFiles with empty other when include_other=False 🟥
2026-06-01 15:09:49 +00:00
Daniel Roth
a1620f5015
Group evidence into core and other via _group_into_core_and_other_files 🟪
2026-06-01 15:07:19 +00:00
Daniel Roth
de9ec989d3
_select_other_files returns non-core evidence files 🟩
2026-06-01 15:04:28 +00:00
Daniel Roth
8e0392514f
_select_other_files returns non-core evidence files 🟥
2026-06-01 15:03:13 +00:00
Daniel Roth
62eea9f005
allow for missing deal stage column when triggering sqs from file
2026-06-01 14:10:25 +00:00
Daniel Roth
fe482a9907
rename local handler trigger script
2026-06-01 14:09:14 +00:00
Daniel Roth
20ad0616bc
PAS Hub happy path asserts file_source "pas hub" 🟩
2026-05-19 11:10:45 +00:00
Daniel Roth
a4ad1ca11c
Coordination Hub file listing fallback stores correct file_source in DB 🟩
2026-05-19 11:10:18 +00:00
Daniel Roth
1e115ba3de
Coordination Hub fallback stores correct file_source in DB 🟩
2026-05-19 11:09:01 +00:00
Daniel Roth
dc3543ac5f
Coordination Hub fallback stores correct file_source in DB 🟥
2026-05-19 11:07:41 +00:00
Daniel Roth
770493ff9e
add logging
2026-05-18 11:51:48 +00:00
Daniel Roth
4cd59768c3
Wire coordination account fallback into config and handler, remove token-refresh retry 🟩
2026-05-18 09:22:32 +00:00
Daniel Roth
dcff529219
UnauthorizedError propagates when both PAS and coordination clients return 401 🟩
2026-05-18 09:13:51 +00:00
Daniel Roth
5a29866245
PAS raises UnauthorizedError when 401 received with no coordination factory configured 🟩
2026-05-18 09:12:19 +00:00