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

Filter Field Dropdown list never gets refreshed #4542

Closed
chandraonline opened this issue Mar 18, 2017 · 10 comments
Closed

Filter Field Dropdown list never gets refreshed #4542

chandraonline opened this issue Mar 18, 2017 · 10 comments

Comments

@chandraonline
Copy link

chandraonline commented Mar 18, 2017

I have a dashboard with bunch of SQL based cards and all cards have a company as a filter field. The filter field is included in the sql as an optional: [[ company_id = {{company}} ]] and the filter field definition points to Filter Field type and pointing to the Name in the Companies table. Everything works as expected except new entries added to the Companies table don't show in the dropdown. There are 22 rows in the table. I tried to recreate the dashboard etc to no avail. Where is this information cached and how do I refresh it. When I go to the Data Reference-> See all tables and select that table it has the two rows that are not shown in the drop down. I tried deleting a few rows from that table and metabase still continues to show them.

Bugs

  • Your databases: Amazon Redshift
  • Metabase version: (e.x. 0.19.3): 0.22.2
  • Metabase hosting environment: Elastic Beanstalk
  • Metabase internal database: Postgres
@salsakran
Copy link
Contributor

This is in the FieldValues attached to a given field. It's separate from the dashboard or cards.

It should be getting refreshed every evening if you've enabled "in depth analysis" in the general settings. We don't (yet) have a way to selectively update field values for a subset of tables/columns unfortunately.

@chandraonline
Copy link
Author

I remember seeing the "in depth analysis" checkbox somewhere and turning it on but I tried to look for it now in the Admin Panel->General->Settings and don't see it. I only see the following:

SITE NAME
SITE URL
EMAIL ADDRESS FOR HELP REQUESTS
REPORT TIMEZONE - PST
ANONYMOUS TRACKING - Not Enabled
FRIENDLY TABLE AND FIELD NAMES - Enabled

What's the easiest way to verify that this is getting refreshed, something I could search in the logs?

Thanks for enhancing and maintaining this great product.

@chandraonline
Copy link
Author

chandraonline commented Mar 20, 2017

I found it under Database and it was turned on already. I hit the Sync button and it showed up. Somehow the daily job is not doing it.

image

@BembelGmbH
Copy link

@salsakran - I use v. 0.24.0 and I do have this option enabled but the filter values are not getting updated.
Imagine a scenario:
Event table: | id | name | product_id | - this table is set as visible in settings. order_id is a foreign key
Product table: | id | name | - this table is set as invisible

When I select event table and want to filter by product_name I get a list of Product names. This list is never getting updated. In order to update it, I have to "unhide" the Product table, make a query SELECT * FROM Prodcut and then hide it again. Only then the filter is getting updated.
Is there an other way?

@od3n
Copy link

od3n commented Aug 2, 2017

@BembelGmbH what do you mean by unhide table? I need fast fix for now too

@MarkRx
Copy link
Contributor

MarkRx commented Feb 2, 2018

I encountered this. For now I am just restarting Metabase to get the changes to show up. Not the best workaround...

@EvaSchreyer
Copy link

EvaSchreyer commented Mar 1, 2018

Hi, I am using v0.25 with a SQL database and encountered something similar:
here

@briankalbster
Copy link

I found that your can refresh the values in admin under table settings

image

Click on discard cached field values and resync

image

@mazameli
Copy link
Contributor

mazameli commented Apr 4, 2018

@chandraonline, are you still experiencing this in more recent versions of Metabase. As @briankalbster pointed out, in Metabase version 0.26 (two major versions ago), we added a lot of new tools for improving sync and scan scheduling as well as on-demand sync/scan.

Let me know if this issue should be closed from your perspective.

@flamber
Copy link
Contributor

flamber commented May 23, 2020

Closing, since manual sync+scan has been available for many versions, including scheduling:
https://www.metabase.com/docs/latest/administration-guide/01-managing-databases.html#database-sync-and-analysis

@flamber flamber closed this as completed May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants