[Security Solution] Remove draggable wrapper and data provider props#212589
[Security Solution] Remove draggable wrapper and data provider props#212589christineweng merged 3 commits intoelastic:mainfrom
Conversation
3d6f957 to
b798ccf
Compare
ce2c915 to
3964b22
Compare
76c4979 to
d68a539
Compare
83c7fde to
d2b0add
Compare
|
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
d2b0add to
364f172
Compare
PhilippeOberti
left a comment
There was a problem hiding this comment.
Awesome work on this! Code LGTM and did some smoke testing, everything looks good. Thanks for this very nice cleanup :)
There was a problem hiding this comment.
Entity analytics code LGTM!
I desk-tested it, but couldn't find many entity analytics pages affected. The only one I did was the network/maps tools.
I also noticed that many of the affected components are rendered by the timeline, so we might consider moving it to the timeline code base in the future:
Thank you! Great effort! 👏 👏 👏
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
Count of Enzyme imports
History
|
…lastic#212589) ## Summary This PR is a follow up clean up of draggables after [this PR](elastic#207959) that removed `isDraggable` prop everywhere. This is part 2 of the draggable clean ups listed in elastic#212593. Included in this PR: 1. Removed the creation of data provider props in `DefaultDraggable`. The security cell actions only require `field` and `value`, so creating the data provider object and later taking just the query fields are redundant. 2. Merged `CellActionWrapper`, `DraggableWrapper` and `DefaultDraggable` into `CellActionsRenderer`, moved files to cell actions folder 4. Updated Zeek and suricata components to call `CellActionsRenderer` directly and removed the tooltips 5. Updated tests Before and after in flow charts **Before** *props in red are used to create data provider and are now obsolete <img width="1345" height="706" alt="image" src="https://github.com/user-attachments/assets/406b84bd-9577-4fb3-9987-27b947eb62fb" /> **After** <img width="1071" height="707" alt="image" src="https://github.com/user-attachments/assets/4233ed14-4d46-432e-a22c-d416499aeb76" /> ### Checklist - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
…lastic#212589) ## Summary This PR is a follow up clean up of draggables after [this PR](elastic#207959) that removed `isDraggable` prop everywhere. This is part 2 of the draggable clean ups listed in elastic#212593. Included in this PR: 1. Removed the creation of data provider props in `DefaultDraggable`. The security cell actions only require `field` and `value`, so creating the data provider object and later taking just the query fields are redundant. 2. Merged `CellActionWrapper`, `DraggableWrapper` and `DefaultDraggable` into `CellActionsRenderer`, moved files to cell actions folder 4. Updated Zeek and suricata components to call `CellActionsRenderer` directly and removed the tooltips 5. Updated tests Before and after in flow charts **Before** *props in red are used to create data provider and are now obsolete <img width="1345" height="706" alt="image" src="https://github.com/user-attachments/assets/406b84bd-9577-4fb3-9987-27b947eb62fb" /> **After** <img width="1071" height="707" alt="image" src="https://github.com/user-attachments/assets/4233ed14-4d46-432e-a22c-d416499aeb76" /> ### Checklist - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Summary
This PR is a follow up clean up of draggables after this PR that removed
isDraggableprop everywhere. This is part 2 of the draggable clean ups listed in #212593.Included in this PR:
DefaultDraggable. The security cell actions only requirefieldandvalue, so creating the data provider object and later taking just the query fields are redundant.CellActionWrapper,DraggableWrapperandDefaultDraggableintoCellActionsRenderer, moved files to cell actions folderCellActionsRendererdirectly and removed the tooltipsBefore and after in flow charts
Before

*props in red are used to create data provider and are now obsolete
After

Checklist
release_note:*label is applied per the guidelines