mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
refactor: preparation for time section migration (#21766)
This commit is contained in:
@@ -20,9 +20,8 @@ import {
|
||||
AdhocColumn,
|
||||
buildQueryContext,
|
||||
ensureIsArray,
|
||||
FeatureFlag,
|
||||
getMetricLabel,
|
||||
isFeatureEnabled,
|
||||
hasGenericChartAxes,
|
||||
isPhysicalColumn,
|
||||
QueryMode,
|
||||
QueryObject,
|
||||
@@ -104,7 +103,7 @@ const buildQuery: BuildQuery<TableChartFormData> = (
|
||||
if (
|
||||
isPhysicalColumn(col) &&
|
||||
formData.time_grain_sqla &&
|
||||
isFeatureEnabled(FeatureFlag.GENERIC_CHART_AXES) &&
|
||||
hasGenericChartAxes &&
|
||||
formData?.datetime_columns_lookup?.[col]
|
||||
) {
|
||||
return {
|
||||
|
||||
@@ -23,6 +23,7 @@ import {
|
||||
ensureIsArray,
|
||||
FeatureFlag,
|
||||
GenericDataType,
|
||||
hasGenericChartAxes,
|
||||
isAdhocColumn,
|
||||
isFeatureEnabled,
|
||||
isPhysicalColumn,
|
||||
@@ -189,7 +190,7 @@ const config: ControlPanelConfig = {
|
||||
},
|
||||
],
|
||||
[
|
||||
isFeatureEnabled(FeatureFlag.GENERIC_CHART_AXES) && isAggMode
|
||||
hasGenericChartAxes && isAggMode
|
||||
? {
|
||||
name: 'time_grain_sqla',
|
||||
config: {
|
||||
@@ -217,9 +218,7 @@ const config: ControlPanelConfig = {
|
||||
},
|
||||
}
|
||||
: null,
|
||||
isFeatureEnabled(FeatureFlag.GENERIC_CHART_AXES) && isAggMode
|
||||
? 'datetime_columns_lookup'
|
||||
: null,
|
||||
hasGenericChartAxes && isAggMode ? 'datetime_columns_lookup' : null,
|
||||
],
|
||||
[
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user