-
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 Solutions][Endpoint] Running-processes
rename and refactor to processes
#135569
[Security Solutions][Endpoint] Running-processes
rename and refactor to processes
#135569
Conversation
…api errors when creating the command request
…nds_and_the_required_parameters-3829
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.
Took a look through and it looks good me
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.
some tests to fix, but LGTM - feel free to merge on Monday when you resolve it
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.
Looking great. I just have a couple of questions.
@@ -19,7 +19,7 @@ import { | |||
LogsEndpointAction, | |||
LogsEndpointActionResponse, | |||
RESPONSE_ACTION_COMMANDS, | |||
RunningProcessesEntry, | |||
ProcessesEntry, |
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 probably missed this earlier. Please import these as type
. I'm going to try and find where to enforce this setting. Some places eslint enforces and in other places it doesn't.
@@ -67,14 +67,14 @@ export const getEndpointResponseActionsConsoleCommands = ( | |||
}, | |||
}, | |||
{ | |||
name: 'running-processes', | |||
name: 'processes', | |||
about: i18n.translate( | |||
'xpack.securitySolution.endpointConsoleCommands.runninProcesses.about', |
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.
perhaps change the translation key as well to ...Commands.processes.about
@@ -109,21 +107,21 @@ export const responseActionsHttpMocks = httpHandlerMockFactory<ResponseActionsHt | |||
}, | |||
}, | |||
{ | |||
id: 'runningProcesses', | |||
id: 'processes', | |||
path: GET_RUNNING_PROCESSES_ROUTE, |
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.
Should we update the route name and API path as well for consistency?
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 will update the const name. I don't think we want to change the API route.
const actionRequestSent = Boolean(store.actionRequestSent); | ||
|
||
const getRunningProcessesApi = useSendGetEndpointRunningProcessesRequest(); | ||
const getProcessesApi = useSendGetEndpointProcessesRequest(); |
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.
Is there a reason we don't want to destructure this object to {mutate, data, ...}
etc.
@@ -83,7 +80,7 @@ export const getEndpointResponseActionsConsoleCommands = ( | |||
required: false, | |||
allowMultiples: false, | |||
about: i18n.translate( | |||
'xpack.securitySolution.endpointConsoleCommands.isolate.arg.comment', | |||
'xpack.securitySolution.endpointConsoleCommands.processes.arg.comment', |
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.
❤️
Pinging @elastic/security-onboarding-and-lifecycle-mgt (Team:Onboarding and Lifecycle Mgt) |
@elasticmachine merge upstream |
…nds_and_the_required_parameters-3829
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Summary
running-processes
command toprocesses
.processes
request.For maintainers