Skip to content

[RAM] Alert Table from triggers_actions_ui plugin#131883

Merged
XavierM merged 58 commits intoelastic:mainfrom
XavierM:alert_hook
May 17, 2022
Merged

[RAM] Alert Table from triggers_actions_ui plugin#131883
XavierM merged 58 commits intoelastic:mainfrom
XavierM:alert_hook

Conversation

@XavierM
Copy link
Contributor

@XavierM XavierM commented May 10, 2022

Summary

  • Add a hook to fetch alerts
  • Create a state alert component to manage all the plumbing of the alert table
  • insert the alert table in case

image

Checklist

Release note

View all alerts attached to a case in the alerts table. The feature is experimental.

@XavierM XavierM added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// Feature:Cases Cases feature v8.3.0 labels May 10, 2022
@@ -133,20 +129,12 @@ const AlertsTable: React.FunctionComponent<AlertsTableProps> = (props: AlertsTab
<EuiDataGrid
aria-label="Alerts table"
data-test-subj="alertsTable"
Copy link
Contributor

@academo academo May 10, 2022

Choose a reason for hiding this comment

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

make this data-test-subj a prop.

@academo
Copy link
Contributor

academo commented May 10, 2022

so far looking good and I like how simple to use is on the cases side! good work.

I know this is a draft PR but nevertheless pointing at missing:

  • jest tests for all new hooks, component and helpers.
  • do not forget to set false to feature flags and code flags.

@academo academo removed request for a team, joeypoon and paul-tavares May 17, 2022 12:24
cnasikas and others added 11 commits May 17, 2022 18:07
…tic#132184)

* Add support of Data View switching for Agg-Based visualizations

* fix CI

* add use_date_view_updates

* implement sync with state

* cleanup

* cleanup

* cleanup

* Update index.ts

* fix PR comments

* Update use_data_view_updates.ts

* Update use_data_view_updates.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Discover] Add Analytics No Data Page

* Make showEmptyPrompt parameter optional

* Remove unused import

* Remove unnecessary test

* Fix test

* Update failing test?

* Update failing test

* Changing the order of functional tests

* Fix error handling

* Addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibana-ci
Copy link

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
cases 427 431 +4
triggersActionsUi 380 385 +5
total +9

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
ruleRegistry 169 174 +5
triggersActionsUi 383 368 -15
total -10

Async chunks

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

id before after diff
cases 298.3KB 299.8KB +1.5KB
triggersActionsUi 750.1KB 772.2KB +22.1KB
total +23.6KB

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
ruleRegistry 8 9 +1
triggersActionsUi 31 34 +3
total +4

Page load bundle

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

id before after diff
cases 112.1KB 112.2KB +125.0B
triggersActionsUi 103.2KB 103.2KB -19.0B
total +106.0B
Unknown metric groups

API count

id before after diff
ruleRegistry 196 202 +6
triggersActionsUi 397 382 -15
total -9

async chunk count

id before after diff
triggersActionsUi 81 82 +1

ESLint disabled line counts

id before after diff
cases 80 81 +1
triggersActionsUi 172 173 +1
total +2

Total ESLint disabled count

id before after diff
cases 96 97 +1
triggersActionsUi 178 179 +1
total +2

History

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

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 Feature:Cases Cases feature release_note:feature Makes this part of the condensed release notes Team:Fleet Team label for Observability Data Collection Fleet team Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v8.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.