-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Discover] Fix Field Statistics when discover:searchFieldsFromSource is enabled #187250
[Discover] Fix Field Statistics when discover:searchFieldsFromSource is enabled #187250
Conversation
/ci |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
To update your PR or re-run it, just comment with: cc @jughosta |
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good and work well, thanks! LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great! LGTM
@@ -277,7 +277,7 @@ function DiscoverDocumentsComponent({ | |||
<> | |||
<SelectedVSAvailableCallout | |||
esqlQueryColumns={documents?.esqlQueryColumns} | |||
selectedColumns={currentColumns} | |||
selectedColumns={currentColumns.filter((col) => col !== '_source')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind adding a comment here explaining why we're filtering out _source
(similar to the one above)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, thanks for the review!
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
cc @jughosta |
…is enabled (elastic#187250) - Closes elastic#187241 ## Summary This PR excludes `_source` when processing current `columns` in UI - For Field Statistics table - For ES|QL fields callout ### 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 --------- Co-authored-by: Matthias Wilhelm <[email protected]> (cherry picked from commit 879b7b7)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…Source is enabled (#187250) (#188078) # Backport This will backport the following commits from `main` to `8.15`: - [[Discover] Fix Field Statistics when discover:searchFieldsFromSource is enabled (#187250)](#187250) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Julia Rechkunova","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-07-11T10:22:15Z","message":"[Discover] Fix Field Statistics when discover:searchFieldsFromSource is enabled (#187250)\n\n- Closes https://github.com/elastic/kibana/issues/187241\r\n\r\n## Summary\r\n\r\nThis PR excludes `_source` when processing current `columns` in UI\r\n- For Field Statistics table\r\n- For ES|QL fields callout\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Matthias Wilhelm <[email protected]>","sha":"879b7b7d9880a99b693685697c435ad9f14159c9","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:DataDiscovery","backport:prev-minor","v8.16.0"],"title":"[Discover] Fix Field Statistics when discover:searchFieldsFromSource is enabled","number":187250,"url":"https://github.com/elastic/kibana/pull/187250","mergeCommit":{"message":"[Discover] Fix Field Statistics when discover:searchFieldsFromSource is enabled (#187250)\n\n- Closes https://github.com/elastic/kibana/issues/187241\r\n\r\n## Summary\r\n\r\nThis PR excludes `_source` when processing current `columns` in UI\r\n- For Field Statistics table\r\n- For ES|QL fields callout\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Matthias Wilhelm <[email protected]>","sha":"879b7b7d9880a99b693685697c435ad9f14159c9"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/187250","number":187250,"mergeCommit":{"message":"[Discover] Fix Field Statistics when discover:searchFieldsFromSource is enabled (#187250)\n\n- Closes https://github.com/elastic/kibana/issues/187241\r\n\r\n## Summary\r\n\r\nThis PR excludes `_source` when processing current `columns` in UI\r\n- For Field Statistics table\r\n- For ES|QL fields callout\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Matthias Wilhelm <[email protected]>","sha":"879b7b7d9880a99b693685697c435ad9f14159c9"}}]}] BACKPORT--> Co-authored-by: Julia Rechkunova <[email protected]>
Summary
This PR excludes
_source
when processing currentcolumns
in UIChecklist