cadrumo.application.modelo._calculation_aggregation_context module¶
Context loading for bucket-aggregation calculation actions.
Core types:
RegistrySnapshot.
- load_bucket_aggregation_context(work_unit_id, *, work_unit_repository, profile)[source]¶
Return
(work_unit, snapshot, profile)for aggregation calculation.profileis the record the calling command already loaded, orNonefor the gate to load it; either way the returned profile is the one the readiness gate checked, and it is the only profile the calculation reads.- Return type:
- Parameters:
work_unit_id (str)
work_unit_repository (WorkUnitCatalogueRepositoryProtocol)
profile (ModeloWorkProfile | None)