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

[SecuritySolution] Fix dashboard page when the entity store state is stopped #198645

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

machadoum
Copy link
Member

@machadoum machadoum commented Nov 1, 2024

Summary

Fix the dashboard page when the entity store state is stopped
Previously, the EntityStoreDashboardPanels component didn't account for the installed but disabled state (stopped).

I made the minimum changes necessary to fix the bug, but this component needs to be refactored, unit-tested, and written in a storybook with all possible states. Technical debt Issue: https://github.com/elastic/security-team/issues/11035

@machadoum machadoum self-assigned this Nov 1, 2024
@machadoum machadoum added bug Fixes for quality problems that affect the customer experience Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Theme: entity_analytics Feature:Entity Analytics Security Solution Entity Analytics features Team:Entity Analytics Security Entity Analytics Team v9.0.0 v8.16.0 backport:version Backport to applied version labels v8.17.0 labels Nov 1, 2024
loadingRiskEngine={riskEngineInitializing}
/>
)}
{(entityStore.status === 'not_installed' || entityStore.status === 'stopped') &&
Copy link
Member Author

@machadoum machadoum Nov 1, 2024

Choose a reason for hiding this comment

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

The diff is weird. But this is the only change I made here: || entityStore.status === 'stopped'

</EuiFlexItem>
</>
)}
{(entityStore.status === 'not_installed' || entityStore.status === 'stopped') &&
Copy link
Member Author

Choose a reason for hiding this comment

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

The diff is weird. But this is the only change I made here: || entityStore.status === 'stopped'

@machadoum machadoum added the release_note:skip Skip the PR/issue when compiling release notes label Nov 1, 2024
@machadoum machadoum marked this pull request as ready for review November 1, 2024 10:10
@machadoum machadoum requested a review from a team as a code owner November 1, 2024 10:10
@machadoum machadoum requested a review from CAWilson94 November 1, 2024 10:10
@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-entity-analytics (Team:Entity Analytics)

@machadoum machadoum merged commit 34aab05 into elastic:main Nov 1, 2024
47 of 48 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.x

https://github.com/elastic/kibana/actions/runs/11628968777

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 1, 2024
…stopped (elastic#198645)

## Summary

Fix the dashboard page when the entity store state is stopped
Previously, the EntityStoreDashboardPanels component didn't account for
the installed but disabled state (stopped).

I made the minimum changes necessary to fix the bug, but this component
needs to be refactored, unit-tested, and written in a storybook with all
possible states. Technical debt Issue:
elastic/security-team#11035

(cherry picked from commit 34aab05)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 1, 2024
…stopped (elastic#198645)

## Summary

Fix the dashboard page when the entity store state is stopped
Previously, the EntityStoreDashboardPanels component didn't account for
the installed but disabled state (stopped).

I made the minimum changes necessary to fix the bug, but this component
needs to be refactored, unit-tested, and written in a storybook with all
possible states. Technical debt Issue:
elastic/security-team#11035

(cherry picked from commit 34aab05)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.16
8.x

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 Nov 1, 2024
…ate is stopped (#198645) (#198659)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[SecuritySolution] Fix dashboard page when the entity store state is
stopped (#198645)](#198645)

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

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

<!--BACKPORT [{"author":{"name":"Pablo
Machado","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-01T11:58:01Z","message":"[SecuritySolution]
Fix dashboard page when the entity store state is stopped
(#198645)\n\n## Summary\r\n\r\nFix the dashboard page when the entity
store state is stopped\r\nPreviously, the EntityStoreDashboardPanels
component didn't account for\r\nthe installed but disabled state
(stopped).\r\n\r\nI made the minimum changes necessary to fix the bug,
but this component\r\nneeds to be refactored, unit-tested, and written
in a storybook with all\r\npossible states. Technical debt
Issue:\r\nhttps://github.com/elastic/security-team/issues/11035","sha":"34aab05595115289ed7b7f8c1fad7f282292a25b","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","Team:
SecuritySolution","Theme: entity_analytics","Feature:Entity
Analytics","Team:Entity
Analytics","v8.16.0","backport:version","v8.17.0"],"title":"[SecuritySolution]
Fix dashboard page when the entity store state is
stopped","number":198645,"url":"https://github.com/elastic/kibana/pull/198645","mergeCommit":{"message":"[SecuritySolution]
Fix dashboard page when the entity store state is stopped
(#198645)\n\n## Summary\r\n\r\nFix the dashboard page when the entity
store state is stopped\r\nPreviously, the EntityStoreDashboardPanels
component didn't account for\r\nthe installed but disabled state
(stopped).\r\n\r\nI made the minimum changes necessary to fix the bug,
but this component\r\nneeds to be refactored, unit-tested, and written
in a storybook with all\r\npossible states. Technical debt
Issue:\r\nhttps://github.com/elastic/security-team/issues/11035","sha":"34aab05595115289ed7b7f8c1fad7f282292a25b"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198645","number":198645,"mergeCommit":{"message":"[SecuritySolution]
Fix dashboard page when the entity store state is stopped
(#198645)\n\n## Summary\r\n\r\nFix the dashboard page when the entity
store state is stopped\r\nPreviously, the EntityStoreDashboardPanels
component didn't account for\r\nthe installed but disabled state
(stopped).\r\n\r\nI made the minimum changes necessary to fix the bug,
but this component\r\nneeds to be refactored, unit-tested, and written
in a storybook with all\r\npossible states. Technical debt
Issue:\r\nhttps://github.com/elastic/security-team/issues/11035","sha":"34aab05595115289ed7b7f8c1fad7f282292a25b"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Pablo Machado <[email protected]>
kibanamachine added a commit that referenced this pull request Nov 1, 2024
…te is stopped (#198645) (#198660)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[SecuritySolution] Fix dashboard page when the entity store state is
stopped (#198645)](#198645)

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

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

<!--BACKPORT [{"author":{"name":"Pablo
Machado","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-01T11:58:01Z","message":"[SecuritySolution]
Fix dashboard page when the entity store state is stopped
(#198645)\n\n## Summary\r\n\r\nFix the dashboard page when the entity
store state is stopped\r\nPreviously, the EntityStoreDashboardPanels
component didn't account for\r\nthe installed but disabled state
(stopped).\r\n\r\nI made the minimum changes necessary to fix the bug,
but this component\r\nneeds to be refactored, unit-tested, and written
in a storybook with all\r\npossible states. Technical debt
Issue:\r\nhttps://github.com/elastic/security-team/issues/11035","sha":"34aab05595115289ed7b7f8c1fad7f282292a25b","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","Team:
SecuritySolution","Theme: entity_analytics","Feature:Entity
Analytics","Team:Entity
Analytics","v8.16.0","backport:version","v8.17.0"],"title":"[SecuritySolution]
Fix dashboard page when the entity store state is
stopped","number":198645,"url":"https://github.com/elastic/kibana/pull/198645","mergeCommit":{"message":"[SecuritySolution]
Fix dashboard page when the entity store state is stopped
(#198645)\n\n## Summary\r\n\r\nFix the dashboard page when the entity
store state is stopped\r\nPreviously, the EntityStoreDashboardPanels
component didn't account for\r\nthe installed but disabled state
(stopped).\r\n\r\nI made the minimum changes necessary to fix the bug,
but this component\r\nneeds to be refactored, unit-tested, and written
in a storybook with all\r\npossible states. Technical debt
Issue:\r\nhttps://github.com/elastic/security-team/issues/11035","sha":"34aab05595115289ed7b7f8c1fad7f282292a25b"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198645","number":198645,"mergeCommit":{"message":"[SecuritySolution]
Fix dashboard page when the entity store state is stopped
(#198645)\n\n## Summary\r\n\r\nFix the dashboard page when the entity
store state is stopped\r\nPreviously, the EntityStoreDashboardPanels
component didn't account for\r\nthe installed but disabled state
(stopped).\r\n\r\nI made the minimum changes necessary to fix the bug,
but this component\r\nneeds to be refactored, unit-tested, and written
in a storybook with all\r\npossible states. Technical debt
Issue:\r\nhttps://github.com/elastic/security-team/issues/11035","sha":"34aab05595115289ed7b7f8c1fad7f282292a25b"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Pablo Machado <[email protected]>
nreese pushed a commit to nreese/kibana that referenced this pull request Nov 1, 2024
…stopped (elastic#198645)

## Summary

Fix the dashboard page when the entity store state is stopped
Previously, the EntityStoreDashboardPanels component didn't account for
the installed but disabled state (stopped).

I made the minimum changes necessary to fix the bug, but this component
needs to be refactored, unit-tested, and written in a storybook with all
possible states. Technical debt Issue:
elastic/security-team#11035
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience Feature:Entity Analytics Security Solution Entity Analytics features release_note:skip Skip the PR/issue when compiling release notes Team:Entity Analytics Security Entity Analytics Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Theme: entity_analytics v8.16.0 v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants