superset icon indicating copy to clipboard operation
superset copied to clipboard

Fix time range view on dashboard

Open syazshafei opened this issue 8 years ago • 15 comments

Make sure these boxes are checked before submitting your issue - thank you!

  • [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • [x] I have reproduced the issue with at least the latest released version of superset.
  • [x] I have checked the issue tracker for the same issue and I haven't found one similar.

Superset version

0.999.0dev

Expected results

Actual results

Steps to reproduce

I set the time range for the Filter Box in explore is "No Filter". But when on dashboard by default it will show "Last Week". So how to fix it?

17

syazshafei avatar Nov 23 '18 10:11 syazshafei

I have checked from 0.28 to 0.29.0RC7, this bug has not fixed. I suggested to escalate this bug to top priority because it will lead un-using for whole Superset.

bestao88 avatar Dec 13 '18 02:12 bestao88

+1

mlboy avatar Dec 24 '18 03:12 mlboy

I met the same problem

jeffcumt avatar Dec 28 '18 03:12 jeffcumt

I met the same problem

xwydq avatar Jan 28 '19 08:01 xwydq

Can't reproduce on master

mistercrunch avatar Jan 29 '19 06:01 mistercrunch

I am also having the same problem. I also suffer from the filter box disappearing from the dashboard when selecting a new time range. You get the following javascript error:

Uncaught TypeError: Cannot read property 'map' of undefined at filter_box.885b5b9fd31f4d3caa48.chunk.js:2 at Array.forEach () at t. (filter_box.885b5b9fd31f4d3caa48.chunk.js:2) at t. (filter_box.885b5b9fd31f4d3caa48.chunk.js:2) at Qi (vendors-major.4f5a17619ab655ae0e0c.chunk.js:2) at Xi (vendors-major.4f5a17619ab655ae0e0c.chunk.js:2) at to (vendors-major.4f5a17619ab655ae0e0c.chunk.js:2) at Ro (vendors-major.4f5a17619ab655ae0e0c.chunk.js:2) at No (vendors-major.4f5a17619ab655ae0e0c.chunk.js:2) at ha (vendors-major.4f5a17619ab655ae0e0c.chunk.js:2)

smith01s avatar Mar 15 '19 09:03 smith01s

Cant we change "Relative to today" to "Relative to now"? Because Relative to today starts showing data from present day's 00:00:00 right?

niranga-k avatar Mar 15 '19 14:03 niranga-k

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar May 14 '19 15:05 stale[bot]

This bug has not been fixed, why marked as stale?

bestao88 avatar May 19 '19 02:05 bestao88

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Jul 18 '19 03:07 stale[bot]

This issue should be solved asap because this is very very misleading.

nabinkhadka avatar Feb 06 '20 14:02 nabinkhadka

Can we have someone take a look at this? We've had this as a problem for a few months now and this is the most recent place I've seen any update on the subject.

tmswfrk avatar Feb 27 '20 18:02 tmswfrk

Hi all I am having the same issue. Whatever selection I have on my filter box chart, the dashboard defaults to "last week". Is there any plan to fix this or is there a workaround? Maybe I am mssing something. Thanks

vialcollet avatar Feb 12 '21 11:02 vialcollet

I found that if we follow these steps, we can fix this issue:

  • Display the dashboard
  • Select the appropriate time range
  • Edit the dashboard
  • Fake change
  • Save

vialcollet avatar Feb 12 '21 15:02 vialcollet

I met the same problem, not only time range.

Version: 0.38.1

Problems:

  1. set up "No filter" in chart, and import into a Dashboard, the default filter has been changed(like one time range filter at one moment cached by Superset forever).
  2. I can not choose the right point, I have to choose No filter then real time range manually. image

How to resolve:

  1. edit Dashboard config
  2. edit JSON Metadata, params from "default_filters": "{\"11\": {\"__time_range\": \"2023-10-23T00:00:00 : 2023-10-25T00:00:00\"}} to "default_filters": "{\"11\": {\"__time_range\": \"No filter\"}}
  3. save config, then cached time range problem fixed.

CzyerChen avatar Nov 13 '23 03:11 CzyerChen