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][Notes] - fix notes management page search crash #187934

Merged

Conversation

PhilippeOberti
Copy link
Contributor

@PhilippeOberti PhilippeOberti commented Jul 10, 2024

Summary

This PR fixes a crash happening on the new Notes Management page, when entering special characters to the search bar. According to EUI docs for the EuiSearchBar, we shouldn't pass the query to the component unless it's controlled outside. In our case, it's only done via user input within the component.

Before

Screen.Recording.2024-07-10.at.9.22.37.AM.mov

After

Screen.Recording.2024-07-10.at.9.22.06.AM.mov

#187734

@PhilippeOberti PhilippeOberti added release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting:Investigations Security Solution Investigations Team v8.15.0 labels Jul 10, 2024
@PhilippeOberti PhilippeOberti requested a review from a team as a code owner July 10, 2024 07:28
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@janmonschke janmonschke left a comment

Choose a reason for hiding this comment

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

🎉

@elasticmachine
Copy link
Contributor

elasticmachine commented Jul 10, 2024

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Defend Workflows Cypress Tests on Serverless #4 / Automated Response Actions From alerts "before all" hook for "should have generated endpoint and rule" "before all" hook for "should have generated endpoint and rule"
  • [job] [logs] Defend Workflows Cypress Tests on Serverless #7 / Endpoints page "before all" hook for "Shows endpoint on the list" "before all" hook for "Shows endpoint on the list"
  • [job] [logs] Defend Workflows Cypress Tests on Serverless #14 / Response console Execute operations: "before all" hook for ""execute --command" - should execute a command" "before all" hook for ""execute --command" - should execute a command"
  • [job] [logs] Defend Workflows Cypress Tests on Serverless #4 / Response console Host Isolation: "before all" hook for "should release an isolated host via response console" "before all" hook for "should release an isolated host via response console"
  • [job] [logs] Defend Workflows Cypress Tests on Serverless #5 / Response console Scan operation: "before all" hook for ""scan --path" - should scan a file" "before all" hook for ""scan --path" - should scan a file"

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 16.2MB 16.2MB -185.0B

History

  • 💔 Build #220511 failed 8519109ba45ef8211c55c4bcfad0ba1cab23e1db

@PhilippeOberti PhilippeOberti force-pushed the fix-notes-management-search-crash branch from f561da7 to 300dee7 Compare July 10, 2024 20:16
@PhilippeOberti PhilippeOberti merged commit 2958be7 into elastic:main Jul 11, 2024
39 checks passed
@PhilippeOberti PhilippeOberti deleted the fix-notes-management-search-crash branch July 11, 2024 06:26
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 11, 2024
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.15

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jul 11, 2024
…crash (#187934) (#188047)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[Security Solution][Notes] - fix notes management page search crash
(#187934)](#187934)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Philippe
Oberti","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-07-11T06:26:49Z","message":"[Security
Solution][Notes] - fix notes management page search crash
(#187934)","sha":"2958be7303f40cc055a983760a5a9f45b42386fe","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Threat
Hunting:Investigations","v8.15.0","v8.16.0"],"title":"[Security
Solution][Notes] - fix notes management page search
crash","number":187934,"url":"https://github.com/elastic/kibana/pull/187934","mergeCommit":{"message":"[Security
Solution][Notes] - fix notes management page search crash
(#187934)","sha":"2958be7303f40cc055a983760a5a9f45b42386fe"}},"sourceBranch":"main","suggestedTargetBranches":["8.15"],"targetPullRequestStates":[{"branch":"8.15","label":"v8.15.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/187934","number":187934,"mergeCommit":{"message":"[Security
Solution][Notes] - fix notes management page search crash
(#187934)","sha":"2958be7303f40cc055a983760a5a9f45b42386fe"}}]}]
BACKPORT-->

Co-authored-by: Philippe Oberti <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting:Investigations Security Solution Investigations Team v8.15.0 v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants