Skip to content

Commit 75bad74

Browse files
fix a MDS related bug on feature anywhere page (#773)
* fix a MDS related bug on feature anywhere page Signed-off-by: Jackie Han <jkhanjob@gmail.com> * adopt custom result index alias change Signed-off-by: Jackie Han <jkhanjob@gmail.com> --------- Signed-off-by: Jackie Han <jkhanjob@gmail.com>
1 parent 6513e1b commit 75bad74

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

public/expressions/helpers.ts

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ export const getAnomalies = async (
5252
}
5353
);
5454
} else {
55+
if (!resultIndex.endsWith('*')) {
56+
resultIndex += '*';
57+
}
5558
anomalySummaryResponse = await getClient().post(
5659
`..${AD_NODE_API.DETECTOR}/results/_search/${resultIndex}/true/${dataSourceId}`,
5760
{

public/expressions/overlay_anomalies.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ export const overlayAnomaliesFunction =
134134
detectorId,
135135
startTimeInMillis,
136136
endTimeInMillis,
137-
resultIndex
137+
resultIndex,
138+
dataSourceId
138139
);
139140
const anomalyLayer = convertAnomaliesToPointInTimeEventsVisLayer(
140141
anomalies,

0 commit comments

Comments
 (0)