-
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
[Security Solution][Entity details] - move managed user code to flyout folder #190107
[Security Solution][Entity details] - move managed user code to flyout folder #190107
Conversation
22d5a6f
to
b076821
Compare
buildkite test this |
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
@@ -10,7 +10,7 @@ import { useObservedHostFields } from './use_observed_host_fields'; | |||
import { mockObservedHostData } from '../../mocks'; | |||
import { TestProviders } from '../../../../common/mock'; | |||
|
|||
describe('useManagedUserItems', () => { | |||
describe('useObservedHostFields', () => { | |||
it('returns managed user items for Entra user', () => { |
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.
nit: maybe update the text below to reference host too?
it('returns managed host items for Entra host', () => {
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.
done!
* 2.0. | ||
*/ | ||
|
||
export const INSTALL_EA_INTEGRATIONS_HREF = `browse/security?q=entityanalytics`; |
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.
can this be merged with the other constants in shared folder
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 kept it separate is because this constant is used in a single place within the user_right
folder, while the others are used in both user_right
and user_left
(if I'm not mistaken)
553e2a4
to
364c45d
Compare
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! 🚀
Thank you, Philippe, for moving the files and improving the code! 🙇♂️
I left a minor comment. Please take a look.
}); | ||
|
||
export const FAIL_MANAGED_USER = i18n.translate( | ||
'xpack.securitySolution.timeline.userDetails.failManagedUserDescription', |
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.
I think we should rename the translation keys in this file because they still reference the timeline.
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.
yup I had missed those. I fixed them as well as another translation file I moved!
364c45d
to
9ba2d40
Compare
9ba2d40
to
bec201f
Compare
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
Summary
This PR continues the effort in removing all old flyout components, hooks and utils functions. It moves all the code related to ManagedUsers hooks, components, types and constants from the timeline side_panel folder to the alert details expandable flyout folder
The goal of this PR is to:
The purpose of the PR was never to full refactor the code, so things that aren't necessarily super clean might still be present.
No UI changes should be visible whatsoever!
Checklist
https://github.com/elastic/security-team/issues/7462