Closed benvinegar closed 7 months ago
I noticed it was happening here in https://github.com/kandros/counterscale/blob/a21f6fd2f172df75268d34a65e9713fa3aaa3c23/app/analytics/query.ts#L492
the WHERE timestamp > ${intervalSql}
is not finding _sample_interval
relative to the site so it's not returned
Ah, yeah, I knew where the behavior was, I just wasn't sure what to do instead.
Maybe just select all sites with data within the past 90 days? (That's basically the entire data set, since CF Analytics Engine retention is 90 days at the moment.)
Example when 30 days (all sites selectable, because there is traffic within 30 days):
But here's what happens when you choose 7 days:
benchmarking
disappears because it had no traffic during that period.Expected behavior:
benchmarking
should still be selectable, even if there's no reported traffic over that interval.