Skip to content

fix(consensus): apply selected time range to daily overview charts - #443

Merged
samcm merged 1 commit into
masterfrom
fix/consensus-overview-daily-range
Jul 13, 2026
Merged

fix(consensus): apply selected time range to daily overview charts#443
samcm merged 1 commit into
masterfrom
fix/consensus-overview-daily-range

Conversation

@samcm

@samcm samcm commented Jul 13, 2026

Copy link
Copy Markdown
Member

On the consensus overview page, every daily time range (30d, 90d, 180d, 1y, 2y) rendered identically to "All" because the daily queries fetch the full history (day_start_date_like: '20%', page_size: 10000) and nothing trimmed the result — startTimestamp was only applied to the hourly queries, and the daily endpoints have no server-side range filter on their day_start_date primary key. This trims daily records to the selected window client-side after fetch via two unit-tested pure helpers; the "All" window and the execution overview page (already bounded per-range) are unaffected.

The consensus overview daily queries (30d, 90d, 180d, 1y, 2y) fetched the
full history with day_start_date_like='20%' and page_size=10000 and never
trimmed the result, so every daily range rendered identically to "all". The
daily API endpoints expose no range filter on their primary key, so the
window is now applied client-side after fetch via a cutoff date derived from
the range's day count. The "all" window (null days) is unaffected.

Claude-Session: https://claude.ai/code/session_01Mp4aKNXPmN6NfMuNGbf3Qm
@samcm
samcm force-pushed the fix/consensus-overview-daily-range branch from 6de562f to 1646cd1 Compare July 13, 2026 05:40
@samcm
samcm marked this pull request as ready for review July 13, 2026 05:44
@samcm
samcm requested a review from Savid as a code owner July 13, 2026 05:44
@samcm
samcm merged commit 8ef4d81 into master Jul 13, 2026
3 checks passed
@samcm
samcm deleted the fix/consensus-overview-daily-range branch July 13, 2026 05:44
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