-
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] Replace risk scores donut charts with Lens #148755
Conversation
…-ref HEAD~1..HEAD --fix'
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
...ecurity_solution/public/common/components/visualization_actions/visualization_embeddable.tsx
Show resolved
Hide resolved
|
||
useEffect(() => { | ||
dispatch( | ||
inputsActions.setQuery({ |
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.
Question: Could we use a utility function like useInspectButton
or useInspectQuery
here?
Note: I have to delete one of them. 😓
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.
The reason I'm not using useInspectQuery is because I'd like to avoid useGlobalTime
in this component. As it deletes all
the queries in useGlobalTime
when component unmount, I don't want to affect other components.
The reason I'm not using useInspectButton is because session.current.start()
has to be wrapped in useEffect
, so I think it makes more sense to leave the logic of session in this component.
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
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.
LGTM! Thanks for the great work! 👏
Summary
Behind feature flag
chartEmbeddablesEnabled
Known issues
Before

After

Checklist
Delete any items that are not applicable to this PR.