-
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] Display advanced mode toggle for the APM failed transactions table #114363
Conversation
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.
UX looks good to me 👍
paddingLeft: euiTheme.eui.paddingSizes.s, | ||
}} | ||
> | ||
<EuiSwitch |
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.
@qn895 @formgeist is there any value in hiding the switch when no correlations are found?
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.
@peteharverson I think the result would be that the switch would come and go which can be confusing too
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 LGTM.
Not changed in this PR, but just wondered if the p-value
column would benefit from an info tooltip?
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.
Just one minor comment on the text, but otherwise tested and LGTM
'xpack.apm.correlations.failedTransactions.correlationsTable.pValueDescription', | ||
{ | ||
defaultMessage: | ||
'The chance of seeing at least this count of field name & field value for failed transactions given its prevalence in successful transactions.', |
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.
Nit - I don't think we normally use the ampersand &
in text, so I'd replace it with and
.
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.
If I understand the context correctly, I would change seeing
to something else. I left a suggestion, please take or leave it.
'The chance of seeing at least this count of field name & field value for failed transactions given its prevalence in successful transactions.', | |
'The chance of getting at least this amount of field name and value for failed transactions given its prevalence in successful transactions.', |
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 left one suggestion, otherwise UI text LGTM!
'xpack.apm.correlations.failedTransactions.correlationsTable.pValueDescription', | ||
{ | ||
defaultMessage: | ||
'The chance of seeing at least this count of field name & field value for failed transactions given its prevalence in successful transactions.', |
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.
If I understand the context correctly, I would change seeing
to something else. I left a suggestion, please take or leave it.
'The chance of seeing at least this count of field name & field value for failed transactions given its prevalence in successful transactions.', | |
'The chance of getting at least this amount of field name and value for failed transactions given its prevalence in successful transactions.', |
Pinging @elastic/ml-ui (:ml) |
@@ -4912,6 +4912,16 @@ | |||
"visTypeMetric.colorModes.backgroundOptionLabel": "背景", | |||
"visTypeMetric.colorModes.labelsOptionLabel": "ラベル", | |||
"visTypeMetric.colorModes.noneOptionLabel": "なし", | |||
"visTypeMetric.metricDescription": "計算結果を単独の数字として表示します。", |
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 assume this is here because some labels were resorted, but it might make sense to undo the changes in these files to prevent merge conflicts (for you or others).
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.
Fixed here 8477e29
Pinging @elastic/apm-ui (Team:apm) |
)} | ||
checked={showStats} | ||
onChange={(e) => setShowStats(!showStats)} | ||
compressed={true} |
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.
you can leave out ={true}
here and just use compressed
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 here 8477e29
} | ||
)} | ||
checked={showStats} | ||
onChange={(e) => setShowStats(!showStats)} |
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.
can you use a callback here? i.e. setShowState(prevShowStats => !prevShowStats)
. See https://reactjs.org/docs/hooks-reference.html#functional-updates
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.
Unfortunately setShowStats
is using useLocalStorage
and not useState
so this callback doesn't work here. We can modify useLocalStorage
to support this behavior but I think that's outside the scope of this PR.
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 good, just a few nits. Thanks!
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @qn895 |
…le (elastic#114363) * Add new toggle * [ML] Add tooltip for p value * [ML] Add tooltip for p value * Update tooltip * Add callback, revert i18n, compressed Co-authored-by: Kibana Machine <[email protected]>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…le (#114363) (#115073) * Add new toggle * [ML] Add tooltip for p value * [ML] Add tooltip for p value * Update tooltip * Add callback, revert i18n, compressed Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Quynh Nguyen <[email protected]>
Summary
This PR adds a new toggle for the APM Failed transactions table to show the additional statistics. Previously, this was coupled with the Inspect ES query setting in the advanced setting.
Changes include:
Checklist
Delete any items that are not applicable to this PR.