Add pagination to audit history_for before exposing it via the API #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
db::audit::history_forreturns an unboundedVec<AuditEntry>(crates/db/src/audit.rs, already marked with aTODO). For an entity with a long history this is unbounded memory/transfer.Before this is exposed through an HTTP API (history/amendment view in the admin UI, Plan 8/10), add LIMIT/keyset pagination (keyset on
seqis natural and index-friendly given the(entity_type, entity_id, seq)index).seq).Source: Plan 1 (audit spine) reviews — deferred until there's an API consumer.