cadrumo.application.modelo.participation_index_rebuild_ports module¶
Application-owned capabilities for rebuilding the participation index.
The rebuild service reads the persisted modelo authorities and replaces a derived transaction index. This bundle is the application boundary for that operation: composition roots supply bucket-bound repository implementations, while the service remains independent of secure-object storage and adapter types.
- class ParticipationIndexRebuildRepositoryProtocol(*args, **kwargs)[source]¶
Bases:
ProtocolRequired replacement operation for the derived participation index.
- replace_all(indexes)[source]¶
Replace the persisted index and return the number of stale rows removed.
- Return type:
- Parameters:
indexes (Iterable[TransactionRevisionParticipationIndex])
- class ParticipationIndexRebuildPorts(calculation_repository, work_unit_repository, filing_repository, participation_index_repository)[source]¶
Bases:
objectRequired persisted authorities for one participation-index rebuild.
- Parameters:
calculation_repository (CalculationRevisionCatalogueRepositoryProtocol)
work_unit_repository (WorkUnitCatalogueRepositoryProtocol)
filing_repository (ModeloRecordCatalogueRepositoryProtocol)
participation_index_repository (ParticipationIndexRebuildRepositoryProtocol)
-
calculation_repository:
CalculationRevisionCatalogueRepositoryProtocol¶
-
work_unit_repository:
WorkUnitCatalogueRepositoryProtocol¶
-
filing_repository:
ModeloRecordCatalogueRepositoryProtocol¶
-
participation_index_repository:
ParticipationIndexRebuildRepositoryProtocol¶