fix: removing controls from incubator-superset that are now in the plugin (#9758)

This commit is contained in:
Evan Rusackas 2020-05-06 17:29:49 -07:00 committed by GitHub
parent 52de32b9d7
commit b93bf05bbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 67 deletions

View File

@ -6848,9 +6848,9 @@
}
},
"@superset-ui/legacy-plugin-chart-sunburst": {
"version": "0.13.5",
"resolved": "https://registry.npmjs.org/@superset-ui/legacy-plugin-chart-sunburst/-/legacy-plugin-chart-sunburst-0.13.5.tgz",
"integrity": "sha512-9J8Bz/8GR/bExFnkuql9ClGhrcc3JqNtV0+2x42q/1aTTw1cRm9V1Cma0k4C/zXU4DPAzC4/T04giOoZr3HMJw==",
"version": "0.13.7",
"resolved": "https://registry.npmjs.org/@superset-ui/legacy-plugin-chart-sunburst/-/legacy-plugin-chart-sunburst-0.13.7.tgz",
"integrity": "sha512-y3DTFS2V5JVSHalpGaNeEFr3EcBNJO+zsQYWWv1ctgOPul7nQT6OafaNmThuNY+3uQxhXRzjNF/Nwo9Kkh2y0g==",
"requires": {
"d3": "^3.5.17",
"prop-types": "^15.6.2"

View File

@ -81,7 +81,7 @@
"@superset-ui/legacy-plugin-chart-pivot-table": "^0.13.3",
"@superset-ui/legacy-plugin-chart-rose": "^0.13.5",
"@superset-ui/legacy-plugin-chart-sankey": "^0.13.3",
"@superset-ui/legacy-plugin-chart-sunburst": "^0.13.5",
"@superset-ui/legacy-plugin-chart-sunburst": "^0.13.7",
"@superset-ui/legacy-plugin-chart-table": "^0.13.5",
"@superset-ui/legacy-plugin-chart-treemap": "^0.13.3",
"@superset-ui/legacy-plugin-chart-world-map": "^0.13.3",

View File

@ -1,61 +0,0 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import { t } from '@superset-ui/translation';
export default {
controlPanelSections: [
{
label: t('Query'),
expanded: true,
controlSetRows: [
['groupby'],
['metric'],
['secondary_metric'],
['adhoc_filters'],
['row_limit'],
],
},
{
label: t('Chart Options'),
expanded: true,
controlSetRows: [['color_scheme', 'label_colors']],
},
],
controlOverrides: {
metric: {
label: t('Primary Metric'),
description: t(
'The primary metric is used to define the arc segment sizes',
),
},
secondary_metric: {
label: t('Secondary Metric'),
default: null,
description: t(
'[optional] this secondary metric is used to ' +
'define the color as a ratio against the primary metric. ' +
'When omitted, the color is categorical and based on labels',
),
},
groupby: {
label: t('Hierarchy'),
description: t('This defines the level of the hierarchy'),
},
},
};

View File

@ -59,7 +59,6 @@ import PivotTable from '../explore/controlPanels/PivotTable';
import Rose from '../explore/controlPanels/Rose';
import Sankey from '../explore/controlPanels/Sankey';
import Separator from '../explore/controlPanels/Separator';
import Sunburst from '../explore/controlPanels/Sunburst';
import Table from '../explore/controlPanels/Table';
import TimePivot from '../explore/controlPanels/TimePivot';
import TimeTable from '../explore/controlPanels/TimeTable';
@ -102,7 +101,6 @@ export default function setupPlugins() {
.registerValue('rose', Rose)
.registerValue('sankey', Sankey)
.registerValue('separator', Separator)
.registerValue('sunburst', Sunburst)
.registerValue('table', Table)
.registerValue('time_pivot', TimePivot)
.registerValue('time_table', TimeTable)