Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insights query returned no data after using custom date ranges and changing time buckets #2661

Closed
macobo opened this issue Dec 4, 2020 · 1 comment
Labels
bug Something isn't working right feature/trends Feature Tag: Trends good first issue Good for newcomers

Comments

@macobo
Copy link
Contributor

macobo commented Dec 4, 2020

Bug description

Playing with time buckets and date filters can result in broken queries which return no data.

Screenshot from 2020-12-04 10-49-43

Expected behavior

This query should return data.

How to reproduce

  1. Go to insights, graph $pageview
  2. Select a custom date range, e.g. 2nd to 4th december
  3. Change time buckets from daily to hourly
  4. See query returns no data, time range is set to today.

Environment

Posthog cloud

Additional context

Here's the query sent to the server - note the date_from and date_to.

insight: TRENDS
display: ActionsLineGraph
events: [{"id":"$pageview","name":"$pageview","type":"events","order":0}]
properties: []
date_to: 2020-12-04
date_from: dStart
interval: hour

This came up during #2560

Thank you for your bug report – we love squashing them!

@macobo macobo added bug Something isn't working right feature/trends Feature Tag: Trends good first issue Good for newcomers labels Dec 4, 2020
@EDsCODE EDsCODE mentioned this issue Jan 7, 2021
21 tasks
@EDsCODE
Copy link
Member

EDsCODE commented Jan 7, 2021

can't seem to reproduce will close for now. if it's broken reopen!

@EDsCODE EDsCODE closed this as completed Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right feature/trends Feature Tag: Trends good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants