Report landlord references whose portfolio UPRN is null 🟩

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Khalim Conn-Kowlessar 2026-07-13 15:06:05 +00:00
parent 43a0977fce
commit c9c9463ac3

View file

@ -25,4 +25,9 @@ class PropertyUprnLookup(UprnLookup):
def null_uprn_references(self) -> List[str]:
"""Landlord references present in the portfolio whose UPRN is null —
surfaced so a load can report them (none expected; ADR-0064)."""
raise NotImplementedError
references = self._reader.references_for_portfolio(self._portfolio_id)
return [
ref.landlord_property_id
for ref in references
if ref.landlord_property_id is not None and ref.uprn is None
]