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
[Security Solution] Add support for multiple values in cell actions #158060
Conversation
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
💚 Build Succeeded
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
To update your PR or re-run it, just comment with: cc @semd |
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.
Very clean solution, nicely done. Thank you for the fix. Desk tested with my extra tricky values and everything works perfectly. Awesome work @semd 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.
LGTM!
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…lastic#158060) ## Summary fixes: elastic#157237 closes: elastic#157887 Enables cell actions package to support multi-valuated cells. Actions affected: - Filter In - Filter Out - Add To Timeline - Copy To Clipboard ### Recording https://github.com/elastic/kibana/assets/17747913/a192173d-5fca-4b33-91a7-664ecd71550b #### Caveat The `FilterManager` does not recognize the duplicated filter when using the new `Combined` filters (the ones that allow AND/OR operations), so when adding two opposite combined filters, it does not remove the first one and both are applied at the same time: ![combined_filters_problem](https://github.com/elastic/kibana/assets/17747913/dc2f60db-28e7-4656-aaa2-d8550e8ef128) (cherry picked from commit 4dd1373)
…lastic#158060) ## Summary fixes: elastic#157237 closes: elastic#157887 Enables cell actions package to support multi-valuated cells. Actions affected: - Filter In - Filter Out - Add To Timeline - Copy To Clipboard ### Recording https://github.com/elastic/kibana/assets/17747913/a192173d-5fca-4b33-91a7-664ecd71550b #### Caveat The `FilterManager` does not recognize the duplicated filter when using the new `Combined` filters (the ones that allow AND/OR operations), so when adding two opposite combined filters, it does not remove the first one and both are applied at the same time: ![combined_filters_problem](https://github.com/elastic/kibana/assets/17747913/dc2f60db-28e7-4656-aaa2-d8550e8ef128)
…ions (#158060) (#158104) # Backport This will backport the following commits from `main` to `8.8`: - [[Security Solution] Add support for multiple values in cell actions (#158060)](#158060) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sergi Massaneda","email":"sergi.massaneda@elastic.co"},"sourceCommit":{"committedDate":"2023-05-18T18:49:47Z","message":"[Security Solution] Add support for multiple values in cell actions (#158060)\n\n## Summary\r\n\r\nfixes: #157237: #157887 \r\n\r\nEnables cell actions package to support multi-valuated cells. Actions\r\naffected:\r\n- Filter In\r\n- Filter Out\r\n- Add To Timeline\r\n- Copy To Clipboard\r\n\r\n### Recording\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/17747913/a192173d-5fca-4b33-91a7-664ecd71550b\r\n\r\n#### Caveat\r\nThe `FilterManager` does not recognize the duplicated filter when using\r\nthe new `Combined` filters (the ones that allow AND/OR operations), so\r\nwhen adding two opposite combined filters, it does not remove the first\r\none and both are applied at the same time:\r\n\r\n\r\n![combined_filters_problem](https://github.com/elastic/kibana/assets/17747913/dc2f60db-28e7-4656-aaa2-d8550e8ef128)","sha":"4dd1373571c99540d8ca04846f1e2aeb55fbe80f","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Threat Hunting","Team:Threat Hunting:Explore","v8.9.0","v8.8.1"],"number":158060,"url":"#158060 Solution] Add support for multiple values in cell actions (#158060)\n\n## Summary\r\n\r\nfixes: #157237: #157887 \r\n\r\nEnables cell actions package to support multi-valuated cells. Actions\r\naffected:\r\n- Filter In\r\n- Filter Out\r\n- Add To Timeline\r\n- Copy To Clipboard\r\n\r\n### Recording\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/17747913/a192173d-5fca-4b33-91a7-664ecd71550b\r\n\r\n#### Caveat\r\nThe `FilterManager` does not recognize the duplicated filter when using\r\nthe new `Combined` filters (the ones that allow AND/OR operations), so\r\nwhen adding two opposite combined filters, it does not remove the first\r\none and both are applied at the same time:\r\n\r\n\r\n![combined_filters_problem](#158060 Solution] Add support for multiple values in cell actions (#158060)\n\n## Summary\r\n\r\nfixes: #157237: #157887 \r\n\r\nEnables cell actions package to support multi-valuated cells. Actions\r\naffected:\r\n- Filter In\r\n- Filter Out\r\n- Add To Timeline\r\n- Copy To Clipboard\r\n\r\n### Recording\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/17747913/a192173d-5fca-4b33-91a7-664ecd71550b\r\n\r\n#### Caveat\r\nThe `FilterManager` does not recognize the duplicated filter when using\r\nthe new `Combined` filters (the ones that allow AND/OR operations), so\r\nwhen adding two opposite combined filters, it does not remove the first\r\none and both are applied at the same time:\r\n\r\n\r\n![combined_filters_problem](https://github.com/elastic/kibana/assets/17747913/dc2f60db-28e7-4656-aaa2-d8550e8ef128)","sha":"4dd1373571c99540d8ca04846f1e2aeb55fbe80f"}},{"branch":"8.8","label":"v8.8.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Sergi Massaneda <sergi.massaneda@elastic.co>
This PR backport didn't make it into the latest BC for 8.8.1. Updating the labels. |
Summary
fixes: #157237
closes: #157887
Enables cell actions package to support multi-valuated cells. Actions affected:
Recording
multivaluated_cell_actions.mov
Caveat
The
FilterManager
does not recognize the duplicated filter when using the newCombined
filters (the ones that allow AND/OR operations), so when adding two opposite combined filters, it does not remove the first one and both are applied at the same time: