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) <noreply@anthropic.com>
This commit is contained in:
Jun-te Kim 2026-05-21 16:33:54 +00:00
parent b14f98788e
commit c833a3c91b

View file

@ -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