-
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
[ResponseOps][Alerts] Move the alerts table to a dedicated package #207878
base: main
Are you sure you want to change the base?
Conversation
99c6d4d
to
72b83e5
Compare
72b83e5
to
002f502
Compare
Pinging @elastic/response-ops (Team:ResponseOps) |
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.
ObsUx Infra and Services changes LGTM
packages/response-ops/alerts_table/components/alerts_data_grid.tsx
Outdated
Show resolved
Hide resolved
Thanks @umbopepato for this PR! Please consider merging At the time of this writing, this PR is waiting on approval from a few teams, so I merged #208293, which as @stephmilovic noted here and here, a couple of tests may fail when they are merged with the changes in this PR. Thank you @stephmilovic for the heads-up! |
5fa2235
to
5459a7d
Compare
Rebased and updated the tests to the new standalone component! Thanks @andrew-goldstein 🙂 |
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.
EA team changes LGTM!
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.
Tested the PR locally and the Alert table worked as expected.
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.
Cell actions tested locally.
Threat hunting - Explore changes LGTM
x-pack/solutions/security/plugins/security_solution/common/types/timeline/cells/index.ts
Show resolved
Hide resolved
.../solutions/security/plugins/security_solution/public/timelines/components/duration/index.tsx
Show resolved
Hide resolved
- Removes the alerts table registry in favor of a props-only configuration - Converts all the usages of the alerts table to use only props - [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [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: kibanamachine <[email protected]> Co-authored-by: Christos Nasikas <[email protected]>
Moves the alerts table code and dependencies to dedicated packages in `packages/response-ops/**`. > [!IMPORTANT] > 🚧 Merging to the `alerts-table-refactor` feature branch` - [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [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 - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Christos Nasikas <[email protected]>
…tCases (#207038) ## Summary > [!IMPORTANT] > 🚧 Merging to the `alerts-table-refactor` feature branch, no review needed from teams other than `response-ops` > [!WARNING] > Some tests are intentionally left failing since the converted usages of the alerts table still have to be validated/improved by solutions and may change significantly Adds a `renderAlertsTable` prop to `getCases` to allow solutions to customize the alerts table shown in the `Alerts` tab of their case view.
## Summary The Security Solution alerts table CellValue component was receiving some wrong props when used in the Rule preview table. This PR removes the spread `{...props}` expression and type cast that didn't catch this error and correctly converts props and types.
…om security flyout (#208052) ## Summary Fixes the toggleColumn functionality not working from the Security Solution flyout. Uses a global context to share a reference to the `toggleColumn` function as a **temporary solution** until the handling of the columns inside the alerts table is refactored to correctly receive updates from the outside.
5459a7d
to
4df554f
Compare
4df554f
to
1428348
Compare
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
async chunk count
ESLint disabled in files
ESLint disabled line counts
miscellaneous assets size
References to deprecated APIs
Total ESLint disabled count
Unreferenced deprecated APIs
History
|
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.
The ResponseOps team collectively approves.
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 have reviewed the Rule Management table owned code and tested the changes on the Rule Details page. I approved on behalf of the Rule Management.
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.
Tested alerts table in security, o11y and stack management and cases alerts tab. works as expected 👍
Summary
This PR turns the AlertsTable into a standalone component, making it independent from the
TriggersActionsUI
plugin.Removes the alerts table registry
All configuration is now managed through the AlertsTable component props. Shared configurations are handled by giving consumers the ability to directly provide alerts table wrapper components (see for example the
renderAlertsTable
prop ofgetCases
).Moves the alerts table to dedicated package(s)
Following the feature-driven structure we're introducing for ResponseOps (alerting) client-side packages:
@kbn/response-ops-alerts-table
@kbn/response-ops-alerts-apis
@kbn/response-ops-alerts-fields-browser
Initial work on improving composition and organization
components/
,hooks/
, ...)To verify
For consumers of the alerts table:
Warning
This PR moves a lot of files. Git might not always recognize the correct delete/add file pairs. If you see weird diffs feel free to reach out for help!
Checklist
Identify risks
References
Closes #195180