…age (#207878) (#210895)
# Backport
This will backport the following commits from `main` to `8.x`:
- [[ResponseOps][Alerts] Move the alerts table to a dedicated package
(#207878)](#207878)
<!--- Backport version: 9.6.4 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT [{"author":{"name":"Umberto
Pepato","email":"umbopepato@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-12T10:07:55Z","message":"[ResponseOps][Alerts]
Move the alerts table to a dedicated package (#207878)\n\n##
Summary\r\n\r\nThis PR turns the AlertsTable into a standalone
component, making it\r\nindependent from the `TriggersActionsUI`
plugin.\r\n\r\n#### Removes the alerts table registry\r\n\r\nAll
configuration is now managed through the AlertsTable component\r\nprops.
Shared configurations are handled by giving consumers the ability\r\nto
directly provide alerts table wrapper components (see for example
the\r\n`renderAlertsTable` prop of `getCases`).\r\n\r\n#### Moves the
alerts table to dedicated package(s)\r\n\r\nFollowing the feature-driven
structure we're introducing for ResponseOps\r\n(alerting) client-side
packages:\r\n- `@kbn/response-ops-alerts-table`\r\n-
`@kbn/response-ops-alerts-apis`\r\n-
`@kbn/response-ops-alerts-fields-browser`\r\n\r\n#### Initial work on
improving composition and organization\r\n\r\n- Reorganizes the table
code into a by-entity-type folder structure\r\n(`components/`, `hooks/`,
...)\r\n- Simplifies some components and breaks into smaller units when
possible\r\n\r\n## To verify\r\n\r\nFor consumers of the alerts
table:\r\n- Check that all your tables have the same behavior as before
(columns,\r\nsort, row actions, bulk actions, etc.)\r\n- Check that your
\"shared\" tables (i.e. cases alerts view in O11y and\r\nSecurity) have
the expected configuration and behavior\r\n\r\n> [!WARNING]\r\n> This PR
moves a lot of files. Git might not always recognize the\r\ncorrect
delete/add file pairs. If you see weird diffs feel free to reach\r\nout
for help!\r\n\r\n### Checklist\r\n\r\n-
[x]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n\r\n### Identify risks\r\n\r\n| Risk
| Description | Severity | Mitigation |\r\n|---|---|---|---|\r\n| Table
misconfigurations | Some table configurations might slightly\r\ndiffer
from the previous AlertsTableRegistry-backed version | Low |\r\nQuick
fix |\r\n\r\n## References\r\n\r\nCloses
#195180\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Christos Nasikas
<xristosnasikas@gmail.com>","sha":"a74066d6f83fc38feaa4d7e7b1cf7d3afd53c6f7","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","backport:version","v9.1.0","v8.19.0"],"title":"[ResponseOps][Alerts]
Move the alerts table to a dedicated
package","number":207878,"url":"https://github.com/elastic/kibana/pull/207878","mergeCommit":{"message":"[ResponseOps][Alerts]
Move the alerts table to a dedicated package (#207878)\n\n##
Summary\r\n\r\nThis PR turns the AlertsTable into a standalone
component, making it\r\nindependent from the `TriggersActionsUI`
plugin.\r\n\r\n#### Removes the alerts table registry\r\n\r\nAll
configuration is now managed through the AlertsTable component\r\nprops.
Shared configurations are handled by giving consumers the ability\r\nto
directly provide alerts table wrapper components (see for example
the\r\n`renderAlertsTable` prop of `getCases`).\r\n\r\n#### Moves the
alerts table to dedicated package(s)\r\n\r\nFollowing the feature-driven
structure we're introducing for ResponseOps\r\n(alerting) client-side
packages:\r\n- `@kbn/response-ops-alerts-table`\r\n-
`@kbn/response-ops-alerts-apis`\r\n-
`@kbn/response-ops-alerts-fields-browser`\r\n\r\n#### Initial work on
improving composition and organization\r\n\r\n- Reorganizes the table
code into a by-entity-type folder structure\r\n(`components/`, `hooks/`,
...)\r\n- Simplifies some components and breaks into smaller units when
possible\r\n\r\n## To verify\r\n\r\nFor consumers of the alerts
table:\r\n- Check that all your tables have the same behavior as before
(columns,\r\nsort, row actions, bulk actions, etc.)\r\n- Check that your
\"shared\" tables (i.e. cases alerts view in O11y and\r\nSecurity) have
the expected configuration and behavior\r\n\r\n> [!WARNING]\r\n> This PR
moves a lot of files. Git might not always recognize the\r\ncorrect
delete/add file pairs. If you see weird diffs feel free to reach\r\nout
for help!\r\n\r\n### Checklist\r\n\r\n-
[x]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n\r\n### Identify risks\r\n\r\n| Risk
| Description | Severity | Mitigation |\r\n|---|---|---|---|\r\n| Table
misconfigurations | Some table configurations might slightly\r\ndiffer
from the previous AlertsTableRegistry-backed version | Low |\r\nQuick
fix |\r\n\r\n## References\r\n\r\nCloses
#195180\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Christos Nasikas
<xristosnasikas@gmail.com>","sha":"a74066d6f83fc38feaa4d7e7b1cf7d3afd53c6f7"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/207878","number":207878,"mergeCommit":{"message":"[ResponseOps][Alerts]
Move the alerts table to a dedicated package (#207878)\n\n##
Summary\r\n\r\nThis PR turns the AlertsTable into a standalone
component, making it\r\nindependent from the `TriggersActionsUI`
plugin.\r\n\r\n#### Removes the alerts table registry\r\n\r\nAll
configuration is now managed through the AlertsTable component\r\nprops.
Shared configurations are handled by giving consumers the ability\r\nto
directly provide alerts table wrapper components (see for example
the\r\n`renderAlertsTable` prop of `getCases`).\r\n\r\n#### Moves the
alerts table to dedicated package(s)\r\n\r\nFollowing the feature-driven
structure we're introducing for ResponseOps\r\n(alerting) client-side
packages:\r\n- `@kbn/response-ops-alerts-table`\r\n-
`@kbn/response-ops-alerts-apis`\r\n-
`@kbn/response-ops-alerts-fields-browser`\r\n\r\n#### Initial work on
improving composition and organization\r\n\r\n- Reorganizes the table
code into a by-entity-type folder structure\r\n(`components/`, `hooks/`,
...)\r\n- Simplifies some components and breaks into smaller units when
possible\r\n\r\n## To verify\r\n\r\nFor consumers of the alerts
table:\r\n- Check that all your tables have the same behavior as before
(columns,\r\nsort, row actions, bulk actions, etc.)\r\n- Check that your
\"shared\" tables (i.e. cases alerts view in O11y and\r\nSecurity) have
the expected configuration and behavior\r\n\r\n> [!WARNING]\r\n> This PR
moves a lot of files. Git might not always recognize the\r\ncorrect
delete/add file pairs. If you see weird diffs feel free to reach\r\nout
for help!\r\n\r\n### Checklist\r\n\r\n-
[x]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n\r\n### Identify risks\r\n\r\n| Risk
| Description | Severity | Mitigation |\r\n|---|---|---|---|\r\n| Table
misconfigurations | Some table configurations might slightly\r\ndiffer
from the previous AlertsTableRegistry-backed version | Low |\r\nQuick
fix |\r\n\r\n## References\r\n\r\nCloses
#195180\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Christos Nasikas
<xristosnasikas@gmail.com>","sha":"a74066d6f83fc38feaa4d7e7b1cf7d3afd53c6f7"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Summary
This PR turns the AlertsTable into a standalone component, making it independent from the
TriggersActionsUIplugin.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
renderAlertsTableprop 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-browserInitial 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