File tree 3 files changed +1
-22
lines changed
3 files changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,10 @@ import {
33
33
ALL_DETECTORS_MESSAGE ,
34
34
ALL_DETECTOR_STATES_MESSAGE ,
35
35
ALL_INDICES_MESSAGE ,
36
- getAllDetectorsQueryParamsWithDataSourceId
37
36
} from '../utils/constants' ;
38
37
import { AppState } from '../../../redux/reducers' ;
39
38
import { CatIndex , IndexAlias , MDSQueryParams } from '../../../../server/models/types' ;
40
- import { getVisibleOptions } from '../../utils/helpers' ;
39
+ import { getAllDetectorsQueryParamsWithDataSourceId , getVisibleOptions } from '../../utils/helpers' ;
41
40
import { BREADCRUMBS } from '../../../utils/constants' ;
42
41
import { DETECTOR_STATE } from '../../../../server/utils/constants' ;
43
42
import { getDetectorStateOptions , getURLQueryParams } from '../../DetectorsList/utils/helpers' ;
Original file line number Diff line number Diff line change @@ -65,16 +65,6 @@ export const GET_ALL_DETECTORS_QUERY_PARAMS = {
65
65
sortField : 'name' ,
66
66
} ;
67
67
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
-
78
68
79
69
export const getSampleDetectorsQueryParamsWithDataSouceId = ( dataSourceId : string ) => (
80
70
{
Original file line number Diff line number Diff line change @@ -128,13 +128,3 @@ export const getAllDetectorsQueryParamsWithDataSourceId = (
128
128
sortField : 'name' ,
129
129
dataSourceId : dataSourceId ,
130
130
} ) ;
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
- }
You can’t perform that action at this time.
0 commit comments