aws-lambda-stream icon indicating copy to clipboard operation
aws-lambda-stream copied to clipboard

access `rule` inside `compact.group` function

Open vsnig opened this issue 10 months ago • 0 comments

To be consistent with other functions that we pass to rules (toUpdateRequest etc.) that have signature (uow, rule) => ... can we have similar signature for compact.group function? Changing this:

    .group(rule.compact.group || ((uow) => uow.event.partitionKey))

to this:

    .group((uow) => rule.compact.group(uow, rule) || ((uow) => uow.event.partitionKey))

vsnig avatar Feb 06 '25 10:02 vsnig