mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
feat: tablechart plugin controls migration (#9847)
* delete controls * move columnoption to controls * update package and remove columnoption * fix: remove console and fix import * fix: lint * update version * fix last rebase * fix: lint:
This commit is contained in:
committed by
GitHub
parent
a46af68922
commit
333dc8529e
@@ -20,8 +20,8 @@
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import { ColumnOption } from '@superset-ui/control-utils';
|
||||
import FilterDefinitionOption from 'src/explore/components/FilterDefinitionOption';
|
||||
import ColumnOption from 'src/components/ColumnOption';
|
||||
import AdhocMetricStaticOption from 'src/explore/components/AdhocMetricStaticOption';
|
||||
import AdhocMetric, { EXPRESSION_TYPES } from 'src/explore/AdhocMetric';
|
||||
import { AGGREGATES } from 'src/explore/constants';
|
||||
|
||||
@@ -20,9 +20,9 @@ import React from 'react';
|
||||
import configureStore from 'redux-mock-store';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import { ColumnOption } from '@superset-ui/control-utils';
|
||||
import MetricDefinitionOption from 'src/explore/components/MetricDefinitionOption';
|
||||
import MetricOption from 'src/components/MetricOption';
|
||||
import ColumnOption from 'src/components/ColumnOption';
|
||||
import AggregateOption from 'src/explore/components/AggregateOption';
|
||||
|
||||
describe('MetricDefinitionOption', () => {
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
import React from 'react';
|
||||
import { getChartControlPanelRegistry } from '@superset-ui/chart';
|
||||
import { t } from '@superset-ui/translation';
|
||||
import { ColumnOption } from '@superset-ui/control-utils';
|
||||
import {
|
||||
getControlConfig,
|
||||
getControlState,
|
||||
@@ -27,7 +28,6 @@ import {
|
||||
applyMapStateToPropsToControl,
|
||||
getAllControlsState,
|
||||
} from 'src/explore/controlUtils';
|
||||
import ColumnOption from 'src/components/ColumnOption';
|
||||
|
||||
describe('controlUtils', () => {
|
||||
const state = {
|
||||
|
||||
Reference in New Issue
Block a user