tinybirdco / web-analytics-starter-kit

Tinybird Web Analytics Starter Kit
https://tinybird.co/starter-kits/web-analytics
MIT License
350 stars 36 forks source link

[Bug] KPIs not updating when time range is other than last 7 days #37

Closed alejandromav closed 2 years ago

alejandromav commented 2 years ago

Module

Dashboard

Describe the Bug

The general KPIs are showing wrong information when the filtered time range is different than the default (last 7 days).

This is because the dashboard is querying the kpi endpoint, but not passing the dates in a way they can be used.

image

The endpoint accepts parameters on the endpoint, but not specifying them in the where clause.

image

Expected Behavior

KPIs information is right for the selected time period.

To Reproduce

Filter any other time range different than "last 7 days". For example in this example the rest of the use cases show data for the specified time period, but the KPIs don't.

image

image

Details

No response