Skip to content

Commit 894cf08

Browse files
committed
update imports
Signed-off-by: Jackie Han <jkhanjob@gmail.com>
1 parent d1bbbae commit 894cf08

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

public/pages/Dashboard/Container/DashboardOverview.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,10 @@ import {
3333
ALL_DETECTORS_MESSAGE,
3434
ALL_DETECTOR_STATES_MESSAGE,
3535
ALL_INDICES_MESSAGE,
36-
getAllDetectorsQueryParamsWithDataSourceId
3736
} from '../utils/constants';
3837
import { AppState } from '../../../redux/reducers';
3938
import { CatIndex, IndexAlias, MDSQueryParams } from '../../../../server/models/types';
40-
import { getVisibleOptions } from '../../utils/helpers';
39+
import { getAllDetectorsQueryParamsWithDataSourceId, getVisibleOptions } from '../../utils/helpers';
4140
import { BREADCRUMBS } from '../../../utils/constants';
4241
import { DETECTOR_STATE } from '../../../../server/utils/constants';
4342
import { getDetectorStateOptions, getURLQueryParams } from '../../DetectorsList/utils/helpers';

public/pages/utils/constants.ts

-10
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,6 @@ export const GET_ALL_DETECTORS_QUERY_PARAMS = {
6565
sortField: 'name',
6666
};
6767

68-
export const getAllDetectorsQueryParamsWithDataSourceId = (dataSourceId: string) => ({
69-
from: 0,
70-
search: '',
71-
indices: '',
72-
size: MAX_DETECTORS,
73-
sortDirection: SORT_DIRECTION.ASC,
74-
sortField: 'name',
75-
dataSourceId: dataSourceId,
76-
});
77-
7868

7969
export const getSampleDetectorsQueryParamsWithDataSouceId = (dataSourceId: string) => (
8070
{

public/pages/utils/helpers.ts

-10
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,3 @@ export const getAllDetectorsQueryParamsWithDataSourceId = (
128128
sortField: 'name',
129129
dataSourceId: dataSourceId,
130130
});
131-
132-
export const getMDSQueryParams = (location: {
133-
search: string
134-
}): MDSQueryParams => {
135-
const params = new URLSearchParams(location.search);
136-
const dataSourceId = params.get('dataSourceId');
137-
return {
138-
dataSourceId: dataSourceId || '',
139-
};
140-
}

0 commit comments

Comments
 (0)