Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

616 B
Raw Blame
import { PLUGIN_DATABASE_REPLICATION } from "metabase/plugins";
import { hasPremiumFeature } from "metabase-enterprise/settings";

import { DatabaseReplicationSection } from "./DatabaseReplicationSection";

/**
 * Initialize database replication plugin features that depend on hasPremiumFeature.
 */
export function initializePlugin() {
  if (
    hasPremiumFeature("hosting") &&
    hasPremiumFeature("attached_dwh") &&
    hasPremiumFeature("etl_connections") &&
    hasPremiumFeature("etl_connections_pg")
  ) {
    PLUGIN_DATABASE_REPLICATION.DatabaseReplicationSection =
      DatabaseReplicationSection;
  }
}