Skip to content

Commit

Permalink
[SecuritySolution] Query risk score without time range (#149682)
Browse files Browse the repository at this point in the history
## Summary
Issue:
elastic/security-team#5817
Steps to verify:
1. visit app/security/entity_analytics
2. Inspect host risk score donut chart and user risk score donut chart
3. There should be no time range in their requests.
<img width="2543" alt="Screenshot 2023-01-27 at 12 21 01"
src="https://user-images.githubusercontent.com/6295984/215087615-0b54a86e-b65f-4140-bebd-78f251693ba7.png">


### Checklist

Delete any items that are not applicable to this PR.


- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
  • Loading branch information
angorayc authored Jan 27, 2023
1 parent 5f73936 commit d1b7db4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ export const getRiskScoreDonutAttributes: GetLensAttributes = (
[internalReferenceId]: {
id: internalReferenceId,
title: `ml_${stackByField}_risk_score_latest_${extraOptions.spaceId}`,
timeFieldName: '@timestamp',
timeFieldName: '',
sourceFilters: [],
fieldFormats: {},
runtimeFieldMap: {},
fieldAttrs: {},
allowNoIndex: false,
name: `ml_${stackByField}_risk_score_latest_${extraOptions.spaceId}`,
name: `ml_${stackByField}_risk_score_latest_${extraOptions.spaceId}_no_timestamp`,
},
},
},
Expand Down

0 comments on commit d1b7db4

Please sign in to comment.