[Entity Analytics] [bug-fix] Do not abort risk score search request#219858
[Entity Analytics] [bug-fix] Do not abort risk score search request#219858machadoum merged 3 commits intoelastic:mainfrom
Conversation
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
6450b4e to
85d2eab
Compare
|
Pinging @elastic/security-entity-analytics (Team:Entity Analytics) |
|
Starting backport for target branches: 9.0 https://github.com/elastic/kibana/actions/runs/14855773125 |
💚 Build Succeeded
Metrics [docs]Async chunks
History
|
…lastic#219858) ## Summary Closes elastic#219490 Fix an error toast appearing when changing an entities asset criticality from the entity flyout. See video on issue above for more detail. We were seeing the risk score request be aborted and this was creating the error toast. - Do not toast if an abort error is thrown - Do not abort the request unless the component receives `skip:true` ### Test Steps 1. Use the security document generator `yarn start entity-store` command to load entities and enable the risk engine 2. Enable the entity store 3. from the entities table open the entity flyout 4. Assign/change asset criticality 5. observe the error is not present ### Why did the bug happen? The risk score component stops rendering because the conditions for aborting and searching differ. So we aborted the HTTP call but didn't search again. I believe this PR elastic#201810 introduced the bug --------- Co-authored-by: machadoum <pablo.nevesmachado@elastic.co> (cherry picked from commit 64d20bb)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
10 similar comments
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…uest (#219858) (#220209) # Backport This will backport the following commits from `main` to `9.0`: - [[Entity Analytics] [bug-fix] Do not abort risk score search request (#219858)](#219858) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Mark Hopkin","email":"mark.hopkin@elastic.co"},"sourceCommit":{"committedDate":"2025-05-06T09:04:02Z","message":"[Entity Analytics] [bug-fix] Do not abort risk score search request (#219858)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/219490\n\nFix an error toast appearing when changing an entities asset criticality\nfrom the entity flyout. See video on issue above for more detail.\n\nWe were seeing the risk score request be aborted and this was creating\nthe error toast.\n\n- Do not toast if an abort error is thrown\n- Do not abort the request unless the component receives `skip:true`\n\n### Test Steps\n\n1. Use the security document generator `yarn start entity-store` command\nto load entities and enable the risk engine\n2. Enable the entity store\n3. from the entities table open the entity flyout\n4. Assign/change asset criticality\n5. observe the error is not present\n\n### Why did the bug happen?\nThe risk score component stops rendering because the conditions for\naborting and searching differ. So we aborted the HTTP call but didn't\nsearch again.\n\nI believe this PR https://github.com/elastic/kibana/pull/201810\nintroduced the bug\n\n---------\n\nCo-authored-by: machadoum <pablo.nevesmachado@elastic.co>","sha":"64d20bb00b9e314c9abe257c8453c2684bccc0a3","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:prev-minor","Team:Entity Analytics","v9.1.0","v9.0.2"],"title":"[Entity Analytics] [bug-fix] Do not abort risk score search request","number":219858,"url":"https://github.com/elastic/kibana/pull/219858","mergeCommit":{"message":"[Entity Analytics] [bug-fix] Do not abort risk score search request (#219858)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/219490\n\nFix an error toast appearing when changing an entities asset criticality\nfrom the entity flyout. See video on issue above for more detail.\n\nWe were seeing the risk score request be aborted and this was creating\nthe error toast.\n\n- Do not toast if an abort error is thrown\n- Do not abort the request unless the component receives `skip:true`\n\n### Test Steps\n\n1. Use the security document generator `yarn start entity-store` command\nto load entities and enable the risk engine\n2. Enable the entity store\n3. from the entities table open the entity flyout\n4. Assign/change asset criticality\n5. observe the error is not present\n\n### Why did the bug happen?\nThe risk score component stops rendering because the conditions for\naborting and searching differ. So we aborted the HTTP call but didn't\nsearch again.\n\nI believe this PR https://github.com/elastic/kibana/pull/201810\nintroduced the bug\n\n---------\n\nCo-authored-by: machadoum <pablo.nevesmachado@elastic.co>","sha":"64d20bb00b9e314c9abe257c8453c2684bccc0a3"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/219858","number":219858,"mergeCommit":{"message":"[Entity Analytics] [bug-fix] Do not abort risk score search request (#219858)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/219490\n\nFix an error toast appearing when changing an entities asset criticality\nfrom the entity flyout. See video on issue above for more detail.\n\nWe were seeing the risk score request be aborted and this was creating\nthe error toast.\n\n- Do not toast if an abort error is thrown\n- Do not abort the request unless the component receives `skip:true`\n\n### Test Steps\n\n1. Use the security document generator `yarn start entity-store` command\nto load entities and enable the risk engine\n2. Enable the entity store\n3. from the entities table open the entity flyout\n4. Assign/change asset criticality\n5. observe the error is not present\n\n### Why did the bug happen?\nThe risk score component stops rendering because the conditions for\naborting and searching differ. So we aborted the HTTP call but didn't\nsearch again.\n\nI believe this PR https://github.com/elastic/kibana/pull/201810\nintroduced the bug\n\n---------\n\nCo-authored-by: machadoum <pablo.nevesmachado@elastic.co>","sha":"64d20bb00b9e314c9abe257c8453c2684bccc0a3"}},{"branch":"9.0","label":"v9.0.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co> Co-authored-by: machadoum <pablo.nevesmachado@elastic.co> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…lastic#219858) ## Summary Closes elastic#219490 Fix an error toast appearing when changing an entities asset criticality from the entity flyout. See video on issue above for more detail. We were seeing the risk score request be aborted and this was creating the error toast. - Do not toast if an abort error is thrown - Do not abort the request unless the component receives `skip:true` ### Test Steps 1. Use the security document generator `yarn start entity-store` command to load entities and enable the risk engine 2. Enable the entity store 3. from the entities table open the entity flyout 4. Assign/change asset criticality 5. observe the error is not present ### Why did the bug happen? The risk score component stops rendering because the conditions for aborting and searching differ. So we aborted the HTTP call but didn't search again. I believe this PR elastic#201810 introduced the bug --------- Co-authored-by: machadoum <pablo.nevesmachado@elastic.co>
…lastic#219858) ## Summary Closes elastic#219490 Fix an error toast appearing when changing an entities asset criticality from the entity flyout. See video on issue above for more detail. We were seeing the risk score request be aborted and this was creating the error toast. - Do not toast if an abort error is thrown - Do not abort the request unless the component receives `skip:true` ### Test Steps 1. Use the security document generator `yarn start entity-store` command to load entities and enable the risk engine 2. Enable the entity store 3. from the entities table open the entity flyout 4. Assign/change asset criticality 5. observe the error is not present ### Why did the bug happen? The risk score component stops rendering because the conditions for aborting and searching differ. So we aborted the HTTP call but didn't search again. I believe this PR elastic#201810 introduced the bug --------- Co-authored-by: machadoum <pablo.nevesmachado@elastic.co>

Summary
Closes #219490
Fix an error toast appearing when changing an entities asset criticality from the entity flyout. See video on issue above for more detail.
We were seeing the risk score request be aborted and this was creating the error toast.
skip:trueTest Steps
yarn start entity-storecommand to load entities and enable the risk engineWhy did the bug happen?
The risk score component stops rendering because the conditions for aborting and searching differ. So we aborted the HTTP call but didn't search again.
I believe this PR #201810 introduced the bug