mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
chore: Removes src/modules top folder (#25005)
This commit is contained in:
parent
bc1c5c2f84
commit
2eb0a255d9
@ -35,8 +35,6 @@ import {
|
|||||||
getQuerySettings,
|
getQuerySettings,
|
||||||
getChartDataUri,
|
getChartDataUri,
|
||||||
} from 'src/explore/exploreUtils';
|
} from 'src/explore/exploreUtils';
|
||||||
import { requiresQuery } from 'src/modules/AnnotationTypes';
|
|
||||||
|
|
||||||
import { addDangerToast } from 'src/components/MessageToasts/actions';
|
import { addDangerToast } from 'src/components/MessageToasts/actions';
|
||||||
import { logEvent } from 'src/logger/actions';
|
import { logEvent } from 'src/logger/actions';
|
||||||
import { Logger, LOG_ACTIONS_LOAD_CHART } from 'src/logger/LogUtils';
|
import { Logger, LOG_ACTIONS_LOAD_CHART } from 'src/logger/LogUtils';
|
||||||
@ -268,7 +266,7 @@ export function runAnnotationQuery({
|
|||||||
...(formData || getState().charts[sliceKey].latestQueryFormData),
|
...(formData || getState().charts[sliceKey].latestQueryFormData),
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!requiresQuery(annotation.sourceType)) {
|
if (!annotation.sourceType) {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,10 +32,13 @@ import {
|
|||||||
getColumnLabel,
|
getColumnLabel,
|
||||||
withTheme,
|
withTheme,
|
||||||
} from '@superset-ui/core';
|
} from '@superset-ui/core';
|
||||||
|
|
||||||
import SelectControl from 'src/explore/components/controls/SelectControl';
|
import SelectControl from 'src/explore/components/controls/SelectControl';
|
||||||
import TextControl from 'src/explore/components/controls/TextControl';
|
import TextControl from 'src/explore/components/controls/TextControl';
|
||||||
import CheckboxControl from 'src/explore/components/controls/CheckboxControl';
|
import CheckboxControl from 'src/explore/components/controls/CheckboxControl';
|
||||||
|
import PopoverSection from 'src/components/PopoverSection';
|
||||||
|
import ControlHeader from 'src/explore/components/ControlHeader';
|
||||||
|
import { EmptyStateSmall } from 'src/components/EmptyState';
|
||||||
|
import { FILTER_OPTIONS_LIMIT } from 'src/explore/constants';
|
||||||
import {
|
import {
|
||||||
ANNOTATION_SOURCE_TYPES,
|
ANNOTATION_SOURCE_TYPES,
|
||||||
ANNOTATION_TYPES,
|
ANNOTATION_TYPES,
|
||||||
@ -43,11 +46,7 @@ import {
|
|||||||
DEFAULT_ANNOTATION_TYPE,
|
DEFAULT_ANNOTATION_TYPE,
|
||||||
requiresQuery,
|
requiresQuery,
|
||||||
ANNOTATION_SOURCE_TYPES_METADATA,
|
ANNOTATION_SOURCE_TYPES_METADATA,
|
||||||
} from 'src/modules/AnnotationTypes';
|
} from './AnnotationTypes';
|
||||||
import PopoverSection from 'src/components/PopoverSection';
|
|
||||||
import ControlHeader from 'src/explore/components/ControlHeader';
|
|
||||||
import { EmptyStateSmall } from 'src/components/EmptyState';
|
|
||||||
import { FILTER_OPTIONS_LIMIT } from 'src/explore/constants';
|
|
||||||
|
|
||||||
const AUTOMATIC_COLOR = '';
|
const AUTOMATIC_COLOR = '';
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ import userEvent from '@testing-library/user-event';
|
|||||||
import { getChartMetadataRegistry, ChartMetadata } from '@superset-ui/core';
|
import { getChartMetadataRegistry, ChartMetadata } from '@superset-ui/core';
|
||||||
import fetchMock from 'fetch-mock';
|
import fetchMock from 'fetch-mock';
|
||||||
import setupColors from 'src/setup/setupColors';
|
import setupColors from 'src/setup/setupColors';
|
||||||
import { ANNOTATION_TYPES_METADATA } from 'src/modules/AnnotationTypes';
|
import { ANNOTATION_TYPES_METADATA } from './AnnotationTypes';
|
||||||
import AnnotationLayer from './AnnotationLayer';
|
import AnnotationLayer from './AnnotationLayer';
|
||||||
|
|
||||||
const defaultProps = {
|
const defaultProps = {
|
||||||
|
Loading…
Reference in New Issue
Block a user