fix threat intelligence loading screen#178701
Conversation
|
/ci |
1a65692 to
b677807
Compare
|
/ci |
|
Haven't looked at the code yet, but interestingly my on-week project is to re-enable all the Threat Intelligence Cypress tests, and they all fail at the moment because of one thing that you fix in this PR... Yup I can confirm that your fix fixes the bug I was seeing on Cypress and I spent most of my afternoon looking for!! 😆 Let me know when you move this out of draft so I can give it a proper review! Thanks! |
|
@lgestc I don't know if it's related to this fix, but right now if I don't have any data, I'm seeing an empty screen, while before - if I remember correctly - we had an empty page component |
thanks, I will look into it. no data meaning enabled integration but no entries received from abusech for example? |
|
/ci |
|
/ci |
1 similar comment
|
/ci |
|
/ci |
|
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
PhilippeOberti
left a comment
There was a problem hiding this comment.
code LGTM and desk tested it looks fine. Let me know what you think about the couple of test-related comments I left, otherwise I'm ready to approve
x-pack/plugins/security_solution/public/app/home/template_wrapper/index.tsx
Show resolved
Hide resolved
x-pack/plugins/threat_intelligence/public/modules/empty_page/empty_page.tsx
Show resolved
Hide resolved
|
@PhilippeOberti more tests added |
PhilippeOberti
left a comment
There was a problem hiding this comment.
Love it, thanks! Code LGTM and tested!
💚 Build Succeeded
Metrics [docs]Async chunks
Public APIs missing exports
Page load bundle
History
To update your PR or re-run it, just comment with: |
Dosant
left a comment
There was a problem hiding this comment.
packages/shared-ux/page/kibana_template changes lgtm!
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
## Summary The following PR needs to be merged first: #178701 This fixes #174764 (comment) and #179030 **To reproduce:** Add whatever filter in the Threat Intelligence (via table filter in), then click it (in the top bar) - filter edit popover is not filled in with data. On Alerts page though, it is filled in correctly - and it should look like that on TI: 
## Summary The following PR needs to be merged first: elastic#178701 This fixes elastic#174764 (comment) and elastic#179030 **To reproduce:** Add whatever filter in the Threat Intelligence (via table filter in), then click it (in the top bar) - filter edit popover is not filled in with data. On Alerts page though, it is filled in correctly - and it should look like that on TI:  (cherry picked from commit da69703)
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
1 similar comment
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary This PR fixes custom empty page layout in Threat Intelligence page, and also optimizes some of the loading that happens during the init phase (integrations retrieval). **Before**  Broken api calls made:  **After**  ### Checklist (cherry picked from commit 4461b86) # Conflicts: # x-pack/plugins/security_solution/public/app/home/template_wrapper/index.tsx
# Backport This will backport the following commits from `main` to `8.13`: - [fix threat intelligence loading screen (#178701)](#178701) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Luke G","email":"11671118+lgestc@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-04-02T09:00:03Z","message":"fix threat intelligence loading screen (#178701)\n\n## Summary\r\n\r\nThis PR fixes custom empty page layout in Threat Intelligence page, and\r\nalso optimizes some of the loading that happens during the init phase\r\n(integrations retrieval).\r\n\r\n**Before**\r\n\r\n\r\n\r\nBroken api calls made:\r\n\r\n\r\n\r\n\r\n**After**\r\n\r\n\r\n\r\n\r\n\r\n### Checklist","sha":"4461b86a7fcb844cfbd7f158266c29f38b0f0d62","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport missing","Team:Threat Hunting:Investigations","backport:prev-minor","v8.14.0"],"number":178701,"url":"https://github.com/elastic/kibana/pull/178701","mergeCommit":{"message":"fix threat intelligence loading screen (#178701)\n\n## Summary\r\n\r\nThis PR fixes custom empty page layout in Threat Intelligence page, and\r\nalso optimizes some of the loading that happens during the init phase\r\n(integrations retrieval).\r\n\r\n**Before**\r\n\r\n\r\n\r\nBroken api calls made:\r\n\r\n\r\n\r\n\r\n**After**\r\n\r\n\r\n\r\n\r\n\r\n### Checklist","sha":"4461b86a7fcb844cfbd7f158266c29f38b0f0d62"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.14.0","labelRegex":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/178701","number":178701,"mergeCommit":{"message":"fix threat intelligence loading screen (#178701)\n\n## Summary\r\n\r\nThis PR fixes custom empty page layout in Threat Intelligence page, and\r\nalso optimizes some of the loading that happens during the init phase\r\n(integrations retrieval).\r\n\r\n**Before**\r\n\r\n\r\n\r\nBroken api calls made:\r\n\r\n\r\n\r\n\r\n**After**\r\n\r\n\r\n\r\n\r\n\r\n### Checklist","sha":"4461b86a7fcb844cfbd7f158266c29f38b0f0d62"}}]}] BACKPORT-->
## Summary The following PR needs to be merged first: elastic#178701 This fixes elastic#174764 (comment) and elastic#179030 **To reproduce:** Add whatever filter in the Threat Intelligence (via table filter in), then click it (in the top bar) - filter edit popover is not filled in with data. On Alerts page though, it is filled in correctly - and it should look like that on TI:  (cherry picked from commit da69703)
# Backport This will backport the following commits from `main` to `8.13`: - [Fix threat intel edit filters (#179607)](#179607) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Luke G","email":"11671118+lgestc@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-04-02T11:46:07Z","message":"Fix threat intel edit filters (#179607)\n\n## Summary\r\n\r\nThe following PR needs to be merged first:\r\nhttps://github.com//pull/178701\r\n\r\nThis fixes\r\nhttps://github.com//issues/174764#issuecomment-1992363217\r\nand https://github.com/elastic/kibana/issues/179030\r\n\r\n**To reproduce:**\r\n\r\nAdd whatever filter in the Threat Intelligence (via table filter in),\r\nthen click it (in the top bar) - filter edit popover is not filled in\r\nwith data.\r\n\r\nOn Alerts page though, it is filled in correctly - and it should look\r\nlike that on TI:\r\n\r\n\r\n","sha":"da697032c7ba74a2bba8338f64354cb6b0393ea5","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport missing","Team:Threat Hunting:Investigations","backport:prev-minor","8.14 candidate","v8.14.0"],"number":179607,"url":"https://github.com/elastic/kibana/pull/179607","mergeCommit":{"message":"Fix threat intel edit filters (#179607)\n\n## Summary\r\n\r\nThe following PR needs to be merged first:\r\nhttps://github.com//pull/178701\r\n\r\nThis fixes\r\nhttps://github.com//issues/174764#issuecomment-1992363217\r\nand https://github.com/elastic/kibana/issues/179030\r\n\r\n**To reproduce:**\r\n\r\nAdd whatever filter in the Threat Intelligence (via table filter in),\r\nthen click it (in the top bar) - filter edit popover is not filled in\r\nwith data.\r\n\r\nOn Alerts page though, it is filled in correctly - and it should look\r\nlike that on TI:\r\n\r\n\r\n","sha":"da697032c7ba74a2bba8338f64354cb6b0393ea5"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.14.0","labelRegex":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/179607","number":179607,"mergeCommit":{"message":"Fix threat intel edit filters (#179607)\n\n## Summary\r\n\r\nThe following PR needs to be merged first:\r\nhttps://github.com//pull/178701\r\n\r\nThis fixes\r\nhttps://github.com//issues/174764#issuecomment-1992363217\r\nand https://github.com/elastic/kibana/issues/179030\r\n\r\n**To reproduce:**\r\n\r\nAdd whatever filter in the Threat Intelligence (via table filter in),\r\nthen click it (in the top bar) - filter edit popover is not filled in\r\nwith data.\r\n\r\nOn Alerts page though, it is filled in correctly - and it should look\r\nlike that on TI:\r\n\r\n\r\n","sha":"da697032c7ba74a2bba8338f64354cb6b0393ea5"}}]}] BACKPORT-->


Summary
This PR fixes custom empty page layout in Threat Intelligence page, and also optimizes some of the loading that happens during the init phase (integrations retrieval).
Before

Broken api calls made:
After
Checklist