From c833a3c91b5a1615d418694f779ab4c721d1a3e5 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Thu, 21 May 2026 16:33:54 +0000 Subject: [PATCH] feat: implement get_col_to_description_mappings Collect, per shared landlord_additional_info key, the list of values across all UserAddress entries. Preserves first-seen key order and input order of values. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../landlord_description_overrides_orchestrator.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/orchestration/landlord_description_overrides_orchestrator.py b/orchestration/landlord_description_overrides_orchestrator.py index fb3fc61b..0751975a 100644 --- a/orchestration/landlord_description_overrides_orchestrator.py +++ b/orchestration/landlord_description_overrides_orchestrator.py @@ -15,5 +15,8 @@ class LandlordDescriptionOverridesOrchestrator: def get_col_to_description_mappings( self, list_of_user_address: list[UserAddress] ) -> dict[str, list[str]]: - - raise NotImplementedError() + mappings: dict[str, list[str]] = {} + for user_address in list_of_user_address: + for key, value in user_address.landlord_additional_info.items(): + mappings.setdefault(key, []).append(value) + return mappings