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] Alert Grouping - fix loading issues #152235

Merged
merged 6 commits into from
Feb 28, 2023

Conversation

stephmilovic
Copy link
Contributor

@stephmilovic stephmilovic commented Feb 27, 2023

Summary

Fixes #150726 by adding the isLoading property to the accordion. I also added an EuiProgress loader when there are not yet results but we are loading

Fixes #150832 by removing code in grouped_alerts that returned null for loading. This caused the groups to rerender and the accordion to close.

Grouping loading state

loading2.mov

Building block toggle loading state

Building block highlighting is broken for another reason #152318

building.mov

@stephmilovic stephmilovic added release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting Security Solution Threat Hunting Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting:Explore v8.7.0 v8.8.0 labels Feb 27, 2023
@stephmilovic stephmilovic marked this pull request as ready for review February 27, 2023 21:12
@stephmilovic stephmilovic requested review from a team as code owners February 27, 2023 21:12
@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@stephmilovic
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 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
securitySolution 15.7MB 15.7MB +948.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
securitySolution 428 430 +2

Total ESLint disabled count

id before after diff
securitySolution 506 508 +2

History

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

Copy link
Contributor

@YulNaumenko YulNaumenko left a comment

Choose a reason for hiding this comment

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

LGTM!

@stephmilovic stephmilovic merged commit 3d649ef into elastic:main Feb 28, 2023
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.7 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 152235

Questions ?

Please refer to the Backport tool documentation

stephmilovic added a commit to stephmilovic/kibana that referenced this pull request Feb 28, 2023
(cherry picked from commit 3d649ef)

# Conflicts:
#	x-pack/plugins/security_solution/public/detections/components/alerts_table/grouped_alerts.tsx
#	x-pack/plugins/security_solution/public/detections/components/alerts_table/index.test.tsx
@stephmilovic
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.7

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

Questions ?

Please refer to the Backport tool documentation

stephmilovic added a commit that referenced this pull request Feb 28, 2023
… (#152349)

# Backport

This will backport the following commits from `main` to `8.7`:
- [[Security solution] Alert Grouping - fix loading issues
(#152235)](#152235)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Steph
Milovic","email":"stephanie.milovic@elastic.co"},"sourceCommit":{"committedDate":"2023-02-28T13:16:39Z","message":"[Security
solution] Alert Grouping - fix loading issues
(#152235)","sha":"3d649ef254ae93a06bea2916686fca3a519b89d0","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Threat
Hunting","Team: SecuritySolution","Team:Threat
Hunting:Explore","v8.7.0","v8.8.0"],"number":152235,"url":"#152235
solution] Alert Grouping - fix loading issues
(#152235)","sha":"3d649ef254ae93a06bea2916686fca3a519b89d0"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"#152235
solution] Alert Grouping - fix loading issues
(#152235)","sha":"3d649ef254ae93a06bea2916686fca3a519b89d0"}}]}]
BACKPORT-->

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
sloanelybutsurely pushed a commit to sloanelybutsurely/kibana that referenced this pull request Mar 8, 2023
bmorelli25 pushed a commit to bmorelli25/kibana that referenced this pull request Mar 10, 2023
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: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting:Explore Team:Threat Hunting Security Solution Threat Hunting Team v8.7.0 v8.8.0
Projects
None yet
5 participants