Skip to main content

ingest

Function ingest 

Source
pub async fn ingest(
    source: &dyn TicketSource,
    store: &dyn Store,
    author: &str,
    scope: Option<&str>,
) -> Result<IngestSummary, IngestError>
Expand description

Pull all changed tickets from source and upsert them into store, attributing writes to author.

scope is the board/connection discriminator woven into each record key (see crate::record_key): pass the connection name for board sources so the same external item on two boards lands in two distinct records (#159), or None for a single-board / board-agnostic source.