[9.1] [Security Solution][Entity Analytics][PrivMon] Handle null/undefined values gracefully for tiles on Privmon dashboard (#226387)#227577
Merged
abhishekbhatia1710 merged 3 commits intoelastic:9.1from Jul 14, 2025
Conversation
…values gracefully for tiles on Privmon dashboard (elastic#226387) ## Summary What changed: Added error handling for PrivMon dashboard tiles when ES queries fail (like missing ML indices) Instead of showing broken visualizations, tiles now display a clean "Data not available" message The error tiles maintain consistent styling and layout with working tiles Added state tracking to detect when visualization loading completes - Check for missing [tables] property in visualization response to identify errors - Render a styled error state using EUI components that matches the design of working tiles - Made error message i18n compliant for proper localization Screenshot Ref :  With data :  Testing Steps : 1. Checkout this PR 2. Start the privmon engine : `POST kbn:/api/entity_analytics/monitoring/engine/init` 3. Add some privileged users either using a CSV file or from dev console. 4. Add relevant data for different indexes using the security-documents-generator. 6. Enable the risk score and Asset criticality. 7. Change filters for timerange or any KQL query to get the desired results. 8. The tile visualisations on the privmon dashboard should not display any errors. It should either display the Count or `Data not available`. ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [ ] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [ ] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit df7732a) # Conflicts: # x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/privileged_user_monitoring/components/key_insights_panel/index.tsx
3 tasks
CAWilson94
reviewed
Jul 14, 2025
...onents/privileged_user_monitoring/components/key_insights_panel/common/key_insights_tile.tsx
Show resolved
Hide resolved
Contributor
💚 Build Succeeded
Metrics [docs]Async chunks
History
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto9.1:Questions ?
Please refer to the Backport tool documentation