Skip to content

feat(grouper): propagate occurrence count to totalCount and repetitions#573

Draft
Reversean wants to merge 1 commit into
masterfrom
feat/event-count-support
Draft

feat(grouper): propagate occurrence count to totalCount and repetitions#573
Reversean wants to merge 1 commit into
masterfrom
feat/event-count-support

Conversation

@Reversean

Copy link
Copy Markdown
Member
  • event-worker / javascript worker: forward CatcherMessage.count to the
    grouper task instead of dropping it
  • grouper: use count instead of a hardcoded 1 when
    • setting totalCount on first occurrence
    • incrementing totalCount on repetitions
    • incrementing the daily events aggregate
  • grouper: record count on the repetition document itself, omitted when
    absent or 1 (single occurrence), set when a message represents more
    than one real occurrence

Draft: depends on @hawk.so/types publishing CatcherMessage.count /
RepetitionDBScheme.count (codex-team/hawk.types#76).

- event-worker / javascript-worker: forward CatcherMessage.count to the
  grouper task instead of dropping it
- grouper: use count instead of a hardcoded 1 when
  - setting totalCount on first occurrence
  - incrementing totalCount on repetitions
  - incrementing the daily events aggregate
- grouper: record count on the repetition document itself, omitted when
  absent or 1 (single occurrence), set when a message represents more
  than one real occurrence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant