kibana/packages/kbn-securitysolution-grouping
Paulo Henrique 50cb66e96b
[Cloud Security] [Grouping] Add URL Params support to the grouping components (#175749)
## Summary

It closes #173405

This PR adds support to load Grouping components from URL parameters by
the following changes:

### Grouping package changes:
 
- Updated the `onChange` handler in the `useGrouping` hook to retrieve
all the selected groupByFields.
- Updated the `onChange` handler in the `useGrouping` hook to trigger
when a group is selected or unselected.
- Added check to not send Telemetry when a group is unselected (this
keeps current behavior while triggering onChange for unselected groups.)

### Cloud Security changes:

- Updated `use_cloud_security_grouping` hook to check for the `groupBy`
URL params on the initial load to update the grouping component.
- Updated `use_cloud_security_grouping` hook to update the URL params
whenever the groups changes.


## Recording


965dfc5a-0e4e-4de8-baba-aa502ab5a010
2024-02-06 19:40:11 -08:00
..
.storybook [Security Solution] Multi level grouping for alerts table (#152862) 2023-04-24 07:01:05 -06:00
src [Cloud Security] [Grouping] Add URL Params support to the grouping components (#175749) 2024-02-06 19:40:11 -08:00
index.tsx [Security Solution] Multi level grouping for alerts table (#152862) 2023-04-24 07:01:05 -06:00
jest.config.js [Security solution] Grouping UI package (#152385) 2023-03-02 12:03:25 -07:00
kibana.jsonc [Security solution] Grouping UI package (#152385) 2023-03-02 12:03:25 -07:00
package.json flag packages without side effects (#173351) 2023-12-19 02:46:39 -07:00
README.mdx [Security Solution] Multi level grouping for alerts table (#152862) 2023-04-24 07:01:05 -06:00
setup_test.ts [Security solution] Grouping UI package (#152385) 2023-03-02 12:03:25 -07:00
tsconfig.json [Security solution] Fix grouping query, be ready for arrays! (#157330) 2023-05-11 17:03:16 -06:00

# @kbn/securitysolution-grouping

Grouping component and query. Currently only consumed by security solution alerts table.