-
Notifications
You must be signed in to change notification settings - Fork 14k
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
Table filter not working #8273
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Same as issue apache-superset/superset-ui-plugins#125 |
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 |
This still seems to be an issue in 1.0.1. The table filter functionality is very useful for interactive dashboards. Any chance we could reopen the issue? I narrowed down the issue to the dashboardFilter reducer trying to update an undefined filter as the getInitialState function only creates an initial filter for filter_box and filter_select types. (See here) I believe it may almost work out of the box by allowing for 'table' types in the if statement. |
This functionality is currently being actively worked on - please see #12662 for the new functionality that was recently added and is currently being implemented on the table chart (and other charts) to replace the old deprecated logic. |
OK Thanks. Will that functionality be in the next version of Superset? If helps, I submitted a PR that fixes the issue with the current implementation. Basically just making sure dashboardFilters get an initial state for tables so when a changeFilter event is emitted, the dashboardFilter state for the chart can be updated. |
When "emit filter events" is checked for table, filter no longer works.
Expected results
Clicking on rows in table should emit filter event and other widgets should react to filter events
Actual results
Browser's console would log "Cannot read property 'columns' of undefined".
Screenshots
How to reproduce the bug
This assumes we are using superset with sample data
Environment
(please complete the following information):
0.34.1
3.7.4
10.16.3
6.10.3
Checklist
Make sure these boxes are checked before submitting your issue - thank you!
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: