kibana/x-pack/test/api_integration/apis/aiops
Walter Rafelsberger 22ac46c799
[ML] AIOps: Chunk groups of field candidates into single queries for top items and histograms. (#189155)
## Summary

Follow up to #188137.
Part of #187684.

- Groups chunks of terms aggregations for field candidates when running
the fallback to get top terms instead of significant terms when either
baseline or deviation time range contains no documents.
- Groups chunks of histogram aggregations for the data for the mini
histogram charts. Previously we reused the code for the transform/dfa
data grid mini histograms for this, it's now refactored to an optimized
version for log rate analysis.
- Adds `withSpan` wrappers to group log rate analysis steps for APM
(magenta bars in the "after" screenshot).
- Removes some no longer used code from API version 1.
- Disables support for `boolean` fields, it doesn't work properly with
the `frequent_item_sets` aggregations.
- Fixes the loading step sizes to correct the loading progress bar going
from 0-100%.

Before:

<img width="480" alt="image"
src="https://github.com/user-attachments/assets/dc316166-8f2b-4b0f-84a4-6813f69cd10a">

After:

<img width="500" alt="image"
src="https://github.com/user-attachments/assets/4c532c76-42a0-4321-a261-3b7cf9bbd361">


### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2024-08-05 10:12:20 +02:00
..
config.ts [ML] Update plugin readme files and test report names (#151729) 2023-02-24 09:59:59 +01:00
index.ts [ML] AIOps: Update fields filter popover to be able to filter fields from analysis (not just grouping) (#188913) 2024-07-30 10:12:53 +02:00
log_rate_analysis_field_candidates.ts [ML] AIOps: Update fields filter popover to be able to filter fields from analysis (not just grouping) (#188913) 2024-07-30 10:12:53 +02:00
log_rate_analysis_full_analysis.ts [ML] AIOps: Chunk groups of field candidates into single queries for top items and histograms. (#189155) 2024-08-05 10:12:20 +02:00
log_rate_analysis_groups_only.ts [ML] AIOps: Update fields filter popover to be able to filter fields from analysis (not just grouping) (#188913) 2024-07-30 10:12:53 +02:00
log_rate_analysis_no_index.ts [ML] AIOps: Log Rate Analysis V2 REST API, replaces references to term with item. (#170274) 2023-11-10 13:57:59 +01:00
parse_stream.ts [ML] Explain Log Rate Spikes: Fix uncompressed streams and backpressure handling. (#142970) 2022-10-14 15:30:34 +02:00
test_data.ts [ML] AIOps: Chunk groups of field candidates into single queries for top items and histograms. (#189155) 2024-08-05 10:12:20 +02:00
test_helpers.ts [ML] AIOps Log Rate Analysis: Replace custom global state management with Redux Toolkit. (#180969) 2024-06-13 11:25:22 +02:00
types.ts [ML] AIOps: Chunk groups of field candidates into single queries for top items and histograms. (#189155) 2024-08-05 10:12:20 +02:00