-
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
[Actionable Observability] Integrate the shareable alerts table in the Observability Alerts page #139544
[Actionable Observability] Integrate the shareable alerts table in the Observability Alerts page #139544
Conversation
/oblt-deploy |
/oblt-deploy |
@@ -54,9 +54,6 @@ export function AlertsSearchBar({ | |||
timeHistory={timeHistory} | |||
dateRangeFrom={rangeFrom} | |||
dateRangeTo={rangeTo} | |||
onRefresh={({ dateRange }) => { |
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.
onRefresh
was not working as expected, when clicking on the refresh button, onQuerySubmit
was called, I assume it is related to how this SearchBar
is configured.
Let me know if someone has an idea about it.
import { ALERT_STATUS } from '@kbn/rule-data-utils'; | ||
|
||
export const ALERTS_PAGE_ID = 'alerts-o11y'; | ||
export const ALERTS_TABLE_ID = 'xpack.observability.alerts.table'; |
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 just added this table id, the rest are the same as before.
import { ParsedTechnicalFields } from '@kbn/rule-registry-plugin/common/parse_technical_fields'; | ||
import { ParsedExperimentalFields } from '@kbn/rule-registry-plugin/common/parse_experimental_fields'; | ||
import { Storage } from '@kbn/kibana-utils-plugin/public'; | ||
import { AlertConsumers } from '@kbn/rule-data-utils'; |
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: merge AlertStatus with AlertConsumers import
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.
Sharp eyes! 👀
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! Tested locally as well and everything seems to work fine.
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Pinging @elastic/actionable-observability (Team: Actionable Observability) |
…e Observability Alerts page (elastic#139544) * Use TIMESTAMP as default field for sort in shared alert table * Use new ResponseOps shareable alerts table in Observability Alerts page * Bring back CasesContext and fix and test issues * Fix pagination test * Correct sort order and fix alerts functional test * Fix column css selector * Add refresh and extract creating esQuery in a separate helper * Fix file names * Fix import
Closes #134887
Fixes #139566
Summary
This PR integrates the shareable alerts table to the observability alerts page.
Important: Refresh functionality is not implemented yet, we need to wait for #134892 before merging.--> Merged!Checklist