-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Lens] Show runtime fields in field list and improve performance #79167
[Lens] Show runtime fields in field list and improve performance #79167
Conversation
Pinging @elastic/kibana-app (Team:KibanaApp) |
@@ -22,7 +22,6 @@ const fieldsWithData = [ | |||
'@timestamp', | |||
'_id', | |||
'_index', | |||
'_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.
_source was removed from the API response, but this has no effect on Lens because it was hidden anyway.
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
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.
Tested in Chrome and works as expected, LGTM. Meta fields still work fine, script fields still work fine, fields are correctly reported as empty.
Didn't test cross-cluster search
#79167) (#79340) * [Lens] Show runtime fields in field list and improve performance (#79167) * [Lens] Simplify request to determine existing fields * Remove duplicate values # Conflicts: # x-pack/test/api_integration/apis/lens/existing_fields.ts * Fix merge issue Co-authored-by: Kibana Machine <[email protected]>
The reason runtime fields were not being shown is that their values aren't available in
_source
. There was existing tech debt to move away from_source
and towardsfields
, so this PR both fixes a bug and cleans up tech debt. By usingfields
, we remove the following special handling:.keyword
are automatically handledAs a result, we can support field existence queries on cross-cluster search, and remove the extra calls to
mapping
andfield_caps
.Fixes #78171
Closes #56902
Closes #72012
Checklist