Skip to content
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

Dashboard does not load when a filter is configured "Select first filter value by default" option #20797

Closed
nytai opened this issue Jul 20, 2022 · 4 comments · Fixed by #21576
Labels
#bug Bug report

Comments

@nytai
Copy link
Member

nytai commented Jul 20, 2022

A clear and concise description of what the bug is.

It seems when "Select first filter value by default" is configured for a filter and the dashboard has tabs the dashboard stays in a loading state and filters remain out of scope. Clicking the filters that are out of scope triggers the fetch for the first value and the dashboard can render.

How to reproduce the bug

  • Import the attached dashboard export (you might have to edit the database to use your examples db instead of the SQLLite one I used).
  • load the imported "video game sales" dashboard.
  • You should see the bug that looks like the attached screenshot
  • click on the "filters out of scope" and the dashboard should load correctly. Refreshing the dashboard (as long as the url contains the native_filters_key query param, also results in the dashboard loading correctly.

Expected results

The dashboard loads correctly when opened from the dashboard list/ home page or a link (that does not contain the native_filters_key query param.

Actual results

The dashboard stays in a loading state until "filters out of scope" is clicked or the dashboard is refreshed

Screenshots

Screen Shot 2022-07-20 at 1 52 56 PM

Environment

version 1.5.1

Additional context

Dashboard export:
dashboard_export_20220720T134744.zip

@nytai nytai added the #bug Bug report label Jul 20, 2022
@nytai
Copy link
Member Author

nytai commented Jul 20, 2022

note: this might be the same issue, or related to #20748

@retairmars
Copy link

We have encountered the same issues on Select first filter value by default and work around by using "Filter has default value" instead.

@jacobcroope
Copy link
Contributor

Has any progress been made on this?

@sfirke
Copy link
Member

sfirke commented Sep 14, 2022

This also covers the 2nd part of this two-part bug report: #20930 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants