-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 dataViewId to filter actions #177946
[Security Solution] Add dataViewId to filter actions #177946
Conversation
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
Pinging @elastic/security-threat-hunting-explore (Team:Threat Hunting:Explore) |
@elasticmachine merge upstream |
x-pack/plugins/security_solution/public/common/hooks/use_data_view_id.test.ts
Outdated
Show resolved
Hide resolved
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 for the Threat Hunting Investigations team!
x-pack/plugins/security_solution/public/common/components/cell_actions/index.test.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/common/components/cell_actions/index.test.tsx
Outdated
Show resolved
Hide resolved
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.
Code-only review, Data Discovery changes 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 for assistant change, thanks
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Unknown metric groupsAPI count
References to deprecated APIs
History
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.
LGTM for kubernetes security
## Summary This PR fixes a bug related to the filter edition: elastic#164406 Filter actions were missing the `meta.index` value, which needs to be assigned to the dataView id being used. When the filter is edited, the filter component retrieves the index pattern from the dataView saved object. The `meta.index` value has been added to all the "Filter in/out" actions using the `CellActions` metadata object. Thanks @angorayc for catching this and implementing the fix ### Screenshots Before:  After:  --------- Co-authored-by: Angela Chuang <[email protected]> Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Angela Chuang <[email protected]> (cherry picked from commit 406b24c)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
…#178081) # Backport This will backport the following commits from `main` to `8.13`: - [[Security Solution] Add dataViewId to filter actions (#177946)](#177946) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sergi Massaneda","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-03-06T10:57:41Z","message":"[Security Solution] Add dataViewId to filter actions (#177946)\n\n## Summary\r\n\r\nThis PR fixes a bug related to the filter edition:\r\nhttps://github.com//issues/164406\r\n\r\nFilter actions were missing the `meta.index` value, which needs to be\r\nassigned to the dataView id being used. When the filter is edited, the\r\nfilter component retrieves the index pattern from the dataView saved\r\nobject.\r\n\r\nThe `meta.index` value has been added to all the \"Filter in/out\" actions\r\nusing the `CellActions` metadata object.\r\n\r\nThanks @angorayc for catching this and implementing the fix\r\n\r\n### Screenshots\r\n\r\nBefore:\r\n\r\n\r\n\r\n\r\nAfter:\r\n\r\n\r\n\r\n\r\n---------\r\n\r\nCo-authored-by: Angela Chuang <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Angela Chuang <[email protected]>","sha":"406b24c6a8758fc82218ad5dbaf048677454d0d9","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Threat Hunting","Team:Threat Hunting:Explore","v8.13.0","v8.14.0","v8.12.3"],"title":"[Security Solution] Add dataViewId to filter actions","number":177946,"url":"https://github.com/elastic/kibana/pull/177946","mergeCommit":{"message":"[Security Solution] Add dataViewId to filter actions (#177946)\n\n## Summary\r\n\r\nThis PR fixes a bug related to the filter edition:\r\nhttps://github.com//issues/164406\r\n\r\nFilter actions were missing the `meta.index` value, which needs to be\r\nassigned to the dataView id being used. When the filter is edited, the\r\nfilter component retrieves the index pattern from the dataView saved\r\nobject.\r\n\r\nThe `meta.index` value has been added to all the \"Filter in/out\" actions\r\nusing the `CellActions` metadata object.\r\n\r\nThanks @angorayc for catching this and implementing the fix\r\n\r\n### Screenshots\r\n\r\nBefore:\r\n\r\n\r\n\r\n\r\nAfter:\r\n\r\n\r\n\r\n\r\n---------\r\n\r\nCo-authored-by: Angela Chuang <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Angela Chuang <[email protected]>","sha":"406b24c6a8758fc82218ad5dbaf048677454d0d9"}},"sourceBranch":"main","suggestedTargetBranches":["8.13","8.12"],"targetPullRequestStates":[{"branch":"8.13","label":"v8.13.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/177946","number":177946,"mergeCommit":{"message":"[Security Solution] Add dataViewId to filter actions (#177946)\n\n## Summary\r\n\r\nThis PR fixes a bug related to the filter edition:\r\nhttps://github.com//issues/164406\r\n\r\nFilter actions were missing the `meta.index` value, which needs to be\r\nassigned to the dataView id being used. When the filter is edited, the\r\nfilter component retrieves the index pattern from the dataView saved\r\nobject.\r\n\r\nThe `meta.index` value has been added to all the \"Filter in/out\" actions\r\nusing the `CellActions` metadata object.\r\n\r\nThanks @angorayc for catching this and implementing the fix\r\n\r\n### Screenshots\r\n\r\nBefore:\r\n\r\n\r\n\r\n\r\nAfter:\r\n\r\n\r\n\r\n\r\n---------\r\n\r\nCo-authored-by: Angela Chuang <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Angela Chuang <[email protected]>","sha":"406b24c6a8758fc82218ad5dbaf048677454d0d9"}},{"branch":"8.12","label":"v8.12.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: Sergi Massaneda <[email protected]>
Summary
This PR fixes a bug related to the filter edition:
#164406
Filter actions were missing the
meta.index
value, which needs to be assigned to the dataView id being used. When the filter is edited, the filter component retrieves the index pattern from the dataView saved object.The
meta.index
value has been added to all the "Filter in/out" actions using theCellActions
metadata object.Thanks @angorayc for catching this and implementing the fix
Screenshots
Before:
After: