The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
import { PLUGIN_MODEL_PERSISTENCE } from "metabase/plugins";
import { hasPremiumFeature } from "metabase-enterprise/settings";
import { ModelCacheToggle } from "./components/ModelCacheControl";
/**
* Initialize model persistence plugin features that depend on hasPremiumFeature.
*/
export function initializePlugin() {
if (hasPremiumFeature("cache_granular_controls")) {
PLUGIN_MODEL_PERSISTENCE.isModelLevelPersistenceEnabled = () => true;
PLUGIN_MODEL_PERSISTENCE.ModelCacheToggle = ModelCacheToggle;
}
}