Skip to content

fix: aggregation - #30

Merged
psincraian merged 2 commits into
mainfrom
claude/custom-events-aggregation-01VC895n1SQWZN8VWSLPXkzt
Nov 19, 2025
Merged

psincraian merged 2 commits into
mainfrom
claude/custom-events-aggregation-01VC895n1SQWZN8VWSLPXkzt

Conversation

@psincraian

Copy link
Copy Markdown
Owner

No description provided.

- Add aggregation parameter (day/week/month) to custom events API endpoint
- Implement aggregation logic in service layer for custom events
- Add helper methods for weekly and monthly aggregation of custom events
- Create comprehensive test suite (9 tests) for custom event aggregation
- Ensure custom events are grouped by dashboard aggregation setting
- All 18 aggregation tests pass (9 dashboard + 9 custom events)

This allows users to view custom event data aggregated by day, week, or
month, matching the behavior of regular analytics events.
The custom events timeseries API was not receiving the aggregation
parameter from the frontend, causing it to always default to daily
aggregation regardless of the user's selection.

Changes:
- Add aggregation parameter to custom events API call
- Update chart time unit based on aggregation (day/week/month)
- Dynamically adjust chart display format for different aggregations

Now when users change the aggregation period, custom events will
properly group by day, week, or month matching the regular events.
@psincraian
psincraian merged commit c996c4f into main Nov 19, 2025
1 check passed
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.

2 participants