-
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] Add Multi terms support to Top Values #118600
Conversation
Will list things here as I find them:
|
…multi-field-terms
@elasticmachine merge upstream |
merge conflict between base and head |
The issues I mentioned before are all fixed. One small thing to correct (here or in the next PR if you prefer to:)
one.mp4
two.mp4 |
The drag and drop behaviour has not be considered in this PR yet, but I have prepared a follow up PR which adds a
This is definitely a bug in this PR. Will address it. |
@Dosant I've updated the default char in the formatter. const separator = params.separator ?? ' > '
I've tested this behaviour also in th linked PR and it was a full bug. Fixed the behaviour plus one more unit test for it. 👍
Also addressed this, adding tests on the filters side. |
is more flexible, so I'd keep as it was :D |
@Dosant restored the previous version + added a couple of unit tests. |
@dej611 while the legend is not truncated for xy charts |
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.
I am approving as I have only found this minor issue. Feel free to merge when this is solved! What a lovely PR 👏
@stratoula refactored the truncation logic into a shared helper and added few tests for it. |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
merge conflict between base and head |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
Fix #95079
This PR introduces an interface for Lens of the Multi terms value aggregation, via the Top Values function.
This PR does not contain the
Combine
drag and drop action. Will be added in a follow up PR.When a new term field is added the current fields used are removed from the field dropdown list.
When more than one field is defined
scripted fields
are filtered from the field dropdown list, and where already set are marked as invalid with an explanation (both in the workspace and in the panel) on how to fix it.Time shift conflict is resolved similarly for the single term, concatenating conditions of multiple terms:
Terms can be reordered manually via Drag and Drop:
The empty field can be reordered as well but it has no effect until it contains a value. Closing and reopening the panel when empty will just discard it:
In case of 2 fields, where only one is filled with a value, the trash icon will be enabled only for the empty one:
Checklist
Delete any items that are not applicable to this PR.