Resolve export property ids with explicit ids overriding filters 🟩

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Khalim Conn-Kowlessar 2026-07-14 09:32:39 +00:00
parent ddc1994984
commit 274d71599e

View file

@ -68,7 +68,12 @@ class ScenarioExportTasks:
**override**, not a co-filter: when present it is used as given;
otherwise the ``filters`` are resolved against the portfolio through the
shared Modelling Run resolver (ADR-0056)."""
raise NotImplementedError
if property_ids:
return sorted(set(property_ids))
resolved = resolve_filtered_property_ids(
self._session, portfolio_id, filters
)
return sorted({filtered.property_id for filtered in resolved})
def create_export_subtask(
self, task_id: UUID, subtask_id: UUID, recipe: dict[str, Any]