Skip to content

[9.0] [Discover] Update the logic of selecting a sub field to be used when fetching field stats (#228969)#229241

Merged
jughosta merged 1 commit intoelastic:9.0from
jughosta:backport/9.0/pr-228969
Jul 24, 2025
Merged

[9.0] [Discover] Update the logic of selecting a sub field to be used when fetching field stats (#228969)#229241
jughosta merged 1 commit intoelastic:9.0from
jughosta:backport/9.0/pr-228969

Conversation

@jughosta
Copy link
Contributor

Backport

This will backport the following commits from main to 9.0:

Questions ?

Please refer to the Backport tool documentation

…fetching field stats (elastic#228969)

- Fixes elastic#228952

## Summary

This PR fixes what field is being picked for fetching stats in the
sidebar popover. Previously, it was choosing one of the multi fields,
now it will choose the parent field first (sidebar groups similar fields
and displays them inside the popover).

### Checklist

- [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
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

(cherry picked from commit 2e40596)
@jughosta jughosta requested a review from kibanamachine as a code owner July 24, 2025 06:06
@jughosta jughosta added the backport This PR is a backport of another PR label Jul 24, 2025
@jughosta jughosta enabled auto-merge (squash) July 24, 2025 06:06
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #6 / Category can submit without setting a category

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 750.5KB 750.5KB +36.0B
securitySolution 8.9MB 8.9MB +36.0B
slo 762.1KB 762.1KB +36.0B
total +108.0B
@jughosta jughosta requested a review from a team July 24, 2025 09:10
@jughosta jughosta merged commit 38cd72b into elastic:9.0 Jul 24, 2025
12 checks passed
@jughosta jughosta deleted the backport/9.0/pr-228969 branch July 24, 2025 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

3 participants