Skip to content
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

Merged
merged 2 commits into from May 18, 2023

Conversation

semd
Copy link
Contributor

@semd semd commented May 18, 2023

Summary

fixes: #157237
closes: #157887

Enables cell actions package to support multi-valuated cells. Actions affected:

  • Filter In
  • Filter Out
  • Add To Timeline
  • Copy To Clipboard

Recording

multivaluated_cell_actions.mov

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

@semd semd self-assigned this May 18, 2023
@semd semd requested review from a team as code owners May 18, 2023 09:56
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@semd semd added the v8.8.0 label May 18, 2023
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 9.2MB 9.2MB +479.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
securitySolution 400 404 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
securitySolution 480 484 +4
total +6

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @semd

Copy link
Contributor

@stephmilovic stephmilovic left a 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 🚀

@semd semd enabled auto-merge (squash) May 18, 2023 16:35
Copy link
Contributor

@YulNaumenko YulNaumenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@semd semd merged commit 4dd1373 into elastic:main May 18, 2023
20 checks passed
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.8

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request May 18, 2023
…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)
delanni pushed a commit to delanni/kibana that referenced this pull request May 25, 2023
…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)
kibanamachine added a commit that referenced this pull request Jun 6, 2023
…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>
@mistic
Copy link
Member

mistic commented Jun 8, 2023

This PR backport didn't make it into the latest BC for 8.8.1. Updating the labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants