mirror of
https://github.com/apache/superset.git
synced 2026-04-23 10:04:45 +00:00
chore: removing Druid from front- and back- end (#20338)
* first pass at removing native Druid nosql * removing having_druid * addressing comments, linting * fixed all tests * addressing comments * redirected to ui-core TimeGranularity type * query form metric linting * fixed broken chart type * implementing feedback
This commit is contained in:
@@ -81,8 +81,6 @@ const propTypes = {
|
||||
showDateFilter: PropTypes.bool,
|
||||
showSqlaTimeGrain: PropTypes.bool,
|
||||
showSqlaTimeColumn: PropTypes.bool,
|
||||
showDruidTimeGrain: PropTypes.bool,
|
||||
showDruidTimeOrigin: PropTypes.bool,
|
||||
};
|
||||
const defaultProps = {
|
||||
origSelectedValues: {},
|
||||
@@ -92,8 +90,6 @@ const defaultProps = {
|
||||
showDateFilter: false,
|
||||
showSqlaTimeGrain: false,
|
||||
showSqlaTimeColumn: false,
|
||||
showDruidTimeGrain: false,
|
||||
showDruidTimeOrigin: false,
|
||||
instantFiltering: false,
|
||||
};
|
||||
|
||||
@@ -319,19 +315,12 @@ class FilterBox extends React.PureComponent {
|
||||
}
|
||||
|
||||
renderDatasourceFilters() {
|
||||
const {
|
||||
showSqlaTimeGrain,
|
||||
showSqlaTimeColumn,
|
||||
showDruidTimeGrain,
|
||||
showDruidTimeOrigin,
|
||||
} = this.props;
|
||||
const { showSqlaTimeGrain, showSqlaTimeColumn } = this.props;
|
||||
const datasourceFilters = [];
|
||||
const sqlaFilters = [];
|
||||
const druidFilters = [];
|
||||
if (showSqlaTimeGrain) sqlaFilters.push('time_grain_sqla');
|
||||
if (showSqlaTimeColumn) sqlaFilters.push('granularity_sqla');
|
||||
if (showDruidTimeGrain) druidFilters.push('granularity');
|
||||
if (showDruidTimeOrigin) druidFilters.push('druid_time_origin');
|
||||
if (sqlaFilters.length) {
|
||||
datasourceFilters.push(
|
||||
<ControlRow
|
||||
|
||||
Reference in New Issue
Block a user