Skip to content

Commit e03514b

Browse files
committed
Reverted unintended changes
Signed-off-by: Dan Dong <danieldong51@gmail.com>
1 parent 89441b5 commit e03514b

File tree

7 files changed

+14
-13
lines changed

7 files changed

+14
-13
lines changed

public/components/FeatureAnywhereContextMenu/AssociatedDetectors/containers/AssociatedDetectors.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function AssociatedDetectors({ embeddable, closeFlyout, setMode }) {
271271
getDetectorList(
272272
getAllDetectorsQueryParamsWithDataSourceId(dataSourceId)
273273
)
274-
);
274+
);
275275
};
276276

277277
const handleUnlinkDetectorAction = (detector: DetectorListItem) => {

public/components/FeatureAnywhereContextMenu/CreateAnomalyDetector/AddAnomalyDetector.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function AddAnomalyDetector({
141141
const indexPattern = await getSavedObjectsClient().get('index-pattern', indexPatternId);
142142
const refs = indexPattern.references as References[];
143143
const foundDataSourceId = refs.find(ref => ref.type === 'data-source')?.id;
144-
setDataSourceId(foundDataSourceId);
144+
setDataSourceId(foundDataSourceId);
145145
} catch (error) {
146146
console.error("Error fetching index pattern:", error);
147147
}
@@ -167,7 +167,7 @@ function AddAnomalyDetector({
167167
}
168168
fetchData();
169169
createEmbeddable();
170-
}, [dataSourceId]);
170+
}, [dataSourceId]);
171171

172172
const [isShowVis, setIsShowVis] = useState(false);
173173
const [accordionsOpen, setAccordionsOpen] = useState({ modelFeatures: true });

public/pages/Dashboard/Components/AnomaliesLiveChart.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ export const AnomaliesLiveChart = (props: AnomaliesLiveChartProps) => {
237237
</h3>
238238
</EuiTitle>
239239
}
240-
subTitle={`Live anomaly results across detectors for the last 30 minutes.
241-
'The results refresh every 1 minute.
242-
'For each detector, if an anomaly occurrence is detected at the end of the detector interval,
240+
subTitle={`Live anomaly results across detectors for the last 30 minutes.
241+
'The results refresh every 1 minute.
242+
'For each detector, if an anomaly occurrence is detected at the end of the detector interval,
243243
'you will see a bar representing its anomaly grade.`}
244244
actions={[fullScreenButton()]}
245245
contentPanelClassName={isFullScreen ? 'full-screen' : undefined}

public/pages/DefineDetector/containers/DefineDetector.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ export const DefineDetector = (props: DefineDetectorProps) => {
324324
componentType={'DataSourceSelectable'}
325325
componentConfig={{
326326
fullWidth: false,
327-
activeOption: MDSCreateState.selectedDataSourceId !== undefined
327+
activeOption: MDSCreateState.selectedDataSourceId !== undefined
328328
? [{ id: MDSCreateState.selectedDataSourceId }]
329329
: undefined,
330330
savedObjects: getSavedObjectsClient(),

public/pages/DetectorsList/components/ListActions/ListActions.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const ListActions = (props: ListActionsProps) => {
5959
onClick={props.onStartDetectors}
6060
size="s"
6161
>
62-
Start real-time
62+
Start real-time detectors
6363
</EuiContextMenuItem>
6464

6565
<EuiContextMenuItem

public/pages/Overview/components/SampleDataBox/SampleDataBox.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ import {
1919
EuiTitle,
2020
EuiLink,
2121
EuiCard,
22-
EuiHorizontalRule, EuiText,
22+
EuiHorizontalRule,
23+
EuiText,
2324
} from '@elastic/eui';
2425
import { PLUGIN_NAME } from '../../../../utils/constants';
2526
import { useLocation } from 'react-router-dom';

public/pages/Overview/containers/AnomalyDetectionOverview.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export function AnomalyDetectionOverview(props: AnomalyDetectionOverviewProps) {
103103
const queryParams = getDataSourceFromURL(props.location);
104104
const [MDSOverviewState, setMDSOverviewState] = useState<MDSStates>({
105105
queryParams,
106-
selectedDataSourceId: queryParams.dataSourceId === undefined
107-
? undefined
106+
selectedDataSourceId: queryParams.dataSourceId === undefined
107+
? undefined
108108
: queryParams.dataSourceId,
109109
});
110110

@@ -129,7 +129,7 @@ export function AnomalyDetectionOverview(props: AnomalyDetectionOverviewProps) {
129129
...location,
130130
search: queryString.stringify(updatedParams),
131131
});
132-
}
132+
}
133133
fetchData();
134134
}, [MDSOverviewState]);
135135

@@ -249,7 +249,7 @@ export function AnomalyDetectionOverview(props: AnomalyDetectionOverviewProps) {
249249
componentType={'DataSourceSelectable'}
250250
componentConfig={{
251251
fullWidth: false,
252-
activeOption: props.landingDataSourceId === undefined
252+
activeOption: props.landingDataSourceId === undefined
253253
|| MDSOverviewState.selectedDataSourceId === undefined
254254
? undefined
255255
: [{ id: MDSOverviewState.selectedDataSourceId }],

0 commit comments

Comments
 (0)