Skip to content
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

Merged

Conversation

maryam-saeidi
Copy link
Member

@maryam-saeidi maryam-saeidi commented Aug 26, 2022

Closes #134887
Fixes #139566

Summary

This PR integrates the shareable alerts table to the observability alerts page.

image

Important: Refresh functionality is not implemented yet, we need to wait for #134892 before merging. --> Merged!

Checklist

@maryam-saeidi
Copy link
Member Author

/oblt-deploy

@maryam-saeidi
Copy link
Member Author

/oblt-deploy

@maryam-saeidi maryam-saeidi marked this pull request as ready for review August 30, 2022 13:30
@maryam-saeidi maryam-saeidi requested a review from a team as a code owner August 30, 2022 13:30
@maryam-saeidi maryam-saeidi added release_note:enhancement chore release_note:skip Skip the PR/issue when compiling release notes and removed release_note:enhancement labels Aug 30, 2022
@@ -54,9 +54,6 @@ export function AlertsSearchBar({
timeHistory={timeHistory}
dateRangeFrom={rangeFrom}
dateRangeTo={rangeTo}
onRefresh={({ dateRange }) => {
Copy link
Member Author

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';
Copy link
Member Author

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.

@maryam-saeidi maryam-saeidi requested a review from XavierM August 30, 2022 16:27
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';
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sharp eyes! 👀

Copy link
Contributor

@kdelemme kdelemme left a 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.

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
observability 460 463 +3

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
observability 514.3KB 522.2KB +7.9KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
observability 64.6KB 64.7KB +30.0B
Unknown metric groups

async chunk count

id before after diff
observability 15 16 +1

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@maryam-saeidi maryam-saeidi merged commit 9b35b5c into elastic:main Sep 1, 2022
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Sep 1, 2022
@maryam-saeidi maryam-saeidi deleted the 134887-shared-alert-table-alerts-page branch September 1, 2022 09:16
@maryam-saeidi maryam-saeidi added the Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" label Sep 5, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/actionable-observability (Team: Actionable Observability)

Mpdreamz pushed a commit to Mpdreamz/kibana that referenced this pull request Sep 6, 2022
…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
@maryam-saeidi maryam-saeidi self-assigned this Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting chore release_note:skip Skip the PR/issue when compiling release notes Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" v8.5.0
Projects
None yet
5 participants