Redash: Dashboard filters disappear after changing dashboard parameter values

Created on 1 Oct 2019  路  2Comments  路  Source: getredash/redash

Issue Summary

My guess is that this was introduced with #3804

Steps to Reproduce

  1. Create a dashboard with a widget containing a filter and another widget containing a parameter (or use an existing one);
  2. Map the Widget Parameter to be a Dashboard Parameter and enable Dashboard level filters;
  3. Change the Parameter value and verify the filter options disappear

dashboard-filters-parameter

Technical details:

  • Redash Version: Latest
  • Browser/OS: --
  • How did you install Redash: --
Bug Frontend

All 2 comments

Code related to the issue:

https://github.com/getredash/redash/blob/a8af968d70825bdc36bbe5512e449cc56e62242c/client/app/pages/dashboards/dashboard.js#L159-L167

This seems to be easily solved by using the code below for the queryResults instead of the Promise results:

const queryResults = compact(map(dashboard.widgets, widget => widget.getQueryResult()));

Though, I'm also considering to refactor that part of the code along with Dashboard & Public Dashboard migration, e.g: it makes sense for the Refreshing Code to be separated from the Collect Filters Part.

Depending on when this needs to be fixed, we can go with the quick solution.

it makes sense for the Refreshing Code to be separated from the Collect Filters Part.

I favor this approach.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hereischris picture hereischris  路  4Comments

dclong picture dclong  路  4Comments

arikfr picture arikfr  路  3Comments

ccakes picture ccakes  路  3Comments

WesleyBatista picture WesleyBatista  路  4Comments