Filter box disappear after date filter applied
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
- Create dashboard
- Add filter to dashboard
- Apply date filter
Looks like similar bug was found in #3649 with different case
Same issue here after the last release update!
Same Issue as well
Same for me.
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.
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.
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"
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
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.
It's fixed in master and will be fixed in future releases.
Thanks !
Is there a quick fix for this one? Something like 'add X to the slice's properties' ?
I am facing the same issue. Also using the latest version of superset 0.28.1. I tried it on Chrome and Safari browsers.
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.
+1 to prior comment, we run into this issue with 0.28.1 To repro:
- use filter-box component
- choose a date range for which there is no data on your data source
- 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
Same issue @nuria
@mistercrunch Can you re-open this issue?
Same issue @nuria :( Is there a quick fix for this one?
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
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 how long will it take for v0.29 to release?