-
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] Rank top values by custom metric #134811
Conversation
9f587d4
to
474db68
Compare
68f1d2a
to
68d2a55
Compare
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
b7a7869
to
ce2b3df
Compare
@elasticmachine merge upstream |
…na into lens/rank_by_custom_metric
…k_by_custom_metric
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.
Reviewed the changes since last time and this still looks good to me, thanks! ABout the bug @stratoula found - it's probably related to the redux toolkit change detection thingy again beause in kibana/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/index.tsx Line 281 in 3cd333c
the redux managed object is passed directly into the agg config logic. It's actually pretty cool it's catching this because it could cause weird behavior (saved object suddenly has another property |
Actually I think it's happening somewhere else and it might be harder to fix in general... We put the data table into the redux store ( |
Deep cloning the params here makes it work: kibana/src/plugins/data/public/actions/filters/create_filters_from_value_click.ts Line 94 in a8095ce
|
…perty schema of object
@stratoula and @flash1293 thank you for finding the bug and for the investigation! I've fixed it with suggested solution, @stratoula please recheck when you have a moment :) |
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.
Thanx Marta and Joe! Now it works fine! 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.
Thanks for putting this together, @mbondyra! This looks great. I'm leaving you a handful of small comments/suggestions below. Assuming those get addressed, this looks good from my perspective. Approving now so I don't hold you up.
x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/index.tsx
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,3 @@ | |||
.lnsInnerIndexPattern__inlineRow { | |||
min-width: 96px; |
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.
Again, I hadn't considered the "Percentile ranks value" input when putting together the mockups. I think we'll need to increase the min-width
here in order to ensure the prepended labels are the same width (or alternatively come up with a shorter label than "Percentile ranks value").
min-width: 96px; | |
min-width: 144px; |
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.
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.
Yeah. What about a shorter name for "Percentile ranks value"? For example, would simply "Percentile rank" work? Then we could adjust the label min-width to be equal to the largest of the labels.
x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/last_value.tsx
Outdated
Show resolved
Hide resolved
...s/lens/public/indexpattern_datasource/operations/definitions/shared_components/form_row.scss
Outdated
Show resolved
Hide resolved
src/plugins/data/public/actions/filters/create_filters_from_value_click.ts
Outdated
Show resolved
Hide resolved
…only property schema of object" This reverts commit c4931aa.
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.
Thanks for the agg config change! lgtm!
💛 Build succeeded, but was flakyFailed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
Fixes #133991.
orderBy
option:custom
orderAgg
ReferenceEditor
to also be able to edit inline columns, not just referenced onesparamEditor
to accept also inlined columns and not referenced by columnId inside layerExtra fixes:
___records___
displayed asRecords
when moving from count to another operation typearray
last value option should impossible to select when last value is a referenced operation.Checklist