Skip to contents

Fetches current roles for each affected org via brreg_roles(). Produces field-level changelogs using diff_roller_state() on a per-org basis. Slower than apply_roller_events() (bulk method) but provides per-event timestamp attribution for sub-daily syncs.

Usage

apply_roller_events_cdc(state, updates, verbose = TRUE)

Arguments

state

Current roller state tibble.

updates

Tibble of CDC events with org_nr, timestamp, update_id.

verbose

Logical.

Value

List with state and changelog.