Skip to content

Commit 967f118

Browse files
kibanamachinerbrtj
andauthored
[8.x] [ML] Anomaly Explorer: Fix Anomalies Table pagination (elastic#214714) (elastic#215670)
# Backport This will backport the following commits from `main` to `8.x`: - [[ML] Anomaly Explorer: Fix Anomalies Table pagination (elastic#214714)](elastic#214714) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Robert Jaszczurek","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-03-24T11:39:23Z","message":"[ML] Anomaly Explorer: Fix Anomalies Table pagination (elastic#214714)\n\nIncludes a fix for elastic#213424 and a\nfollow up to\nhttps://github.com/elastic/pull/203224#discussion_r1875926261\n\n* Rewrites anomalies_table in typescript\n* Decouples anomalies table state into an individual service\n* Fixes an issue where anomalies table pagination wouldn't reset to 0\nafter changing significant properties of the view, causing the table\ndata to refetch","sha":"ab780500f67b3b9f1f93ad53bfa79dcd2113f112","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Team:ML","backport:prev-major","backport:version","v9.1.0"],"title":"[ML] Anomaly Explorer: Fix Anomalies Table pagination","number":214714,"url":"https://github.com/elastic/kibana/pull/214714","mergeCommit":{"message":"[ML] Anomaly Explorer: Fix Anomalies Table pagination (elastic#214714)\n\nIncludes a fix for elastic#213424 and a\nfollow up to\nhttps://github.com/elastic/pull/203224#discussion_r1875926261\n\n* Rewrites anomalies_table in typescript\n* Decouples anomalies table state into an individual service\n* Fixes an issue where anomalies table pagination wouldn't reset to 0\nafter changing significant properties of the view, causing the table\ndata to refetch","sha":"ab780500f67b3b9f1f93ad53bfa79dcd2113f112"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/214714","number":214714,"mergeCommit":{"message":"[ML] Anomaly Explorer: Fix Anomalies Table pagination (elastic#214714)\n\nIncludes a fix for elastic#213424 and a\nfollow up to\nhttps://github.com/elastic/pull/203224#discussion_r1875926261\n\n* Rewrites anomalies_table in typescript\n* Decouples anomalies table state into an individual service\n* Fixes an issue where anomalies table pagination wouldn't reset to 0\nafter changing significant properties of the view, causing the table\ndata to refetch","sha":"ab780500f67b3b9f1f93ad53bfa79dcd2113f112"}}]}] BACKPORT--> Co-authored-by: Robert Jaszczurek <[email protected]>
1 parent 35f1754 commit 967f118

File tree

17 files changed

+798
-507
lines changed

17 files changed

+798
-507
lines changed

x-pack/platform/plugins/shared/ml/common/types/results.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,19 @@
88
import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
99
import type { LineAnnotationDatum, RectAnnotationDatum } from '@elastic/charts';
1010
import type { ErrorType } from '@kbn/ml-error-utils';
11-
import type { ES_AGGREGATION, ML_JOB_AGGREGATION } from '@kbn/ml-anomaly-utils';
11+
import type {
12+
ES_AGGREGATION,
13+
ML_JOB_AGGREGATION,
14+
MlAnomaliesTableRecord,
15+
} from '@kbn/ml-anomaly-utils';
1216
import { type MlEntityField, type MlRecordForInfluencer } from '@kbn/ml-anomaly-utils';
1317
import type { Datafeed, JobId, ModelSnapshot } from './anomaly_detection_jobs';
1418

19+
export interface GetAnomaliesTableDataResult {
20+
anomalies: MlAnomaliesTableRecord[];
21+
interval: string;
22+
examplesByJobId?: Record<string, Record<string, string[]>>;
23+
}
1524
export interface GetStoppedPartitionResult {
1625
jobs: string[] | Record<string, string[]>;
1726
}

x-pack/platform/plugins/shared/ml/public/application/components/anomalies_table/anomalies_table.js

Lines changed: 0 additions & 292 deletions
This file was deleted.

0 commit comments

Comments
 (0)