-
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]Edit Additional Filter not working for field added from few charts visualization #164406
Comments
Pinging @elastic/security-solution (Team: SecuritySolution) |
@amolnater-qasource please review |
Reviewed & Assigned to @MadameSheema |
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
When I click the Filter for from the action in here and edit the filter, it shows me the data view dropdown. But if I open it in Lens, and filter for a legend bucket, it wouldn't show the data view dropdown when editing. Screen.Recording.2023-10-10.at.17.07.36.mov |
…ng (#168955) ## Summary The issue and steps to reproduce: #164406 Root cause: https://github.com/elastic/kibana/pull/168955/files#r1360612921 After: https://github.com/elastic/kibana/assets/6295984/dc338c53-2f04-4f8b-a794-ff188606332a ### Checklist Delete any items that are not applicable to this PR. - [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 --------- Co-authored-by: kibanamachine <[email protected]>
…ng (elastic#168955) ## Summary The issue and steps to reproduce: elastic#164406 Root cause: https://github.com/elastic/kibana/pull/168955/files#r1360612921 After: https://github.com/elastic/kibana/assets/6295984/dc338c53-2f04-4f8b-a794-ff188606332a ### Checklist Delete any items that are not applicable to this PR. - [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 --------- Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit c054a2d)
…t working (#168955) (#170215) # Backport This will backport the following commits from `main` to `8.11`: - [[SecuritySolution] Global search bar Edit Additional Filter not working (#168955)](#168955) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Angela Chuang","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-10-31T10:28:44Z","message":"[SecuritySolution] Global search bar Edit Additional Filter not working (#168955)\n\n## Summary\r\n\r\nThe issue and steps to reproduce:\r\nhttps://github.com//issues/164406\r\n\r\nRoot cause:\r\nhttps://github.com//pull/168955/files#r1360612921\r\n\r\nAfter:\r\n\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/6295984/dc338c53-2f04-4f8b-a794-ff188606332a\r\n\r\n\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\r\n\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"c054a2d32ac9e6f3cca5ef5cdd61ca2a42b5e95a","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:Threat Hunting","Team: SecuritySolution","Team:Threat Hunting:Explore","v8.12.0","v8.11.1"],"number":168955,"url":"https://github.com/elastic/kibana/pull/168955","mergeCommit":{"message":"[SecuritySolution] Global search bar Edit Additional Filter not working (#168955)\n\n## Summary\r\n\r\nThe issue and steps to reproduce:\r\nhttps://github.com//issues/164406\r\n\r\nRoot cause:\r\nhttps://github.com//pull/168955/files#r1360612921\r\n\r\nAfter:\r\n\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/6295984/dc338c53-2f04-4f8b-a794-ff188606332a\r\n\r\n\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\r\n\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"c054a2d32ac9e6f3cca5ef5cdd61ca2a42b5e95a"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/168955","number":168955,"mergeCommit":{"message":"[SecuritySolution] Global search bar Edit Additional Filter not working (#168955)\n\n## Summary\r\n\r\nThe issue and steps to reproduce:\r\nhttps://github.com//issues/164406\r\n\r\nRoot cause:\r\nhttps://github.com//pull/168955/files#r1360612921\r\n\r\nAfter:\r\n\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/6295984/dc338c53-2f04-4f8b-a794-ff188606332a\r\n\r\n\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\r\n\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"c054a2d32ac9e6f3cca5ef5cdd61ca2a42b5e95a"}},{"branch":"8.11","label":"v8.11.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Angela Chuang <[email protected]>
Here is the list of the places where we create filters without
and there are quite a few places in security solution where we use those methods. We do not add data view id to a filter within "cell actions". |
## 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 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]>
## 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)
…#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]>
Fix merged into 8.13 and above. @karanbirsingh-qasource could you test again? |
we have validated this issue on 8.13.1 and found this issue to be fixed now ✔️ Build Details:
|
Describe the bug:
Edit Additional Filter not working for field added from few charts visualization
Kibana/Elasticsearch Stack version
Version: 8.10.0 BC1
Commit: f8121b8
Build: 66085
Browser and Browser OS Version:
Firefox for windows OS
Version: 116.0.3(64-bit)
Elastic Endpoint Version:
v8.10.2
Original install method:
Build summary: https://staging.elastic.co/8.10.0-b637efd3/summary-8.10.0.html
Functional Area:
Additional Filter
Initial Setup:
Steps to reproduce
Additional Observation
Current behavior
Issue is occuring on editing additional filter added from below locations: ❌
Issue is not occuring on editing additional filter added from below locations: ✔️
Note: There must be many more instance in application for this issue but above are few of them to diagnose the issue.
Expected behavior:
Screen-cast:
Alerts.-.Kibana.Mozilla.Firefox.2023-08-22.14-34-40.mp4
Errors in browser console:
N/A
Any additional context (logs, chat logs, magical formulas, etc.):
N/A
The text was updated successfully, but these errors were encountered: