Skip to content

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

Move customVizColumnTypes into enterprise custom_viz (#79795)

Romeo Van Snicka5268784d390
diff --git a/frontend/src/metabase-lib/v1/types/utils/custom-viz-column-types.ts b/enterprise/frontend/src/metabase-enterprise/custom_viz/custom-viz-column-types.ts
similarity index 96%
rename from frontend/src/metabase-lib/v1/types/utils/custom-viz-column-types.ts
rename to enterprise/frontend/src/metabase-enterprise/custom_viz/custom-viz-column-types.ts
index de9199f13a4..7fe3e16af9c 100644
--- a/frontend/src/metabase-lib/v1/types/utils/custom-viz-column-types.ts
+++ b/enterprise/frontend/src/metabase-enterprise/custom_viz/custom-viz-column-types.ts
@@ -37,7 +37,7 @@ import {
isTime,
isTitle,
isURL,
-} from "./isa";
+} from "metabase-lib/v1/types/utils/isa";
export const customVizColumnTypes: ColumnTypes = {
hasLatitudeAndLongitudeColumns,
diff --git a/enterprise/frontend/src/metabase-enterprise/custom_viz/custom-viz-globals.ts b/enterprise/frontend/src/metabase-enterprise/custom_viz/custom-viz-globals.ts
index 5c5cf4187a7..f3d608932e5 100644
--- a/enterprise/frontend/src/metabase-enterprise/custom_viz/custom-viz-globals.ts
+++ b/enterprise/frontend/src/metabase-enterprise/custom_viz/custom-viz-globals.ts
@@ -1,7 +1,8 @@
import type { ColumnTypes, CreateCustomVisualization } from "custom-viz";
import { formatValue } from "metabase/visualizations/custom-visualizations/custom-viz-utils";
-import { customVizColumnTypes } from "metabase-lib/v1/types/utils/custom-viz-column-types";
+
+import { customVizColumnTypes } from "./custom-viz-column-types";
declare global {
interface Window {