-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] [UI] Re-score entity when asset criticality changes #182234
Conversation
/ci |
2 similar comments
/ci |
/ci |
b540632
to
4287820
Compare
const timerange = useMemo(() => { | ||
const from = dateMath.parse(LAST_30_DAYS.from)?.toISOString() ?? LAST_30_DAYS.from; | ||
const to = dateMath.parse(LAST_30_DAYS.to)?.toISOString() ?? LAST_30_DAYS.to; | ||
return { from, to }; | ||
}, []); | ||
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
}, [riskDataTimestamp]); // Update the timerange whenever the risk score timestamp changes to include new entries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is necessary to update the embedded visualization
/> | ||
), | ||
}, | ||
link: riskScoreData.loading |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change fixes a cypress flakiness, it was clicking on the link before riskScoreData
was loaded.
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-entity-analytics (Team:Entity Analytics) |
/ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
x-pack/plugins/security_solution/public/explore/hosts/pages/details/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/explore/users/pages/details/index.tsx
Outdated
Show resolved
Hide resolved
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @machadoum |
Summary
Update the risk score when the user updates asset criticality.
recalculate.risk.score.2.mov
recalculate.risk.score.mov
Tech breakdown
Required changes
refresh: 'wait_for'
inspected
so we can refetch it from anywhere.Sequence of events
calculateEntityRiskScore
calculateEntityRiskScore
responseAffected components:
Why we don't have cypres tests?
Checklist
Delete any items that are not applicable to this PR.