superset icon indicating copy to clipboard operation
superset copied to clipboard

Filter box disappear after date filter applied

Open famasya opened this issue 8 years ago • 21 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 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.28.1

Expected results

Filter box stays after date filter applied.

Actual results

Got error message: Uncaught TypeError: Cannot read property 'map' of undefined. Filter box also disappear after date filter applied. However, charts successfully filtered within date range.

Steps to reproduce

  1. Create dashboard
  2. Add filter to dashboard
  3. Apply date filter

famasya avatar Oct 23 '18 03:10 famasya

Looks like similar bug was found in #3649 with different case

famasya avatar Oct 23 '18 03:10 famasya

Same issue here after the last release update!

UFSMEPS avatar Oct 23 '18 19:10 UFSMEPS

Same Issue as well

opus-42 avatar Oct 26 '18 13:10 opus-42

Same for me.

Jemteddy avatar Oct 26 '18 15:10 Jemteddy

This issue is so weird. Only some laptops/browsers seem to be affected. For instance I cannot reproduce it on my browser but people sitting next to me can, with the exact same version of chrome.

mistercrunch avatar Oct 26 '18 15:10 mistercrunch

I get the error everytime and asked some of my colleagues to try and they got the same error. However, if I try on Firefox (I usually use Chrome), the error is 'TypeError: "t is undefined"' (on Chrome, on the same dashboard, I also have "Uncaught TypeError: Cannot read property 'map' of undefined.") . Moreover on some dashboards the filter box shows up and disappear when I use it, on others I have the error straight away.

Jemteddy avatar Oct 26 '18 16:10 Jemteddy

Same error with Firefox. The error is "[3016]/E</<.value</</<@http:///static/assets/dist/filter_box.885b5b9fd31f4d3caa48.chunk.js:2:364709 [3016]/E</<.value</<@http:///static/assets/dist/filter_box.885b5b9fd31f4d3caa48.chunk.js:2:364605 [3016]/E</<.value</<@http:///static/assets/dist/filter_box.885b5b9fd31f4d3caa48.chunk.js:2:365980 Qi@http:///static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1384795 Xi@http:///static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1384639 to@http:///static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1387239 Ro@http:///static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1401252 No@http:///static/assets/dist/vendors-major.4f5a17619ab655ae0e0c.chunk.js:2:1401598"

yuezhiling2 avatar Oct 29 '18 09:10 yuezhiling2

We had this issue in production at Lyft and I fixed it with this patch. From what I understand the bug should not exist in master or in 0.28.x: https://github.com/lyft/incubator-superset/commit/57410671fb90aa86433274eb6dd644b134b92dbe

mistercrunch avatar Oct 29 '18 17:10 mistercrunch

The issue is with version 0.28.1, do you mean it's fixed on next versions ? I tried to reproduce your fix in superset/static/assets/coverage/lcov-report/src/visualizations/filter_box.jsx.html but the issue is still there.

Jemteddy avatar Oct 30 '18 09:10 Jemteddy

It's fixed in master and will be fixed in future releases.

mistercrunch avatar Oct 30 '18 16:10 mistercrunch

Thanks !

Jemteddy avatar Oct 31 '18 09:10 Jemteddy

Is there a quick fix for this one? Something like 'add X to the slice's properties' ?

dmigo avatar Nov 08 '18 11:11 dmigo

I am facing the same issue. Also using the latest version of superset 0.28.1. I tried it on Chrome and Safari browsers.

yogeshmhaskule avatar Nov 29 '18 07:11 yogeshmhaskule

I am also having issues with this with Superset version 0.28.0 and 0.28.1.. Version 0.27.0 does not have the same problem. In terms of future releases, I haven't been able to get superset running using the Dockerfile, and am relying on pip install superset, so the latest release I can use is 0.28.1.

returnoftheturk avatar Dec 03 '18 22:12 returnoftheturk

+1 to prior comment, we run into this issue with 0.28.1 To repro:

  1. use filter-box component
  2. choose a date range for which there is no data on your data source
  3. the filter box "dispaears" (not renders) and console has an error:

TypeError: Cannot read property 'map' of undefined at filter_box.e59f73f5cb03fe2e9e71.chunk.js:formatted:50202

Javascript:

                return Object.keys(i).filter(function(e) {
                    return !(i.hasOwnProperty(e) && e in r)
                }).forEach(function(e) {
                    var t = r[e]
                      , n = new Set(t.map(function(e) { // t is undefined and thus causing errors
                        return e.id

nuria avatar Dec 13 '18 21:12 nuria

Same issue @nuria

@mistercrunch Can you re-open this issue?

crodrigueza16 avatar Dec 28 '18 08:12 crodrigueza16

Same issue @nuria :( Is there a quick fix for this one?

jgarciaISITECH avatar Dec 28 '18 11:12 jgarciaISITECH

Hi,

is it possible to backport to 0.28, or to give an estimate date for the release of 0.29 ? It's a severe issue.

Thanks

thda avatar Dec 28 '18 16:12 thda

We're currently recommending running 0.29.0rc7 where this issue is fixed. We're held up on releases until we can spend cycles sorting out LICENSE related documentation to comply with the ASF for official releases.

mistercrunch avatar Dec 28 '18 17:12 mistercrunch

@mistercrunch how long will it take for v0.29 to release?

prashant-shahi avatar Feb 18 '19 06:02 prashant-shahi