-
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] Improves ranking feature in Top values #90749
Conversation
@elasticmachine merge upstream |
@elasticmachine merge upstream |
Pinging @elastic/kibana-app (Team:KibanaApp) |
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.
Looks almost good to me. Code review only
<EuiIconTip | ||
color="subdued" | ||
content={i18n.translate('xpack.lens.indexPattern.terms.orderByHelp', { | ||
defaultMessage: `It controls the ranking system used to retrieve the Top values.`, |
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.
@KOTungseth Should "Top values" be capitalized here? I'm always hazy on these rules.
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.
How about:
Specifies the function that retrieves the top values.
Since we are referring to the top values in the data set instead of the UI setting, top values
can be lowercase.
@@ -378,7 +411,7 @@ export const termsOperation: OperationDefinition<TermsIndexPatternColumn, 'field | |||
) | |||
} | |||
aria-label={i18n.translate('xpack.lens.indexPattern.terms.orderBy', { | |||
defaultMessage: 'Order by', |
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.
As you changed the default messages, please delete the translations in chinese and japanese i18n files as well.
<EuiIconTip | ||
color="subdued" | ||
content={i18n.translate('xpack.lens.indexPattern.terms.orderByHelp', { | ||
defaultMessage: `It controls the ranking system used to retrieve the Top values.`, |
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.
How about:
Specifies the function that retrieves the top values.
Since we are referring to the top values in the data set instead of the UI setting, top values
can be lowercase.
<EuiIconTip | ||
color="subdued" | ||
content={i18n.translate('xpack.lens.indexPattern.terms.orderDirectionHelp', { | ||
defaultMessage: `It controls the ranking direction used to retrieve the Top values.`, |
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.
How about:
Specifies the ranking order of the top values.
@@ -378,7 +411,7 @@ export const termsOperation: OperationDefinition<TermsIndexPatternColumn, 'field | |||
) | |||
} | |||
aria-label={i18n.translate('xpack.lens.indexPattern.terms.orderBy', { | |||
defaultMessage: 'Order by', | |||
defaultMessage: 'Rank by', |
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.
Is this a ranking system? Or an order system?
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 feel it's a tricky question :D .
I'd say it is a ranking system
here to differentiate from order
which sounds more as a postprocessing task in this context.
…na into fix/order-by-top-values-lens
<EuiIconTip | ||
color="subdued" | ||
content={i18n.translate('xpack.lens.indexPattern.terms.orderByHelp', { | ||
defaultMessage: `Specifies the function that retrieves the top values.`, |
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.
Reading it in the UI, I'm not a fan of this wording. The function is not retrieving the top values - it's the dimension they are ranked by. The dropdown is not listing the functions from the function list on top, it's listing the metric dimensions of the current chart (plus alphabetical). Specifies the dimension the top values are ranked by
maybe?
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.
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.
I haven't run this code, but the text changes LGTM. I'm not sure this needs a release note, what do you think?
Maybe with only labels changed I would say to skip them for sure. |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
…ndition-for-hiding-recommded-allocation * 'master' of github.com:elastic/kibana: [Discover] Fix toggling multi fields from doc view table (elastic#91121) [ML] Data Frame Analytics: ROC Curve Chart (elastic#89991) skip flaky suite (elastic#86948) skip flaky suite (elastic#91191) Fix date histogram time zone for rollup index (elastic#90632) [Search Source] Fix retrieval of unmapped fields; Add field filters (elastic#89837) [Logs UI] Use useMlHref hook for ML links (elastic#90935) Fix values of `products.min_price` field in Kibana sample ecommerce data set (elastic#90428) [APM] Darker shade for Error group details labels (elastic#91349) [Lens] Adjust new copy for 7.12 (elastic#90413) [ML] Unskip test. Fix modelMemoryLimit value. (elastic#91280) [Lens] Fix empty display name issue in XY chart (elastic#91132) [Lens] Improves error messages when in Dashboard (elastic#90668) [Lens] Keyboard-selected items follow user traversal of drop zones (elastic#90546) [Lens] Improves ranking feature in Top values (elastic#90749) [ILM] Rollover min age tooltip and copy fixes (elastic#91110) # Conflicts: # x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/edit_policy.test.ts
Summary
Part of #81780
This PR clarifies some ambiguities for the ranking feature in the Top values operation in Lens.
The feature has been now renamed into
Order
->Rank
, and tooltips have been added to explain further the concepts.Checklist
Delete any items that are not applicable to this PR.