-
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
[AO] - Add rule-specific fields, threshold, and reuse alert details package components #154569
[AO] - Add rule-specific fields, threshold, and reuse alert details package components #154569
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Pinging @elastic/actionable-observability (Team: Actionable Observability) |
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.
Basically, I applied what was suggested here #153930 (comment)
And in another PR will move it to the Observability
...k/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/index.tsx
Outdated
Show resolved
Hide resolved
...k/plugins/infra/public/alerting/log_threshold/components/alert_details_app_section/index.tsx
Outdated
Show resolved
Hide resolved
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, I left some non-blocking nits, thanks for the changes on the custom hook!
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @fkanout |
<EuiSpacer size="s" /> | ||
{chartCriterion.comparator && ( | ||
<Threshold | ||
title={`Threshold breached`} |
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.
@fkanout Shouldn't we translate this text?
@@ -19,7 +19,7 @@ export interface ChartProps { | |||
|
|||
export interface Props { | |||
chartProps: ChartProps; | |||
comparator: Comparator; | |||
comparator: Comparator | string; |
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.
@fkanout Why do we need to add string type here?
{chartCriterion.comparator && ( | ||
<Threshold | ||
title={`Threshold breached`} | ||
chartProps={{ theme, baseTheme: LIGHT_THEME }} |
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 does it work with only LIGHT_THEME
as a base theme?
Previously, I provided it like this: https://github.com/elastic/kibana/blob/main/x-pack/plugins/observability/public/pages/rule_details/index.tsx#L97
Summary
It fixes #153675, fixes #153567, fixes #153946, fixes #154845