-
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][Notes] - allow filtering by note association #195501
[Security Solution][Notes] - allow filtering by note association #195501
Conversation
4bce942
to
9dac72e
Compare
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
f356aac
to
48fdc88
Compare
x-pack/plugins/security_solution/public/notes/components/add_note.tsx
Outdated
Show resolved
Hide resolved
5663352
to
434ff00
Compare
x-pack/plugins/security_solution/server/lib/timeline/routes/notes/get_notes.ts
Outdated
Show resolved
Hide resolved
07cc8a7
to
34b17f9
Compare
x-pack/plugins/security_solution/common/api/timeline/get_notes/get_notes_route.schema.yaml
Outdated
Show resolved
Hide resolved
66eac65
to
2e3b153
Compare
…cument only, saved object only, both or none
2e3b153
to
f8810f8
Compare
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Unknown metric groupsESLint disabled in files
Total ESLint disabled count
History
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/11362917638 |
…stic#195501) (cherry picked from commit 66708b2)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
#195501) (#196508) # Backport This will backport the following commits from `main` to `8.x`: - [[Security Solution][Notes] - allow filtering by note association (#195501)](#195501) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Philippe Oberti","email":"philippe.oberti@elastic.co"},"sourceCommit":{"committedDate":"2024-10-16T09:32:51Z","message":"[Security Solution][Notes] - allow filtering by note association (#195501)","sha":"66708b26c5dd2918692d77da81edcd1d3836cec5","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:skip","v9.0.0","Team:Threat Hunting:Investigations","v8.16.0"],"title":"[Security Solution][Notes] - allow filtering by note association","number":195501,"url":"https://github.com/elastic/kibana/pull/195501","mergeCommit":{"message":"[Security Solution][Notes] - allow filtering by note association (#195501)","sha":"66708b26c5dd2918692d77da81edcd1d3836cec5"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195501","number":195501,"mergeCommit":{"message":"[Security Solution][Notes] - allow filtering by note association (#195501)","sha":"66708b26c5dd2918692d77da81edcd1d3836cec5"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Philippe Oberti <philippe.oberti@elastic.co>
…ement page, an enum value was missing from the api (#196912) ## Summary _**Notes: please ignore the spaces introduced in the first commit, Webstorm is trying to be smart... CI should take care of fixing that in a second commit shortly**_ This PR fixes a small issue that prevents the notes management page to load. The issue comes from the fact that one of the enum values passed to filter notes was missing from the open api spec. This issue was introduced in this recent [PR](#195501). Current notes management borken page ![Screenshot 2024-10-18 at 10 30 13 AM](https://github.com/user-attachments/assets/4926a62f-1ebf-4698-8a13-bf761d77f4ba) This is the error in the network tab ![Screenshot 2024-10-18 at 10 30 29 AM](https://github.com/user-attachments/assets/90b56246-c116-4050-bcfa-2c6668274e74) This PR fixes the issue ![Screenshot 2024-10-18 at 10 27 01 AM](https://github.com/user-attachments/assets/7d3338ce-ad73-4be5-b94c-15bcf0234680) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…ement page, an enum value was missing from the api (elastic#196912) ## Summary _**Notes: please ignore the spaces introduced in the first commit, Webstorm is trying to be smart... CI should take care of fixing that in a second commit shortly**_ This PR fixes a small issue that prevents the notes management page to load. The issue comes from the fact that one of the enum values passed to filter notes was missing from the open api spec. This issue was introduced in this recent [PR](elastic#195501). Current notes management borken page ![Screenshot 2024-10-18 at 10 30 13 AM](https://github.com/user-attachments/assets/4926a62f-1ebf-4698-8a13-bf761d77f4ba) This is the error in the network tab ![Screenshot 2024-10-18 at 10 30 29 AM](https://github.com/user-attachments/assets/90b56246-c116-4050-bcfa-2c6668274e74) This PR fixes the issue ![Screenshot 2024-10-18 at 10 27 01 AM](https://github.com/user-attachments/assets/7d3338ce-ad73-4be5-b94c-15bcf0234680) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit bf7c5aa)
…ement page, an enum value was missing from the api (elastic#196912) ## Summary _**Notes: please ignore the spaces introduced in the first commit, Webstorm is trying to be smart... CI should take care of fixing that in a second commit shortly**_ This PR fixes a small issue that prevents the notes management page to load. The issue comes from the fact that one of the enum values passed to filter notes was missing from the open api spec. This issue was introduced in this recent [PR](elastic#195501). Current notes management borken page ![Screenshot 2024-10-18 at 10 30 13 AM](https://github.com/user-attachments/assets/4926a62f-1ebf-4698-8a13-bf761d77f4ba) This is the error in the network tab ![Screenshot 2024-10-18 at 10 30 29 AM](https://github.com/user-attachments/assets/90b56246-c116-4050-bcfa-2c6668274e74) This PR fixes the issue ![Screenshot 2024-10-18 at 10 27 01 AM](https://github.com/user-attachments/assets/7d3338ce-ad73-4be5-b94c-15bcf0234680) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit bf7c5aa)
Summary
This PR adds a filter to the Notes management page, to allow users to filter by the following:
Screen.Recording.2024-10-16.at.12.03.44.AM.mov
The server side code has been updated to handle having this new filter working in combination with the existing user filter added in this previous PR.
API integration tests have been added to test the new functionality.
#193086
Checklist