Skip to content

[RAM][Observability] Add alert fields table to Observability flyout#174685

Merged
umbopepato merged 13 commits intoelastic:mainfrom
umbopepato:174517-alert-fields-table-o11y
Jan 24, 2024
Merged

[RAM][Observability] Add alert fields table to Observability flyout#174685
umbopepato merged 13 commits intoelastic:mainfrom
umbopepato:174517-alert-fields-table-o11y

Conversation

@umbopepato
Copy link
Member

@umbopepato umbopepato commented Jan 11, 2024

Summary

Adds the alert fields table from #172830 to Observability alert flyouts (triggered by the View alert details action).

image

Checklist

@umbopepato umbopepato added release_note:enhancement Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v8.13.0 labels Jan 11, 2024
@umbopepato umbopepato requested a review from a team as a code owner January 11, 2024 13:38
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@botelastic botelastic bot added the Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. label Jan 11, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@umbopepato umbopepato requested a review from a team as a code owner January 18, 2024 13:36
@umbopepato umbopepato force-pushed the 174517-alert-fields-table-o11y branch from 640e946 to 4d18719 Compare January 22, 2024 10:09
@umbopepato umbopepato force-pushed the 174517-alert-fields-table-o11y branch from 993896f to 8a44f14 Compare January 22, 2024 11:20
@umbopepato umbopepato force-pushed the 174517-alert-fields-table-o11y branch from 8a44f14 to e6e28f3 Compare January 22, 2024 12:38
@maryam-saeidi maryam-saeidi self-requested a review January 23, 2024 14:04
Copy link
Member

@maryam-saeidi maryam-saeidi left a comment

Choose a reason for hiding this comment

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

Tested locally and worked as expected 💯 Just added some clarifying questions.

Btw, in smaller screen, we don't have enough space for the field name but I am not sure how having a wider width for the first column will impact bigger screens:

I've tested this logic in:

  1. Rule details page
    image

  2. Hosts page
    image

  3. APM service page
    image

@@ -41,16 +44,16 @@ export function AlertsFlyout({
if (!alertData) {
alertData = decoratedAlerts?.find((a) => a.fields[ALERT_UUID] === selectedAlertId) as TopAlert;
Copy link
Member

Choose a reason for hiding this comment

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

Not related to this PR but this logic seems to be related to the parent component instead of here, it is a bit confusing why we have are passing both alerts and alert to this component. 🤔

Copy link
Member Author

@umbopepato umbopepato Jan 24, 2024

Choose a reason for hiding this comment

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

I too noticed this, it seems like the intention was to support both retrieving the alert form the list fetched by the table and receive a single one too even though the first option seems unused as of now

}

export const useFetchAlertDetail = (id: string): [boolean, TopAlert | null] => {
export interface AlertDetail {
Copy link
Member

Choose a reason for hiding this comment

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

nit:

Suggested change
export interface AlertDetail {
export interface AlertData { // Or maybe AlertInstance
formatted: TopAlert;
raw: EcsFieldsResponse;
}

Copy link
Member Author

Choose a reason for hiding this comment

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

Much better! 👍

Copy link
Member

@maryam-saeidi maryam-saeidi left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the improvement ❤️

@umbopepato umbopepato force-pushed the 174517-alert-fields-table-o11y branch from 18499cf to 08ffa7c Compare January 24, 2024 15:57
@kibana-ci
Copy link

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/alerts-ui-shared 92 90 -2

Async chunks

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

id before after diff
observability 634.5KB 638.5KB +4.0KB

Page load bundle

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

id before after diff
triggersActionsUi 106.2KB 106.3KB +80.0B
Unknown metric groups

API count

id before after diff
@kbn/alerts-ui-shared 94 95 +1

History

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

@umbopepato umbopepato merged commit 256d12e into elastic:main Jan 24, 2024
@kibanamachine kibanamachine added the backport:skip This PR does not require backporting label Jan 24, 2024
jloleysens added a commit that referenced this pull request Jan 25, 2024
* main: (520 commits)
  Update Kibana code editor dependencies (#171720)
  [SLOs] Hide view in app in slo alerts table in slo details page (#175441)
  [api-docs] 2024-01-25 Daily api_docs build (#175502)
  [DOCS] Add buildkite links to doc preview comments (#175463)
  skip flaky suite (#175443)
  [Security Solution][Timeline] refactor timeline modal save timeline button (#175343)
  [RAM] Stack Management::Rules loses user selections when navigating back (#174954)
  [Security Solution][Timeline] refactor timeline modal attach to case button (#175163)
  Upgrade EUI to v92.1.1 (#174955)
  [Fleet]: Beta label is shown inconsistently while selecting proxy under Fleet settings. (#170634)
  [Cloud Security] Rules Combo Box filters Custom component (#175175)
  skip flaky suite (#175407)
  [Security Solution][Timeline] refactor timeline modal open timeline button (#175335)
  [Embedded Console] Introduce kbnSolutionNavOffset CSS variable (#175348)
  [Console] disable access to embedded console without dev tools capability (#175321)
  fix(x-pack/reporting): use FIPS-compliant ID generator `uuidv4` in Reporting plugin (#174809)
  [Security Solution] Data quality dashboard persistence (#173185)
  [RAM][Observability] Add alert fields table to Observability flyout (#174685)
  test: add missing await for connector table disappearance (#175430)
  [RAM][Maintenance Window] Fix maintenance window FE types and transforms  (#173888)
  ...
CoenWarmer pushed a commit to CoenWarmer/kibana that referenced this pull request Feb 15, 2024
…lastic#174685)

## Summary

Adds the alert fields table from
elastic#172830 to Observability alert
flyouts (triggered by the `View alert details` action).


![image](https://github.com/elastic/kibana/assets/18363145/7e10517e-a5b6-497a-91c8-5bc2bc88ad69)

### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:enhancement Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v8.13.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants