Skip to main content

render_aggregate

Function render_aggregate 

Source
pub fn render_aggregate(
    group_id: Uuid,
    constituents: &[Constituent],
    cover_override: Option<Uuid>,
) -> AggregateView
Expand description

Render the aggregate for group_id over constituents, honoring the per-viewer cover_override (a group_id → asset_id choice from the library-settings document; None falls back to the newest included asset).

Pure and deterministic: membership + assertion admit each constituent, entries merge by (capture_timestamp, asset_id), and the group name is the LWW-convergence of the included assertions. Recomputation is idempotent and identical across devices (grouping-convergence).