Skip to content

fix threat intelligence loading screen#178701

Merged
lgestc merged 14 commits intoelastic:mainfrom
lgestc:fix_threat_intel_loading_screen
Apr 2, 2024
Merged

fix threat intelligence loading screen#178701
lgestc merged 14 commits intoelastic:mainfrom
lgestc:fix_threat_intel_loading_screen

Conversation

@lgestc
Copy link
Copy Markdown
Contributor

@lgestc lgestc commented Mar 14, 2024

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
image

Broken api calls made:

image

After

image

Checklist

@lgestc
Copy link
Copy Markdown
Contributor Author

lgestc commented Mar 14, 2024

/ci

@lgestc lgestc requested a review from PhilippeOberti March 14, 2024 10:37
@lgestc lgestc added Team:Threat Hunting:Investigations Security Solution Threat Hunting Investigations Team backport:prev-minor release_note:fix labels Mar 14, 2024
@lgestc lgestc force-pushed the fix_threat_intel_loading_screen branch from 1a65692 to b677807 Compare March 14, 2024 11:38
@lgestc
Copy link
Copy Markdown
Contributor Author

lgestc commented Mar 14, 2024

/ci

@PhilippeOberti
Copy link
Copy Markdown
Contributor

PhilippeOberti commented Mar 18, 2024

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...
I wish they had been working this whole time as they would have caught what broken this...

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!

@PhilippeOberti
Copy link
Copy Markdown
Contributor

@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
Screenshot 2024-03-20 at 1 54 43 PM

@lgestc
Copy link
Copy Markdown
Contributor Author

lgestc commented Mar 25, 2024

@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 Screenshot 2024-03-20 at 1 54 43 PM

thanks, I will look into it. no data meaning enabled integration but no entries received from abusech for example?

@lgestc
Copy link
Copy Markdown
Contributor Author

lgestc commented Mar 26, 2024

/ci

@lgestc
Copy link
Copy Markdown
Contributor Author

lgestc commented Mar 27, 2024

/ci

1 similar comment
@lgestc
Copy link
Copy Markdown
Contributor Author

lgestc commented Mar 27, 2024

/ci

@lgestc
Copy link
Copy Markdown
Contributor Author

lgestc commented Mar 27, 2024

/ci

@lgestc lgestc marked this pull request as ready for review March 27, 2024 15:06
@lgestc lgestc requested review from a team as code owners March 27, 2024 15:07
@elasticmachine
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

@PhilippeOberti PhilippeOberti left a comment

Choose a reason for hiding this comment

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

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

@lgestc
Copy link
Copy Markdown
Contributor Author

lgestc commented Mar 29, 2024

@PhilippeOberti more tests added

Copy link
Copy Markdown
Contributor

@PhilippeOberti PhilippeOberti left a comment

Choose a reason for hiding this comment

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

Love it, thanks! Code LGTM and tested!

@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

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
canvas 1015.0KB 1015.0KB +28.0B
dashboard 389.9KB 389.9KB +28.0B
enterpriseSearch 2.7MB 2.7MB +28.0B
eventAnnotationListing 198.2KB 198.3KB +28.0B
filesManagement 90.5KB 90.5KB +28.0B
graph 387.7KB 387.7KB +28.0B
home 137.7KB 137.7KB +28.0B
indexManagement 613.6KB 613.6KB +28.0B
infra 1.4MB 1.4MB +28.0B
kibanaOverview 51.8KB 51.8KB +28.0B
management 43.5KB 43.5KB +28.0B
maps 2.9MB 2.9MB +28.0B
metricsDataAccess 83.8KB 83.8KB +28.0B
ml 3.7MB 3.7MB +28.0B
observabilityShared 54.8KB 54.9KB +28.0B
osquery 1.0MB 1.0MB +28.0B
searchPlayground 144.3KB 144.3KB +28.0B
security 579.7KB 579.7KB +28.0B
securitySolution 16.6MB 16.6MB +155.0B
securitySolutionEss 39.6KB 39.6KB +28.0B
securitySolutionServerless 183.4KB 183.5KB +28.0B
spaces 175.1KB 175.1KB +28.0B
threatIntelligence 56.5KB 56.9KB +419.0B
visualizations 274.2KB 274.3KB +28.0B
total +1.2KB

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
threatIntelligence 5 4 -1

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
esUiShared 156.0KB 156.0KB +28.0B
observability 150.4KB 150.4KB +28.0B
threatIntelligence 12.7KB 12.7KB +18.0B
total +74.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

packages/shared-ux/page/kibana_template changes lgtm!

@lgestc lgestc merged commit 4461b86 into elastic:main Apr 2, 2024
@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
8.13 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 178701

Questions ?

Please refer to the Backport tool documentation

lgestc added a commit that referenced this pull request Apr 2, 2024
## 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:


![image](https://github.com/elastic/kibana/assets/11671118/0de5f076-83dd-48f3-810b-75d1572536e3)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Apr 2, 2024
## 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:

![image](https://github.com/elastic/kibana/assets/11671118/0de5f076-83dd-48f3-810b-75d1572536e3)

(cherry picked from commit da69703)
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Apr 3, 2024
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add the label auto-backport or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 178701 locally

1 similar comment
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add the label auto-backport or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 178701 locally

@lgestc
Copy link
Copy Markdown
Contributor Author

lgestc commented Apr 9, 2024

💚 All backports created successfully

Status Branch Result
8.13

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

Questions ?

Please refer to the Backport tool documentation

lgestc added a commit to lgestc/kibana that referenced this pull request Apr 9, 2024
## 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**

![image](https://github.com/elastic/kibana/assets/11671118/11fa9ce2-f075-4940-a9ae-75f327d4b7cb)

Broken api calls made:

![image](https://github.com/elastic/kibana/assets/11671118/4bc4b1a2-6424-42d4-9390-e51a36f943b7)

**After**

![image](https://github.com/elastic/kibana/assets/11671118/d67b4ea8-e862-41d6-830e-f0b38af297c7)

### Checklist

(cherry picked from commit 4461b86)

# Conflicts:
#	x-pack/plugins/security_solution/public/app/home/template_wrapper/index.tsx
lgestc added a commit that referenced this pull request Apr 9, 2024
# 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![image](https://github.com/elastic/kibana/assets/11671118/11fa9ce2-f075-4940-a9ae-75f327d4b7cb)\r\n\r\nBroken
api calls
made:\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/11671118/4bc4b1a2-6424-42d4-9390-e51a36f943b7)\r\n\r\n**After**\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/11671118/d67b4ea8-e862-41d6-830e-f0b38af297c7)\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![image](https://github.com/elastic/kibana/assets/11671118/11fa9ce2-f075-4940-a9ae-75f327d4b7cb)\r\n\r\nBroken
api calls
made:\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/11671118/4bc4b1a2-6424-42d4-9390-e51a36f943b7)\r\n\r\n**After**\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/11671118/d67b4ea8-e862-41d6-830e-f0b38af297c7)\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![image](https://github.com/elastic/kibana/assets/11671118/11fa9ce2-f075-4940-a9ae-75f327d4b7cb)\r\n\r\nBroken
api calls
made:\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/11671118/4bc4b1a2-6424-42d4-9390-e51a36f943b7)\r\n\r\n**After**\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/11671118/d67b4ea8-e862-41d6-830e-f0b38af297c7)\r\n\r\n\r\n###
Checklist","sha":"4461b86a7fcb844cfbd7f158266c29f38b0f0d62"}}]}]
BACKPORT-->
@kibanamachine kibanamachine added v8.13.3 and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Apr 9, 2024
lgestc added a commit to lgestc/kibana that referenced this pull request Apr 9, 2024
## 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:

![image](https://github.com/elastic/kibana/assets/11671118/0de5f076-83dd-48f3-810b-75d1572536e3)

(cherry picked from commit da69703)
lgestc added a commit that referenced this pull request Apr 9, 2024
# 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![image](https://github.com/elastic/kibana/assets/11671118/0de5f076-83dd-48f3-810b-75d1572536e3)","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![image](https://github.com/elastic/kibana/assets/11671118/0de5f076-83dd-48f3-810b-75d1572536e3)","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![image](https://github.com/elastic/kibana/assets/11671118/0de5f076-83dd-48f3-810b-75d1572536e3)","sha":"da697032c7ba74a2bba8338f64354cb6b0393ea5"}}]}]
BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:fix Team:Threat Hunting:Investigations Security Solution Threat Hunting Investigations Team v8.13.3 v8.14.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants