-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Migration to remove scan field values triggers for DBs that turn it off #41348
Migration to remove scan field values triggers for DBs that turn it off #41348
Conversation
…scan field values
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a bunch of non-functional fixes and suggestions, looks good 😎
(qs/delete-trigger scheduler (triggers/key (format "metabase.task.update-field-values.trigger.%d" (:id db))))) | ||
(t2/update! :model/Database :id [:in (map :id dbs-without-scan-field-values)] {:cache_field_values_schedule nil}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we only ever use the ids from the database, so we might as well not select any other fields, and immediately map to just these values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we also need details, is_full_sync, is_on_demand for the filter.
This seems to have broken |
Co-authored-by: Chris Truter <crisptrutski@users.noreply.github.com>
…eld-values-triggers
yea it was a flake, which I fixed in an upstream commit |
@qnkhuat Did you forget to add a milestone to the issue for this PR? When and where should I add a milestone? |
Second part to fix #40715
This adds a migration that will scan field values trigger for existing DBs that have advanced scan options are either "Only when adding a new filter" or "Never, I'll do this manually if I need to".