-
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
[ML] Explain Log Rate Spikes: Support to filter fields from grouping #153864
Conversation
e884228
to
5256ed0
Compare
5256ed0
to
19449fa
Compare
Pinging @elastic/ml-ui (:ml) |
defaultMessage: 'Filter fields', | ||
})} | ||
value={fieldSearchText} | ||
onChange={(e: ChangeEvent<HTMLInputElement>) => setFieldSearchText(e.currentTarget.value)} |
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 it be helpful to debounce here?
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'll skip doing this for now since there's no immediate remote or async action involved. (The EUI component I took this from works the same way)
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.
Left a small comment but other than that 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.
Left one suggestion that might make the help text tighter. Otherwise, UI text LGTM!
<EuiText size="xs" color="subdued" style={{ maxWidth: '400px' }}> | ||
<FormattedMessage | ||
id="xpack.aiops.explainLogRateSpikesPage.fieldFilterHelpText" | ||
defaultMessage="To remove non-relevant fields from groups, deselect them below and click the Apply button to rerun the grouping. The search bar can be used to filter the list of fields and is useful to select/deselect in bulk with the actions below the list." |
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.
defaultMessage="To remove non-relevant fields from groups, deselect them below and click the Apply button to rerun the grouping. The search bar can be used to filter the list of fields and is useful to select/deselect in bulk with the actions below the list." | |
defaultMessage="Deselect non-relevant fields to remove them from groups and click the Apply button to rerun the grouping. Use the search bar to filter the list, then select/deselect multiple fields with the actions below." |
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.
Updated in 16a3325.
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 and overall looks good. Just left a few comments.
x-pack/plugins/aiops/public/components/explain_log_rate_spikes/field_filter_popover.tsx
Show resolved
Hide resolved
x-pack/plugins/aiops/public/components/explain_log_rate_spikes/field_filter_popover.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/aiops/public/components/explain_log_rate_spikes/field_filter_popover.tsx
Show resolved
Hide resolved
…select button if search returns no ofields
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 latest edits and LGTM
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @walterra |
Summary
Part of #153753.
Filter fields
popover selector inspired by EUI's data grid column picker to toggle inclusion of fields into grouping.Group results
switch and theFilter fields
popover on the same level as the progress controls.explain_log_rate_spikes
API endpoint to support retrieving a grouping update only.Checklist