diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartBuildQueryRegistrySingleton.ts b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartBuildQueryRegistrySingleton.ts index 86ed784fee1be..ef72161ac1811 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartBuildQueryRegistrySingleton.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartBuildQueryRegistrySingleton.ts @@ -1,8 +1,8 @@ -import { Registry, makeSingleton } from '@superset-ui/core'; +import { Registry, makeSingleton, OverwritePolicy } from '@superset-ui/core'; class ChartBuildQueryRegistry extends Registry { constructor() { - super({ name: 'ChartBuildQuery' }); + super({ name: 'ChartBuildQuery', overwritePolicy: OverwritePolicy.WARN }); } } diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartComponentRegistrySingleton.ts b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartComponentRegistrySingleton.ts index 3ff82e50d7b8b..55594a6c2ae1c 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartComponentRegistrySingleton.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartComponentRegistrySingleton.ts @@ -1,8 +1,8 @@ -import { Registry, makeSingleton } from '@superset-ui/core'; +import { Registry, makeSingleton, OverwritePolicy } from '@superset-ui/core'; class ChartComponentRegistry extends Registry { constructor() { - super({ name: 'ChartComponent' }); + super({ name: 'ChartComponent', overwritePolicy: OverwritePolicy.WARN }); } } diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartMetadataRegistrySingleton.ts b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartMetadataRegistrySingleton.ts index 02dc35c7ff273..3b3646d8052d7 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartMetadataRegistrySingleton.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartMetadataRegistrySingleton.ts @@ -1,8 +1,8 @@ -import { Registry, makeSingleton } from '@superset-ui/core'; +import { Registry, makeSingleton, OverwritePolicy } from '@superset-ui/core'; class ChartMetadataRegistry extends Registry { constructor() { - super({ name: 'ChartMetadata' }); + super({ name: 'ChartMetadata', overwritePolicy: OverwritePolicy.WARN }); } } diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartTransformPropsRegistrySingleton.ts b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartTransformPropsRegistrySingleton.ts index 915814918a4a5..f65a6da367973 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartTransformPropsRegistrySingleton.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/registries/ChartTransformPropsRegistrySingleton.ts @@ -1,8 +1,8 @@ -import { Registry, makeSingleton } from '@superset-ui/core'; +import { Registry, makeSingleton, OverwritePolicy } from '@superset-ui/core'; class ChartTransformPropsRegistry extends Registry { constructor() { - super({ name: 'ChartTransformProps' }); + super({ name: 'ChartTransformProps', overwritePolicy: OverwritePolicy.WARN }); } } diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-color/src/ColorSchemeRegistry.ts b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-color/src/ColorSchemeRegistry.ts index 05cc7b6ad3c00..de08128fd893b 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-color/src/ColorSchemeRegistry.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-color/src/ColorSchemeRegistry.ts @@ -1,9 +1,10 @@ -import { RegistryWithDefaultKey } from '@superset-ui/core'; +import { RegistryWithDefaultKey, OverwritePolicy } from '@superset-ui/core'; export default class ColorSchemeRegistry extends RegistryWithDefaultKey { constructor() { super({ name: 'ColorScheme', + overwritePolicy: OverwritePolicy.WARN, setFirstItemAsDefault: true, }); } diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-number-format/src/NumberFormatterRegistry.ts b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-number-format/src/NumberFormatterRegistry.ts index 4c28a9ae70f2b..b60a359b73f2f 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-number-format/src/NumberFormatterRegistry.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-number-format/src/NumberFormatterRegistry.ts @@ -1,4 +1,4 @@ -import { RegistryWithDefaultKey } from '@superset-ui/core'; +import { RegistryWithDefaultKey, OverwritePolicy } from '@superset-ui/core'; import createD3NumberFormatter from './factories/createD3NumberFormatter'; import NumberFormats from './NumberFormats'; import NumberFormatter from './NumberFormatter'; @@ -11,6 +11,7 @@ export default class NumberFormatterRegistry extends RegistryWithDefaultKey< super({ initialDefaultKey: NumberFormats.SI, name: 'NumberFormatter', + overwritePolicy: OverwritePolicy.WARN, }); } diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-time-format/src/TimeFormatterRegistry.ts b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-time-format/src/TimeFormatterRegistry.ts index b74e6104eca7a..2a7193bbff937 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-time-format/src/TimeFormatterRegistry.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-time-format/src/TimeFormatterRegistry.ts @@ -1,4 +1,4 @@ -import { RegistryWithDefaultKey } from '@superset-ui/core'; +import { RegistryWithDefaultKey, OverwritePolicy } from '@superset-ui/core'; import TimeFormats, { LOCAL_PREFIX } from './TimeFormats'; import createD3TimeFormatter from './factories/createD3TimeFormatter'; import TimeFormatter from './TimeFormatter'; @@ -11,6 +11,7 @@ export default class TimeFormatterRegistry extends RegistryWithDefaultKey< super({ initialDefaultKey: TimeFormats.DATABASE_DATETIME, name: 'TimeFormatter', + overwritePolicy: OverwritePolicy.WARN, }); }