Skip to content

Commit

Permalink
fix a MDS related bug on feature anywhere page (#773)
Browse files Browse the repository at this point in the history
* fix a MDS related bug on feature anywhere page

Signed-off-by: Jackie Han <[email protected]>

* adopt custom result index alias change

Signed-off-by: Jackie Han <[email protected]>

---------

Signed-off-by: Jackie Han <[email protected]>
  • Loading branch information
jackiehanyang authored Jun 10, 2024
1 parent 6513e1b commit 75bad74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions public/expressions/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ export const getAnomalies = async (
}
);
} else {
if (!resultIndex.endsWith('*')) {
resultIndex += '*';
}
anomalySummaryResponse = await getClient().post(
`..${AD_NODE_API.DETECTOR}/results/_search/${resultIndex}/true/${dataSourceId}`,
{
Expand Down
3 changes: 2 additions & 1 deletion public/expressions/overlay_anomalies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ export const overlayAnomaliesFunction =
detectorId,
startTimeInMillis,
endTimeInMillis,
resultIndex
resultIndex,
dataSourceId
);
const anomalyLayer = convertAnomaliesToPointInTimeEventsVisLayer(
anomalies,
Expand Down

0 comments on commit 75bad74

Please sign in to comment.